Title: Problem after update WordPress 6.1
Last modified: November 2, 2022

---

# Problem after update WordPress 6.1

 *  [Yusup Ali](https://wordpress.org/support/users/fileour/)
 * (@fileour)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/problem-after-update-wordpress-6-1/)
 * 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 3 years, 5 months ago by [Yusup Ali](https://wordpress.org/support/users/fileour/).
    -  This topic was modified 3 years, 5 months ago by [Yusup Ali](https://wordpress.org/support/users/fileour/).

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

 *  Moderator [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/problem-after-update-wordpress-6-1/#post-16156401)
 * 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](https://wordpress.org/support/users/fileour/)
 * (@fileour)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/problem-after-update-wordpress-6-1/#post-16159168)
 * Thank you [@clorith](https://wordpress.org/support/users/clorith/)
    I have used
   PHP 8.1
 *  [marlinka](https://wordpress.org/support/users/marlinka/)
 * (@marlinka)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/problem-after-update-wordpress-6-1/#post-16410269)
 * 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
 *  [vader7071](https://wordpress.org/support/users/vader7071/)
 * (@vader7071)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/problem-after-update-wordpress-6-1/#post-16442055)
 * 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.
 *     ```wp-block-code
       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
       ```
   
 *  [finc](https://wordpress.org/support/users/finc/)
 * (@finc)
 * [3 years ago](https://wordpress.org/support/topic/problem-after-update-wordpress-6-1/#post-16628381)
 * 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.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 5 participants
 * Last reply from: [finc](https://wordpress.org/support/users/finc/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/problem-after-update-wordpress-6-1/#post-16628381)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
