WordPress.org

Ready to get started?Download WordPress

Forums

Update Notifications Manager
[resolved] WP_DEBUG error with register_uninstall_hook (3 posts)

  1. Markus Stefanko
    Member
    Posted 1 year ago #

    If you turn on WP_DEBUG, you'll get

    Notice: 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="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.) in /var/www/wp-includes/functions.php on line 2758

    based on line 55 : register_uninstall_hook(__FILE__, array(&$this, 'deactivate'));

    http://wordpress.org/extend/plugins/update-notifications-manager/

  2. Markus Stefanko
    Member
    Posted 1 year ago #

    I think this might be the solution :
    register_uninstall_hook(__FILE__, &$this->deactivate);

    But please verify

  3. GeekPress
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    The new version (1.1.2) fix this bug.

    Thanks for your report ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.