Lots of warnings under PHP 8.1
-
Hi Creators,
I’ve recently switched to PHP 8.1 (as 8.0’s official support ends this month).
After the switch I found that there are several PHP warnings printed to my debug.log – they most often come out when I refresh the WP-Admin ? Plugins screen.
One type of warning is:
PHP Warning: Undefined property: stdClass::$renewalUrl in wp-content/plugins/wordpress-seo/inc/class-addon-manager.php on line 827
There are several similar warnings, too – for other properties of this stdClass.
Another type of warning is this one:
PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in wp-content/plugins/wordpress-seo/inc/class-addon-manager.php on line 552
PHP Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in wp-content/plugins/wordpress-seo/inc/class-addon-manager.php on line 346
So it looks like the Addon Manager class is generating most of them.
While I know these are not real errors, it would be a good idea to eliminate these warnings. E.g. now if I want to debug anything else, I have to browse through hundreds of warnings generated by Yoast SEO to find the other warning.
Thanks,
Ervin
- The topic ‘Lots of warnings under PHP 8.1’ is closed to new replies.