• Resolved shawfactor

    (@shawfactor)


    str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
    [file] => /*****/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php

    should be easy to fix, can you please action?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @shawfactor! Thanks for reporting the error; we will definitely want to fix that.

    Does the error message indicate a line number that this occurs on? There are many calls to str_replace throughout wp-cache-phase2.php, and knowing where this occurs would help us find the problem.

    Plugin Support Jay

    (@bluejay77)

    Hi there,

    It has been more than one week since we have heard from you, so I’m marking this topic as resolved.

    But if you have any further questions or need some more help, you’re welcome to reply here or open another thread.

    I’m not the person who posted this, but I have the same problem.

    str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
    wp-content/plugins/wp-super-cache/wp-cache-phase2.php:32
    str_replace()
    wp-content/plugins/wp-super-cache/wp-cache-phase2.php:32
    get_wp_cache_key()
    wp-content/plugins/wp-super-cache/wp-cache-phase2.php:85
    wp_super_cache_init()
    wp-content/plugins/wp-super-cache/wp-cache-phase2.php:350
    wp_cache_postload()
    wp-settings.php:470
    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @effatainc

    As mentioned above:

    Does the error message indicate a line number that this occurs on? There are many calls to str_replace throughout wp-cache-phase2.php, and knowing where this occurs would help us find the problem.

    Are you able to provide this information?

    No further information is displayed.

    It is displayed everywhere on the management screen and display side.

    It was not displayed in PHP 8.0, and it came to be displayed as soon as it was upgraded to 8.1.

    Plugin Contributor Mark (a11n)

    (@thingalon)

    Thank you @effatainc – the snippet you posted identified the line numbers and helped me confirm that a patch recently added to WP Super Cache should fix the problem.

    We will release the fix for this soon, and will report back here when it is out.

    Thank you Mark.

    I look forward to the updates.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @effatainc

    The update should be released early next week.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘php 8.1 non fatal error’ is closed to new replies.