WordPress.org

Forums

Update Notifications Manager
WP_DEBUG error with register_uninstall_hook (2 posts)

  1. disagree
    Member
    Posted 3 months 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. disagree
    Member
    Posted 3 months ago #

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

    But please verify

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.