Title: PHP warning: Using null as an array offset is deprecated, use an empty string
Last modified: October 6, 2026

---

# PHP warning: Using null as an array offset is deprecated, use an empty string

 *  [J.](https://wordpress.org/support/users/terribletankard/)
 * (@terribletankard)
 * [2 days, 23 hours ago](https://wordpress.org/support/topic/php-warning-using-null-as-an-array-offset-is-deprecated-use-an-empty-string/)
 *     ```wp-block-code
       Using null as an array offset is deprecated, use an empty string instead
       ```
   
 * **Request Path<svg class=”w-3.5 h-3.5 text-zinc-400″ fill=”none” viewbox=”0 0
   24 24″ stroke-width=”1.5″ stroke=”currentColor”></svg>**
 * <code class=”text-sm font-mono font-medium text-zinc-700 dark:text-zinc-200″>
   POST /wp-login.php
 * 
   **File**
 * <code class=”text-sm font-mono text-zinc-600 dark:text-zinc-300″>wp-content/plugins/
   wordpress-seo/src/memoizers/meta-tags-context-memoizer.php : <span class=”text-
   amber-500 font-semibold”>L154</span>
 * 
   **Stack Trace**`#wp-content/plugins/wordpress-seo/src/memoizers/meta-tags-context-
   memoizer.php:154#wp-content/plugins/wordpress-seo/src/memoizers/meta-tags-context-
   memoizer.php:103 Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer->get()#wp-
   content/plugins/wordpress-seo/src/integrations/front-end/wp-robots-integration.
   php:87 Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer->for_current_page()#
   wp-content/plugins/wordpress-seo/src/integrations/front-end/wp-robots-integration.
   php:73 Yoast\WP\SEO\Integrations\Front_End\WP_Robots_Integration->get_robots_value()#
   wp-includes/class-wp-hook.php:353 Yoast\WP\SEO\Integrations\Front_End\WP_Robots_Integration-
   >add_robots()#wp-includes/plugin.php:206 WP_Hook->apply_filters()#wp-includes/
   robots-template.php:32 apply_filters()#wp-includes/class-wp-hook.php:353 wp_robots()#
   wp-includes/class-wp-hook.php:377 WP_Hook->apply_filters()#wp-includes/plugin.
   php:523 WP_Hook->do_action()#wp-login.php:127 do_action()#wp-login.php:1491 login_header(){"
   wp_version": "7.1.2", "php_version": "8.5.10", "memory_usage": "8 MB", "memory_peak":"
   8 MB", "locale": "nl_NL", "context": "frontend"}
 * Running the latest version of Yoast.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [2 days, 5 hours ago](https://wordpress.org/support/topic/php-warning-using-null-as-an-array-offset-is-deprecated-use-an-empty-string/#post-19038932)
 * Hello [@terribletankard](https://wordpress.org/support/users/terribletankard/),
 * Thanks for reaching out about the deprecation notices in your error log. Please
   note that deprecation notices are not errors and do not break any WordPress functionality.
   You can safely ignore them. Our development team will fix deprecated messages
   subsequently.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-using-null-as-an-array-offset-is-deprecated-use-an-empty-string%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * Last activity: [2 days, 5 hours ago](https://wordpress.org/support/topic/php-warning-using-null-as-an-array-offset-is-deprecated-use-an-empty-string/#post-19038932)
 * Status: not resolved