Title: Using null as an array offset is deprecated, use an empty string instead
Last modified: July 11, 2026

---

# Using null as an array offset is deprecated, use an empty string instead

 *  [erictansh](https://wordpress.org/support/users/erictansh/)
 * (@erictansh)
 * [3 weeks, 6 days ago](https://wordpress.org/support/topic/using-null-as-an-array-offset-is-deprecated-use-an-empty-string-instead/)
 * Please fix this deprecated function for PHP v8.5+
   Using null as an array offset
   is deprecated, use an empty string instead
    1.  wp-content/plugins/google-site-kit/includes/Core/Admin/Screens.php:218
    2.  `Google\Site_Kit\Core\Tracking\Tracking->inline_js_tracking_data()`
        wp-content/
        plugins/google-site-kit/includes/Core/Tracking/Tracking.php:112
    3.  `Google\Site_Kit\Core\Tracking\Tracking->{closure:Google\Site_Kit\Core\Util\
        Method_Proxy_Trait::get_method_proxy():24}()`
        wp-content/plugins/google-site-
        kit/includes/Core/Util/Method_Proxy_Trait.php:25
    4.  `apply_filters('googlesitekit_inline_tracking_data')`
        wp-content/plugins/google-
        site-kit/includes/Core/Assets/Assets.php:985
    5.  `Google\Site_Kit\Core\Assets\Assets->get_inline_tracking_data()`
        wp-content/
        plugins/google-site-kit/includes/Core/Assets/Assets.php:985
    6.  `Google\Site_Kit\Core\Assets\Assets->{closure:Google\Site_Kit\Core\Assets\Assets::
        get_assets():449}()`
        wp-content/plugins/google-site-kit/includes/Core/Assets/
        Assets.php:450
    7.  `call_user_func()`
    8.  `Google\Site_Kit\Core\Assets\Script_Data->{closure:Google\Site_Kit\Core\Assets\
        Script_Data::__construct():47}()`
        wp-content/plugins/google-site-kit/includes/
        Core/Assets/Script_Data.php:51
    9.  `call_user_func()`
    10. `Google\Site_Kit\Core\Assets\Asset->before_print()`
        wp-content/plugins/google-
        site-kit/includes/Core/Assets/Asset.php:130
    11. `Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks()`
        wp-content/
        plugins/google-site-kit/includes/Core/Assets/Assets.php:1107
    12. `Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks()`
        wp-content/
        plugins/google-site-kit/includes/Core/Assets/Assets.php:1116
    13. `Google\Site_Kit\Core\Assets\Assets->{closure:Google\Site_Kit\Core\Assets\Assets::
        register():159}()`
        wp-content/plugins/google-site-kit/includes/Core/Assets/
        Assets.php:161
    14. `do_action('wp_print_scripts')`
        wp-includes/script-loader.php:2272
    15. `wp_print_head_scripts()`
        wp-includes/script-loader.php:2272
    16. `do_action('wp_head')`
        wp-includes/general-template.php:3208
    17. `wp_head()`
        wp-includes/general-template.php:3208
    18. `require_once(wp-content/themes/ikedaspa/header-banner.php)`
        wp-content/themes/
        ikedaspa/header-banner.php:9
    19. `load_template(wp-content/themes/ikedaspa/header-banner.php)`
        wp-includes/template.
        php:814
    20. `locate_template()`
        wp-includes/template.php:749
    21. `get_header('banner')`
        wp-includes/general-template.php:48
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-null-as-an-array-offset-is-deprecated-use-an-empty-string-instead%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [erictansh](https://wordpress.org/support/users/erictansh/)
 * (@erictansh)
 * [3 weeks, 5 days ago](https://wordpress.org/support/topic/using-null-as-an-array-offset-is-deprecated-use-an-empty-string-instead/#post-18962828)
 * I have submitted the site health information through your form. Please check.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [3 weeks, 4 days ago](https://wordpress.org/support/topic/using-null-as-an-array-offset-is-deprecated-use-an-empty-string-instead/#post-18963375)
 * Hi [@erictansh](https://wordpress.org/support/users/erictansh/), thanks for reaching
   out and for sharing the PHP deprecation error you’re seeing. We are aware of 
   this and will look to address this in due course. We have an open issue for this
   which you can follow [here](https://github.com/google/site-kit-wp/issues/12814).
 * If this is having any impact on the usability of Site Kit for you then please
   let us know and we can investigate that further. Otherwise, this issue will be
   addressed when possible.

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3606666)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * Last activity: [3 weeks, 4 days ago](https://wordpress.org/support/topic/using-null-as-an-array-offset-is-deprecated-use-an-empty-string-instead/#post-18963375)
 * Status: not resolved