I have an old wordpress 4.5.24 install, I updated the plugin from 1.8.24 to 1.8.28 (if I remember correctly) and now it throws 500 server errors. Enabling the debug mode I get this error
Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook.
... in plugins/sucuri-scanner/sucuri.php
I tried commenting out the line register_uninstall_hook(__FILE__, 'sucuriscanUninstall'); but then I get
Notice: 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.)
in /home/wp-includes/functions.php on line 4006 Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE
in home/wp-content/plugins/sucuri-scanner/src/installer-skin.lib.php on line 64
removing the plugin folder fixes this error
I have an old wordpress 4.5.24 install, I updated the plugin from 1.8.24 to 1.8.28 (if I remember correctly) and now it throws 500 server errors. Enabling the debug mode I get this error
I tried commenting out the line
register_uninstall_hook(__FILE__, 'sucuriscanUninstall');but then I getremoving the plugin folder fixes this error