Skip to content

register_uninstall_hook error after update to 1.8.28 #127

Description

@LivingWithHippos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions