Critical error after updating to php8/php8.1
-
we have the free version of Yoast running on several websites. The websites all broke after updating to php8/8.1 The critical error message we get refers to yoast SEO. Afeter deactivating the plugin the site is online again. Looking in this support forum I find threads with simular problems from months ago. But the problem still exist. This is the content of one of the critical error mails (changed domain name for privacy)
Als je hulp nodig hebt met dit probleem, kan je gevraagd worden om de volgende informatie:
WordPress versie 6.0.2
Actief thema: Altitude Pro (versie 1.0.3)
Huidige plugin: Yoast SEO (versie 19.7.1)
PHP versie 8.1.10Foutdetails
===========
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 183 van het bestand /var/www/vhosts/domain.xxx/httpdocs/cms/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php. Foutmelding: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /var/www/vhosts/domain.xxx/httpdocs/cms/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php:183
Stack trace:
#0 /var/www/vhosts/domain.xxx/httpdocs/cms/wp-content/plugins/wordpress-seo/src/integrations/watchers/auto-update-watcher.php(183): in_array()
#1 /var/www/vhosts/domain.xxx/httpdocs/cms/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 /var/www/vhosts/domain.xxx/httpdocs/cms/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 /var/www/vhosts/domain.xxx/httpdocs/cms/wp-includes/class-wp-hook.php(307): Yoast\WP\SEO\Integrations\Watchers\Auto_Update_Watcher->auto_update_notification_not_if_dismissed()
#4 /var/www/vhosts/domain.xxx/httpdocs/cms/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#5 /var/www/vhosts/domain.xxx/httpdocs/cms/wp-includes/plugin.php(476): WP_Hook->do_action()
#6 /var/www/vhosts/domain.xxx/httpdocs/cms/wp-admin/admin.php(175): do_action()
#7 /var/www/vhosts/domain.xxx/httpdocs/cms/wp-admin/plugins.php(10): require_once(‘…’)
#8 {main}
thrown`hope you can give a solution. It’s about several sites.. don’t want to switch to another SEO plugin but the sites need to work with one
with regards
Karin
- The topic ‘Critical error after updating to php8/php8.1’ is closed to new replies.