• Resolved JochenT

    (@jochent)


    When in the backend of an installation and WP_DEBUG is enabled I get the following notice every 30 seconds (due to the HeartBeat calls):

    PHP Notice: Function 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.0.) in /usr/www/users/zeitrm/wp-includes/functions.php on line 5865

    This stops immediately after disabling this plugin. Also looking at the source code in file …/plugins/host-webfonts-local/src/Plugin.php#48 shows that a none static method call is used:

    register_uninstall_hook( OMGF_PLUGIN_FILE, [ $this, 'do_uninstall' ] );
    • This topic was modified 1 year, 7 months ago by JochenT.
    • This topic was modified 1 year, 7 months ago by JochenT.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Error log spam due to false call of uninstall function’ is closed to new replies.