• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Download Monitor & Manager Plugin

Simple Download Monitor & Manager for WordPress

  • Home
  • Documentation
  • Addons/Extensions
  • Login
    • Sign In
    • Edit Profile
    • My Downloads
  • Support
    • Tutorials
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
  • Contact Us
You are here: Home / Topics / Error update and duplicate download posts

[Resolved] Error update and duplicate download posts

· ·

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 5 years ago by admin.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • April 11, 2020 at 12:46 pm #1504
    chadrio
    Participant

    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 WordPress

    April 11, 2020 at 11:46 pm #1505
    admin
    Keymaster

    That 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 #1512
    chadrio
    Participant

    Hello, tomorrow I test and comment, I use it together with the hidden download plugin.

    April 15, 2020 at 4:01 pm #1522
    chadrio
    Participant

    Done, 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 #1523
    chadrio
    Participant

    Detected 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 #1524
    chadrio
    Participant

    A 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 #1527
    admin
    Keymaster

    Do 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 #1528
    chadrio
    Participant

    They 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 #1547
    chadrio
    Participant

    Checked, 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 #1556
    admin
    Keymaster

    The 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 #1564
    chadrio
    Participant

    Hi!
    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 #1565
    chadrio
    Participant

    Solved!

    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 #1567
    admin
    Keymaster

    Thank you for the update. Glad to hear that.

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons

  • Squeeze Form Addon
  • Hidden Downloads Addon
  • Amazon S3 Integration

Support Links

  • Support Forum

Search

Featured Plugin

WP Express Checkout Plugin

Start managing and tracking your file downloads with the simple download monitor plugin. Download Now

Copyright © 2025 | Simple Download Monitor | A member of the Tips and Tricks HQ family.