• I’m still on PHP 7.4 because I heard many WordPress plugins and themes don’t support PHP 8, though I also hear that PHP 8 is both more secure and performs better.

    I was going to test out PHP 8 on my site and I see there are RC builds for 8.1 which is supposed to come out this month and went ahead and tested that. Strictly speaking, it appears Yoast SEO works with PHP 8.1, however if you look at the logs, there are warnings about using deprecated features.

    I thought I’d just pass them along.

    Deprecated: Automatic conversion of false to array is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 190
    
    Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/conditionals/third-party/elementor-edit-conditional.php on line 22
    
    Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/generators/schema-generator.php on line 176
    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/models/indexable.php on line 167
    Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/builders/indexable-post-builder.php on line 125
    
    Deprecated: Return type of Yoast\WP\Lib\Model::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/model.php on line 560
    Deprecated: Return type of Yoast\WP\Lib\ORM::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2457
    Deprecated: Return type of Yoast\WP\Lib\ORM::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2468
    Deprecated: Return type of Yoast\WP\Lib\ORM::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2478
    Deprecated: Return type of Yoast\WP\Lib\ORM::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2490
    • This topic was modified 3 years, 4 months ago by enderandrew.
  • The topic ‘PHP 8.1 Compatability’ is closed to new replies.