• 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

    (@jamesosborne)

    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.www.ads-software.com/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

    (@ramf)

    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

    (@jamesosborne)

    Thanks for the update @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.