Skip to content

PHP 8.5 compatibility - Deprecated: Using null as an array offset is deprecated for /wp-login.php page #22811

@ilicfilip

Description

@ilicfilip
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

After updating to WordPress 6.9 and bumping PHP version to 8.5 I am getting PHP notices in the PHP error log.

To Reproduce

Visiting the /wp-login.php page will trigger following:

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /****/htdocs/wp-content/plugins/wordpress-seo/src/memoizers/meta-tags-context-memoizer.php on line 135
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /****/htdocs/wp-content/plugins/wordpress-seo/src/memoizers/presentation-memoizer.php on line 49
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /****/htdocs/wp-content/plugins/wordpress-seo/src/memoizers/presentation-memoizer.php on line 63
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /****/htdocs/wp-content/plugins/wordpress-seo/src/memoizers/presentation-memoizer.php on line 66
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /****/htdocs/wp-content/plugins/wordpress-seo/src/memoizers/meta-tags-context-memoizer.php on line 154
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /****/htdocs/wp-content/plugins/wordpress-seo/src/memoizers/meta-tags-context-memoizer.php on line 157

Intermittently, in WP Dashboard, I get following as well:

[10-Dec-2025 08:55:01 UTC] PHP Deprecated:  YoastSEO_Vendor\League\OAuth2\Client\Provider\AbstractProvider::authorize(): Implicitly marking parameter $redirectHandler as nullable is deprecated, the explicit nullable type must be used instead in /****/htdocs/wp-content/plugins/wordpress-seo/vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php on line 416
[10-Dec-2025 08:55:01 UTC] PHP Deprecated:  YoastSEO_Vendor\GuzzleHttp\Client::getConfig(): Implicitly marking parameter $option as nullable is deprecated, the explicit nullable type must be used instead in /****/htdocs/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Client.php on line 181
[10-Dec-2025 08:55:01 UTC] PHP Deprecated:  YoastSEO_Vendor\GuzzleHttp\ClientInterface::getConfig(): Implicitly marking parameter $option as nullable is deprecated, the explicit nullable type must be used instead in /****/htdocs/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php on line 77

Used versions

  • Device you are using: MacBook
  • Operating system: MacOS, Valet
  • PHP version: 8.5
  • WordPress version: 6.9
  • WordPress Theme: 2025
  • Yoast SEO version: 26.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions