Title: PHP 8 Compatibility
Last modified: January 30, 2023

---

# PHP 8 Compatibility

 *  Resolved [hixaga2](https://wordpress.org/support/users/hixaga2/)
 * (@hixaga2)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-95/)
 * Hello, I hope you are very well, I am testing with PHP 8.1.14 and it gives me
   the following message
 * Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string
   is deprecated in /var/www/html/wp-content/plugins/google-site-kit/includes/Core/
   REST_API/REST_Routes.php online 69
 * What should I do?
 * Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-compatibility-95%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-95/#post-16422294)
 * Hi @hixaga2 thanks for opening this issue. 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 please let us know.
 * Is there anything else I can help with?
 *  Thread Starter [hixaga2](https://wordpress.org/support/users/hixaga2/)
 * (@hixaga2)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-95/#post-16422999)
 * Hello Adam,
 * Thank you very much for the help and explanation. If I take into consideration
   that everything is still in beta and the changes are slow.
 * In any case, if something appears, I will report it just for your information.
 * Thanks for everything and greetings!
 *  [cihomewood](https://wordpress.org/support/users/cihomewood/)
 * (@cihomewood)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-95/#post-16426477)
 * Hi
 * Apologies if this is not the right place to report this, but as this is a PHP8
   thread I thought it appropriate.
 * We are running PHP8.1 and I have started receiving the following error in my 
   WordPress dashboard:
 * **Warning**: Attempt to read property “plugin” on array in **/homepages/43/d870750008/
   htdocs/clickandbuilds/WordPress/SouthportU3A/wp-content/plugins/advanced-iframe/
   advanced-iframe.php** on line **1642**
 * Troubleshooting this has shown that it is caused by the SiteKit by Google plug
   in. Although the error doesn’t appear to effect the website itself I have disabled
   the Sitekit plugin pending a solution.
 * The website effected is [southportu3a.org.uk](http://southportu3a.org.uk). WordPress
   and all plugins are up to date.
 * Thanks for any feedback.
 * Ian
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-95/#post-16428388)
 * [@cihomewood](https://wordpress.org/support/users/cihomewood/) Thanks for your
   comment on this. As mentioned above:
 * 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 please let us know.

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

The topic ‘PHP 8 Compatibility’ 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 8](https://wordpress.org/support/topic-tag/php-8/)

 * 4 replies
 * 3 participants
 * Last reply from: [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-95/#post-16428388)
 * Status: resolved