• Resolved dimal

    (@dimalifragis)


    Hi,

    The LATEST test/alpha/trunk version i installed (updated) today, gives the following under PHP 8.1.

    [06-Jul-2023 18:57:02 UTC] PHP Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1830

    Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dimal

    (@dimalifragis)

    This also appeared:

    [07-Jul-2023 06:11:11 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1045

    Thanks @dimalifragis. The first one is an error we should trap.

    The second one is weird. There’s a literal check to see if $wp_cache_oc_key is not false on the previous line, but maybe it’s the “elseif” on 1046 that’s causing the problem..

    The next release of the plugin will have fixes for these warnings. Thanks for reporting them.

    Thread Starter dimal

    (@dimalifragis)

    Some more:

    1. [28-Jul-2023 11:49:59 UTC] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 227

    1. [28-Jul-2023 11:49:59 UTC] PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 808
    Plugin Support Animesh Gaurav

    (@bizanimesh)

    Hey @dimalifragis – thanks for reporting them. I have forwarded those to the team as well. 🙂

    Plugin Support Animesh Gaurav

    (@bizanimesh)

    Hey @dimalifragis – we added them for the fix here. Thanks for reporting!

    If you have any more questions or come across any other issues, let us know, we’ll be happy to help. 🙂

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

The topic ‘PHP 8.1 – PHP Deprecated: strstr()’ is closed to new replies.