wp-admin/error_log contains warnings
-
My WordPress wp-admin folder contains an error_log file that shows multiple warnings for the following:
[13-Oct-2021 01:43:20 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘_return_false’ not found or invalid function name in /public_html/wp-includes/class-wp-hook.php on line 303
It says that the function that is missing is called ‘_return_false’. Of course this should be __return_false (2 underscores), however when I do a grep on the entire WordPress folder, I find no matches for ‘_return_false’ other than those in the error_log file.
I’ve tested disabling all available plugins and enabling them one by one and have determined that when Jetpack is activated, the errors show up and when Jetpack is disabled no new errors get generated.
The error gets posted as well with DEBUG enabled and is only visible in the admin interface. Each time the admin interface is displayed or refreshed, a new line gets added to error_log. As you can understand, with adding/editing products, managing orders, etc, this can generate large error_log files.
Any idea what causes this and how to fix it?
- The topic ‘wp-admin/error_log contains warnings’ is closed to new replies.