Fatal error with PHP 8.0 / 8.1
-
I have a site with Yoast SEO (21.5) which is getting fatal errors when I try running PHP 8.0 or 8.1. PHP 7.4 works fine. Also, if I switch to PHP 8.1 and deactivate Yoast SEO, also the site works fine.
I’ve also tried switching to a default theme 2020, and still the issue occurs, so it can’t be a custom theme issue either.
Error in the log is:
[13-Nov-2023 01:03:08 UTC] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /sites/XXXXXX/files/public/wp-content/plugins/wordpress-seo/src/helpers/pagination-helper.php:77
Weird thing is I have many other sites using PHP 8.1 and Yoast SEO, but haven’t had this problem before.
Any help, advice or assistance appreciated! Thanks.
- The topic ‘Fatal error with PHP 8.0 / 8.1’ is closed to new replies.