• Hi

    Today I needed the debug log to show me whats going on in my site , then I saw these:

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/mysubdomain/public_html/wp-includes/functions.php on line 7053
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/mysubdomain/public_html/wp-includes/functions.php on line 2165

    wordpress version:6.2.2

    server config :

    Server architecture	Linux 4.18.0-477.13.1.el8_8.x86_64 x86_64
    Web server	LiteSpeed
    PHP version	8.1.21 (Supports 64bit values)
    PHP SAPI	litespeed
    PHP max input variables	10000
    PHP time limit	300
    PHP memory limit	2048M
    Max input time	600
    Upload max filesize	80M
    PHP post max size	80M
    cURL version	7.61.1 OpenSSL/1.1.1k
    Is SUHOSIN installed?	No
    Is the Imagick library available?	Yes
    Are pretty permalinks supported?	Yes
    .htaccess rules	Custom rules have been added to your .htaccess file.

    How should fix this?

Viewing 1 replies (of 1 total)
  • A plugin you are using or the theme is probably passing an incorrect value to a WordPress core function, which is causing the problem. My recommendation would be that you disable all plugins and enable a default theme. Then you reactivate everything piece by piece until the warning appears again – then you would have found the culprit.

Viewing 1 replies (of 1 total)
  • The topic ‘Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is’ is closed to new replies.