Error when switching to PHP 8.0
-
When I try switching from PHP 7.4 to 8.0, I’m getting this error when trying to access the WordPress admin. Any idea what’s up?
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/user/domains/example.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php:183 Stack trace: #0 /home/user/domains/example.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php(183): in_array() #1 /home/user/domains/example.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php(111): Yoast\WP\SEO\Integrations\Watchers\Auto_Update_Watcher->yoast_auto_updates_enabled() #2 /home/user/domains/example.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php(94): Yoast\WP\SEO\Integrations\Watchers\Auto_Update_Watcher->should_show_notification() #3 /home/user/domains/example.com/public_html/wp-includes/class-wp-hook.php(307): Yoast\WP\SEO\Integrations\Watchers\Auto_Update_Watcher->auto_update_notification_not_if_dismissed() #4 /home/user/domains/example.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 /home/user/domains/example.com/public_html/wp-includes/plugin.php(474): WP_Hook->do_action() #6 /home/user/domains/example.com/public_html/wp-admin/admin.php(175): do_action() #7 /home/user/domains/example.com/public_html/wp-admin/update-core.php(10): require_once('/home/user/...') #8 {main} thrown in /home/user/domains/example.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php on line 183
- The topic ‘Error when switching to PHP 8.0’ is closed to new replies.