• solokabarett

    (@solokabarett)


    Unfortunately, I found that the plugin does not work with PHP 8.1, but produces numerous error messages in the log-files, such as the following. I had to reset to PHP 8.0!

    PHP Deprecated: filter_input(): Passing null to parameter #4 ($options) of type array|int is deprecated in /home/.sites/108/site429/web/xxx/wp-content/plugins/google-site-kit/includes/Core/Util/Input.php on line 64

    PHP Deprecated: Return type of Google\\Site_Kit_Dependencies\\Google\\Collection::valid() should either be compatible with Iterator::valid(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/108/site429/web/xxx//wp-content/plugins/google-site-kit/third-party/google/apiclient/src/Collection.php on line 36

    PHP Deprecated: Return type of Google\\Site_Kit_Dependencies\\Google\\Model::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/57/site286/web/xxx/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/Model.php on line 240

    PHP Deprecated: filter_input(): Passing null to parameter #4 ($options) of type array|int is deprecated in /home/.sites/705/site926/web/xxx/wp-content/plugins/google-site-kit/includes/Core/Util/Input.php on line 64

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Hi there @solokabarett,

    Thanks for reaching out, and sorry to hear of your experience from testing the plugin with PHP 8.1.

    At this moment WordPress core does not fully support PHP 8.1, with the depreciation notices you’re encountering not unexpected. Independent of using Site Kit, users of PHP 8.1 can expect depreciation warnings, until WordPress core fully supports PHP 8.1.

    As these warnings shouldn’t impact Site Kit behavior if you’d like to share any details on whether the plugin is working as expected, without dashboard errors I’d be happy to investigate this for you. I’m also happy to recreate an environment similar to your own with PHP 8.1 to confirm that these errors are not as a result of any Site Kit specific incompatibility. In order for me to do so please share your Site Health information.

    Looking forward to your response.

    Thread Starter solokabarett

    (@solokabarett)

    Hi James,
    thank you very much for the feedback!

    Since I have no problems to return to PHP version 8.0 and have support until the end of 2023, I’m happy to wait until the problem is solved in WordPress.

    Under PHP 8.0 Site Kit works perfectly!

    Plugin Support James Osborne

    (@jamesosborne)

    No problem at all @solokabarett! If you have any further queries be sure to reach out and we’d be happy to assist. I’m also going to do some further PHP 8.1 testing to be more award of possible depreciation notices, thanks for your insights.

    Feel free to also re-review your review! Unless of course you’re feelings on the plugin have not changed.

    Plugin Support James Osborne

    (@jamesosborne)

    Just to keep you updated on this I’ve spoken with the team based on your comments and the depreciation notices you’re encountering will eventually become phased out as WordPress supports PHP 8.1 going forward. For backwards compatibility and to maintain support for older PHP versions (ie. 5.6 – out current minimum requirement) it’s expected that many of these depreciation warnings do exist if switching to PHP 8.1.

    Let me know if you have any questions on the above.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working with PHP 8.1’ is closed to new replies.