Continuous log of notices in debug.log for register_unistall_hook
-
Hi Mate,
There is continuous log of Notice in debug.log file as below
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 wp-includes/functions.php on line 5865
This issue can be resolve by making below change on line no 37 of anytrack-of-woocommerce.php file as below
register_uninstall_hook( __FILE__, array( ‘anytrack_for_woocommerce_MainStart’,’plugin_uninstall’ ));
It was before called as below which was causing this issue.
register_uninstall_hook( __FILE__, [$this,’plugin_uninstall’ ]);
Regards,
Vimal Agarwal
Associate Project Manager, Asentech
The topic ‘Continuous log of notices in debug.log for register_unistall_hook’ is closed to new replies.