Title: PHP Deprecated errors while using PHP 8.1
Last modified: December 27, 2022

---

# PHP Deprecated errors while using PHP 8.1

 *  Resolved [Ram Freedman](https://wordpress.org/support/users/ramf/)
 * (@ramf)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-deprecated-errors-while-using-php-8-1/)
 * Hi,
 * I’m using Site Kit by Google Version 1.90.1 – and I want to upgrade to PHP 8.1.
   while doing so I checked WordPress error log and I see several lines regarding
   the Site Kit by Google plugin:
   PHP Deprecated: Constant FILTER_SANITIZE_STRING
   is deprecated in /wp-content/plugins/google-site-kit/includes/Core/Admin/Standalone.
   php on line 95
 * PHP Deprecated: filter_input(): Passing null to parameter #4 ($options) of type
   array|int is deprecated in wp-content/plugins/google-site-kit/includes/Core/Util/
   Input.php on line 64
 * PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string
   is deprecated in wp-content/plugins/google-site-kit/includes/Core/REST_API/REST_Routes.
   php on line 69
   Is there any version to fix it?
 * Regards,
 * Ram

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-deprecated-errors-while-using-php-8-1/#post-16322288)
 * Hi Ram,
 * Thanks for getting in touch. If using PHP 8.1 depreciation notices are not uncommon,
   with this version still in Beta support for the latest WordPress releases. Such
   notices are not specific to Site Kit, with more details on WordPress support 
   for PHP versions below:
   [https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/](https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/)
 * Note also that we’re aware of this and such errors can be disregarded, with warnings
   expected until PHP 8.1 is fully supported in WordPress. They also don’t impact
   Site Kit set up or functionality. If you find otherwise let me know and we can
   investigate this further.
 * Let me know if you have any further queries on this.`
 *  Thread Starter [Ram Freedman](https://wordpress.org/support/users/ramf/)
 * (@ramf)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-errors-while-using-php-8-1/#post-16530301)
 * Hi, 
   Please note that new this is the PHP Deprecated notification :PHP Deprecated:
   stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated
   in XXX/wp-content/plugins/google-site-kit/includes/Core/REST_API/REST_Routes.
   php on line 69
 * I hope you will fix this notification soon.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-errors-while-using-php-8-1/#post-16532051)
 * Thanks for the update [@ramf](https://wordpress.org/support/users/ramf/). I’ll
   certainly pass your query on to the team regarding this. It may be a case that
   this needs to be address at WordPress core level, but I can’t be sure. PHP 8.1
   is still at Beta support, but I’ll bring this up with the team this week. Thank
   you!

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

The topic ‘PHP Deprecated errors while using PHP 8.1’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [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/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-errors-while-using-php-8-1/#post-16532051)
 * Status: resolved