Title: Error not compatible with php 8.x
Last modified: September 19, 2023

---

# Error not compatible with php 8.x

 *  Resolved [richgiangnx](https://wordpress.org/support/users/richgiangnx/)
 * (@richgiangnx)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-not-compatible-with-php-8-x/)
 * Hello,
   I just upgraded my server to php 8.1 and 8.2 and when I went to the settings
   page I received the following message. When I switched back to php8.0 version
   the notification disappeared. Please fix this error. Thank
 *     ```wp-block-code
       Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/mydomainBlwx/mydomain.com/public_html/wp-includes/functions.php on line 7127
   
       Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/mydomainBlwx/mydomain.com/public_html/wp-includes/functions.php on line 2182
   
       Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/mydomainBlwx/mydomain.com/public_html/wp-includes/functions.php on line 7127
   
       Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/mydomainBlwx/mydomain.com/public_html/wp-includes/functions.php on line 2182
   
       Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/mydomainBlwx/mydomain.com/public_html/wp-includes/functions.php on line 7127
   
       Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/mydomainBlwx/mydomain.com/public_html/wp-includes/functions.php on line 2182
       ```
   

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

 *  [robaczek1](https://wordpress.org/support/users/robaczek1/)
 * (@robaczek1)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-not-compatible-with-php-8-x/#post-17068646)
 * I assume this is from the code added by Webp Express? The error messages reference
   functions.php, so could you paste the exact code they are referencing to confirm
   it comes from webp express?
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-not-compatible-with-php-8-x/#post-17136323)
 * Hi,
   Thanks for reporting and sorry for the delay.The bug is fixed with the new
   release (0.25.7)

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

The topic ‘Error not compatible with php 8.x’ is closed to new replies.

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-not-compatible-with-php-8-x/#post-17136323)
 * Status: resolved