• Resolved stoelwinder

    (@stoelwinder)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @stoelwinder

    I see that you’ve mentioned that this is specifically happening on the log file, so I’d suppose it isn’t currently showing on your WP Admin dashboard or any other place?

    I’d be happy if you share with us your site URL, so we can take a look and see if there’s anything off; if you wish to remain private with that, you can reach out to us here instead.

    Best,

    Thread Starter stoelwinder

    (@stoelwinder)

    Thanks for responding. Yeah I’m not too comfortable sharing the URL here, but I have created a ticket on the Jetpack support website. Thanks.

    Indeed, only if I switch on DEBUG mode in the wp-config file, then I will see the error in the admin interface. There’s nothing off in the dashboard from what I can see.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @stoelwinder

    I see that we’ve received your ticket. Someone will get back to your shortly. In the meantime, since we’re working with you there, I’m going to close this thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-admin/error_log contains warnings’ is closed to new replies.