• I have recently upgraded to PHP version 8.0 and then 8.1. Even since that time, I have been getting errors in my error log. I do not notice any problems with my site. But my log is showing errors. The most recent error is as follows:

    [21-Dec-2022 18:02:42 UTC] PHP Fatal error:  Uncaught Error: Unknown named parameter $interval in /home/wktfe8j7cwan/public_html/wp-includes/class-wp-hook.php:308
    Stack trace:
    #0 /home/wktfe8j7cwan/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #1 /home/wktfe8j7cwan/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #2 /home/wktfe8j7cwan/public_html/wp-cron.php(188): do_action_ref_array()
    #3 {main}
      thrown in /home/wktfe8j7cwan/public_html/wp-includes/class-wp-hook.php on line 308

    My research shows that this is most likely a plugin that is not compatible with PHP version 8.0. But the stack trace gives no indication of which plug in is the problem and I do not want to disable all 30 or so of my plugins to identify the issue, especially since it appears the site is working.

    Any ideas? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.

    See https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    Thread Starter NYG8OR

    (@nyg8or)

    Thanks for the reply. I was hoping to avoid a complete test of all plugins. I also think that this solution will not lead to being able to identify the offending plugin. As far as I can tell, the site is functioning properly. I only notice the error by looking at the error log. If I use this plug in such that the troubleshooting is only on the logged in user and all other users see the site normally, won’t the error log still show the same errors that it currently does since the core site is still functioning normally?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yeah, probably. You’ll need to *really* disable them. And don’t forget to do a quick swap out on the theme, too.

    Welcome to House-of-Cards-Troubleshooting.

    Thread Starter NYG8OR

    (@nyg8or)

    Is there any way to troubleshoot in the files to determine which plug in is the culprit? I am hesitant to disable plugins b/c I have created significant problems on my site by doing this in the past.

    Alternatively, if the site appears to be working correctly, based on the type of error that is being logged, is there any harm in ignoring this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error: Uncaught Error:’ is closed to new replies.