• Resolved leo26mi

    (@leo26mi)


    WordPress 6.1.1
    Site Kit by Google 1.85.0

    Thrown in

    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

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

    (@jamesosborne)

    Hi @leo26mi,

    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/

    Note also that we’re aware of this and they 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 leo26mi

    (@leo26mi)

    @jamesosborne Hi

    Thank you for the explanation,
    We already updated the site to run in PHP 8.1, and so far we didn’t notice any problems yet.

    We will reach you later once we get the problem(s)

    Thank you!

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update! And yes, do indeed reach out if you encounter any problems! Thank you.

    Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/******/public_html/wp-content/plugins/google-site-kit/includes/Core/REST_API/REST_Routes.php on line 69

    Query Monitor

    This depracation notification seems to affect site layout on mobile devices in particular. Yes, running PHP 8.1.

    • This reply was modified 3 years, 2 months ago by n10s.
    • This reply was modified 3 years, 2 months ago by n10s.
    Plugin Support James Osborne

    (@jamesosborne)

    Hi @n10s,

    Such depreciate notices are normal when using PHP 8.1, with WordPress core support for PHP 8.1 still in Beta mode, as per the below:
    https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

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

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