Support » Plugin: Update Notifications Manager » WP_DEBUG error with register_uninstall_hook

  • Resolved Markus Stefanko


    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="">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'));

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think this might be the solution :
    register_uninstall_hook(__FILE__, &$this->deactivate);

    But please verify

    Plugin Author GeekPress



    The new version (1.1.2) fix this bug.

    Thanks for your report 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP_DEBUG error with register_uninstall_hook’ is closed to new replies.