• Resolved ereckers

    (@ereckers)


    Just updated to your latest Version 6.1.3 today.

    An error appears in the Dashboard when logged in:

    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /srv/www/myproject/htdocs/wp-includes/functions.php on line 4147

    The issue is with your plugin file and line:

    file: backend/AddThisPlugin.php
    line: 418

    I’m running DEBUG = true.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Leland

    (@addthisleland)

    Hi there,

    Thanks for contacting AddThis Support!

    Can you send us a screenshot of this error so our team can take a further look?

    Also are you noticing anything wrong with your AddThis tools?

    Last, can you share with me the URL of your website?

    Thanks,
    Leland

    Thread Starter ereckers

    (@ereckers)

    It’s a “Notice” that appears both in the Dashboard and prints to the top of the page on the frontend. The HTML looks like this:

    
    <br />
    <b>Notice</b>:  register_uninstall_hook was called <strong>incorrectly</strong>. Only a static class method or function can be used in an uninstall hook. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in <b>/srv/www/mysite/htdocs/wp-includes/functions.php</b> on line <b>4147</b><br />
    

    This is in local development with the following wp-config.php settings:

    
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'SCRIPT_DEBUG', true );
    

    I haven’t yet updated in production and I’m not displaying Notices live so a URL to the website wouldn’t help.

    This Notice does not affect the display or functionality of the AddThis plugin and sharing buttons.

    • This reply was modified 6 years, 7 months ago by ereckers.
    Plugin Contributor Leland

    (@addthisleland)

    Got it!

    Our engineer said he’ll work on a fix and release the fix soon.

    Thanks for reporting this in!

    Thanks,
    Leland

    Thread Starter ereckers

    (@ereckers)

    Here’s a screenshot of the Notice that appears at the top of a blog post page: https://s3-us-west-1.amazonaws.com/redbridgenet/addthis-notice-screenshot.png

    Plugin Contributor Leland

    (@addthisleland)

    Thanks Ed!

    We were able to replicate this so a fix will be release soon ??

    Thanks,
    Leland

    Thread Starter ereckers

    (@ereckers)

    Thanks Leland.

    I’ll let you guys mark as resolved once the fix is out?

    Plugin Contributor Leland

    (@addthisleland)

    Hi Ed,

    The fix has been rolled out!

    Can you check to confirm if you’re able to replicate this error anymore?

    Thanks,
    Leland

    Thread Starter ereckers

    (@ereckers)

    Leland, just downloaded the latest update and I can confirm that the Notice no longer appears.

    Plugin Contributor Leland

    (@addthisleland)

    Glad to hear Ed!

    Let us know if you have any feedback, always a pleasure to help ??

    Thanks,
    Leland

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Dashboard error: register_uninstall_hook was called incorrectly’ is closed to new replies.