WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › Error update and duplicate download posts
- This topic has 12 replies, 2 voices, and was last updated 4 years, 6 months ago by admin.
-
AuthorPosts
-
April 11, 2020 at 12:46 pm #1504chadrioParticipant
When updating this error occurs:
Fatal error: Uncaught Error: Call to a member function add_rewrite_tag() on null in /web/public_html/wp-includes/rewrite.php:173 Stack trace: #0 /web/public_html/wp-includes/class-wp-post-type.php(559): add_rewrite_tag(‘%sdm_downloads%’, ‘([^/]+)’, ‘sdm_downloads=’) #1 /web/public_html/wp-includes/post.php(1432): WP_Post_Type->add_rewrite_rules() #2 /web/public_html/wp-content/plugins/simple-download-monitor/sdm-post-type-and-taxonomy.php(39): register_post_type(‘sdm_downloads’, Array) #3 /web/public_html/wp-content/plugins/simple-download-monitor/main.php(73): sdm_register_post_type() #4 /web/public_html/wp-content/plugins/simple-download-monitor/main.php(177): sdm_install_db_table() #5 /web/public_html/wp-content/plugins/simple-download-monitor/main.php(89): sdm_db_update_check() #6 /web/public_html/wp-includes/class-wp-hook.php(287): sdm_plugins_loaded_tasks(”) #7 /web/public_html/wp-includes/class-wp-h in /web/public_html/wp-includes/rewrite.php on line 173
I didn’t see any email.
Then when adding a download two posts are generated, one published and a draft.
I have the latest version of WordPressApril 11, 2020 at 11:46 pm #1505adminKeymasterThat is weird. Can you please deactivate and delete the plugin and then re-download and activate it?
You won’t lose any data that you have saved within this plugin. So it is safe to delete and re-add the plugin.
April 13, 2020 at 8:42 pm #1512chadrioParticipantHello, tomorrow I test and comment, I use it together with the hidden download plugin.
April 15, 2020 at 4:01 pm #1522chadrioParticipantDone, I have deactivate, delete and re-uploaded the last version of the plugin, updating it keeps giving the same error /public_html/wp-includes/rewrite.php on line 173
The other error of duplicating content seems to be separate and it also happens to me with another plugin from another author (Responsive Grid Gallery with Custom Links Pro), in both cases the behavior is identical but neither of the two plugins seem to be responsible, when WordPress does automatic post saving it creates a draft, when publishing it instead of changing draft to published it creates a new post, I am checking if it can be some other plugin that interferes or is it a thing of the latest version of WordPress.
I don’t know what can cause it.
April 15, 2020 at 4:27 pm #1523chadrioParticipantDetected the plugin that causes the failure duplicating a draft and a published post, it is PublishPress, Iยดm using it only with the most basic thing that is the calendar and the statuses, maybe this last causes it. I will comment it to the developers.
Regards ๐
April 15, 2020 at 5:13 pm #1524chadrioParticipantA question, the download counter published in the WordPress administration panel gives me a number 123 and the total 124 as if there was a record of a phantom download, something must be done in the database or the plugin to match but not miss all published downloads? Thank you
April 16, 2020 at 12:57 am #1527adminKeymasterDo you have any offset count set for that download? Edit that download item and check the offset count value to see if you have a number entered in there (which will offset the total count).
April 16, 2020 at 1:38 pm #1528chadrioParticipantThey have already fixed the problem in PublishPress 2.0.6, now Simple Download Monitor works well along with that other plugin
The number discrepancy is at the top of the list of published downloads, there is no offset count set for any download
All (124) Published (123)
The correct number is 123
Could it be that an error was registered in the WordPress database?
May 8, 2020 at 11:49 pm #1547chadrioParticipantChecked, number discrepancy does not disappear when leaving only WordPress with Simple Download Monitor enabled and the other plugins disabled, but I don’t know if it is in the WordPress database or in the plugin itself where I should search, and if it is fixable or not, any suggestion? Thank you. Regards.
May 11, 2020 at 2:12 am #1556adminKeymasterThe count comes from the logs. It is likely the log entries are messed up on this site. Try resetting the logs from the “Logs” menu. Then check to see how the count works after that.
May 18, 2020 at 11:47 am #1564chadrioParticipantHi!
Done, it did not work, but I think it is because the problem is not the plugin, but a phantom entry has been registered in downloads in the WordPress database.
Thank you. Regards.May 18, 2020 at 12:12 pm #1565chadrioParticipantSolved!
I have searched the database for posts type sdm_downloads and found one that did not correspond to anything and was not seen in the download administration panel, I have deleted it in the database and now it is perfect again.
I had previously checked the database for the ghost entry, but it hadn’t occurred to me to search using sdm_downloads
Kind Regards ๐
May 19, 2020 at 1:21 am #1567adminKeymasterThank you for the update. Glad to hear that.
-
AuthorPosts
- You must be logged in to reply to this topic.