[Plugin: User Access Manager Private Extension] [Bug fix]Error in uninstall hook
-
L.S.,
Your plugin throws the following error in debug mode when using the latest public version of the plugin, v0.1:
Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. (This message was added in version 3.1.) in /var/www/vhosts/vvearchipel.nl/subdomains/test/httpdocs/wp-includes/functions.php on line 3501
This is caused by line 84 in the user-access-manager-private-extension.php file:
register_uninstall_hook(__FILE__, array(&$uamPe, 'deactivate'));
You can fix this by changing the above line to:
register_uninstall_hook(__FILE__, 'UserAccessManagerPrivateExtension::deactivate');
Hope this helps!
Smile,
Juliettehttps://www.ads-software.com/extend/plugins/user-access-manager-private-extension/
- The topic ‘[Plugin: User Access Manager Private Extension] [Bug fix]Error in uninstall hook’ is closed to new replies.