• Yusup Ali

    (@fileour)


    Below warnings are appearing after the WordPress update.

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/test/public_html/wp-includes/functions.php on line 7022

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/test/public_html/wp-includes/functions.php on line 7022

    line 7021-   function wp_is_stream( $path ) {
    line 7022-	   $scheme_separator = strpos( $path, '://' );

    ——————————————————————–

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

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

    line 2161	// Standardize all paths to use '/'.
    line 2162		$path = str_replace( '\\', '/', $path );

    Does anyone help me, How to fix it?

    • This topic was modified 2 years ago by Yusup Ali.
    • This topic was modified 2 years ago by Yusup Ali.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Marius L. J.

    (@clorith)

    Hiya,

    What problems are these warnings causing on your end? (they’re deprecation notices, so they shouldn’t actually cause any breaking changes), and could you provide some more details, usually these warnings may come with some additional lines or a so called “stack trace” showing the commands calling each other leading up to the warning being issued like this.

    It would also be nice to know what version of PHP you are on (you can find this information in the Tools > Site Health section, if you do not know it already).

    Thread Starter Yusup Ali

    (@fileour)

    Thank you @clorith
    I have used PHP 8.1

    I have same problem if up php 7.4 on 8.0 or 8.1 wp version 6.1.1?. Usual problem if p php with didfferent numbers and lines, some have decision. This still not

    I am having the same issue. Upgraded web host using MultiPHP Manager from PHP 7.2 to 8.1. Now I am getting these and other errors.

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 7022
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 2162
    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 7022
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 2162
    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 7022
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 2162
    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 7022
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/{site host}/wp/wp-includes/functions.php on line 2162
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/{site host}/wp/wp-includes/functions.php:7022) in /home/{site host}/wp/wp-admin/includes/misc.php on line 1416
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/{site host}/wp/wp-includes/functions.php:7022) in /home/{site host}/wp/wp-includes/functions.php on line 6865
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/{site host}/wp/wp-includes/functions.php:7022) in /home/{site host}/wp/wp-admin/admin-header.php on line 9

    I switched back to php 7 and could see again all reservations in Bookly Plugin

    and all these where gone

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/domain/httpdocs/wp-includes/functions.php on line 7053

    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/domain/httpdocs/wp-includes/functions.php on line 2165

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem after update WordPress 6.1’ is closed to new replies.