Title: Php error
Last modified: October 5, 2023

---

# Php error

 *  [marinow1991](https://wordpress.org/support/users/marinow1991/)
 * (@marinow1991)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-608/)
 * Hello, unfortunately after updating PHP to version 8.0 I started getting the 
   following errors. I rolled back to 7.4 but the problem persists.
 *     ```wp-block-code
       2023-10-05T12:00:36+00:00 CRITICAL Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php:1144
       Stack trace:
       #0 /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php(1144): strstr()
       #1 /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php(1217): add_query_arg()
       #2 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php(423): remove_query_arg()
       #3 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php(187): WC_Widget_Layered_Nav->layered_nav_list()
       #4 /home/armadabg/web/armadabg.eu/public_html/wp-includes/class-wp-widget.php(394): WC_Widget_Layered_Nav->widget()
       #5 /home/armadabg/web/armadabg.eu/public_html/wp-includes/widgets.php(837): WP_Widget->display_callback()
       #6 /home/armadabg/web/armadabg.eu/public_html/wp-content/themes/flatsome/woocommerce/layouts/category.php(17): dynamic_sidebar()
       #7 /home/armadabg/web/armadabg.eu/public_html/wp-includes/template.php(787): require('...')
       #8 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()
       #9 /home/armadabg/web/armadabg.eu/public_html/wp-content/themes/flatsome/woocommerce/archive-product.php(27): wc_get_template_part()
       #10 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...')
       #11 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template()
       #12 /home/armadabg/web/armadabg.eu/public_html/wp-includes/template-loader.php(106): include('...')
       #13 /home/armadabg/web/armadabg.eu/public_html/wp-blog-header.php(19): require_once('...')
       #14 /home/armadabg/web/armadabg.eu/public_html/index.php(17): require('...')
       #15 {main}
         thrown в /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php на ред 1144
   
       2023-10-05T12:00:46+00:00 CRITICAL Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php:1144
       Stack trace:
       #0 /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php(1144): strstr()
       #1 /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php(1217): add_query_arg()
       #2 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php(423): remove_query_arg()
       #3 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php(187): WC_Widget_Layered_Nav->layered_nav_list()
       #4 /home/armadabg/web/armadabg.eu/public_html/wp-includes/class-wp-widget.php(394): WC_Widget_Layered_Nav->widget()
       #5 /home/armadabg/web/armadabg.eu/public_html/wp-includes/widgets.php(837): WP_Widget->display_callback()
       #6 /home/armadabg/web/armadabg.eu/public_html/wp-content/themes/flatsome/woocommerce/layouts/category.php(17): dynamic_sidebar()
       #7 /home/armadabg/web/armadabg.eu/public_html/wp-includes/template.php(787): require('...')
       #8 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()
       #9 /home/armadabg/web/armadabg.eu/public_html/wp-content/themes/flatsome/woocommerce/archive-product.php(27): wc_get_template_part()
       #10 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...')
       #11 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template()
       #12 /home/armadabg/web/armadabg.eu/public_html/wp-includes/template-loader.php(106): include('...')
       #13 /home/armadabg/web/armadabg.eu/public_html/wp-blog-header.php(19): require_once('...')
       #14 /home/armadabg/web/armadabg.eu/public_html/index.php(17): require('...')
       #15 {main}
         thrown в /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php на ред 1144
   
       2023-10-05T12:00:56+00:00 CRITICAL Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php:1144
       Stack trace:
       #0 /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php(1144): strstr()
       #1 /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php(1217): add_query_arg()
       #2 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php(423): remove_query_arg()
       #3 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php(187): WC_Widget_Layered_Nav->layered_nav_list()
       #4 /home/armadabg/web/armadabg.eu/public_html/wp-includes/class-wp-widget.php(394): WC_Widget_Layered_Nav->widget()
       #5 /home/armadabg/web/armadabg.eu/public_html/wp-includes/widgets.php(837): WP_Widget->display_callback()
       #6 /home/armadabg/web/armadabg.eu/public_html/wp-content/themes/flatsome/woocommerce/layouts/category.php(17): dynamic_sidebar()
       #7 /home/armadabg/web/armadabg.eu/public_html/wp-includes/template.php(787): require('...')
       #8 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()
       #9 /home/armadabg/web/armadabg.eu/public_html/wp-content/themes/flatsome/woocommerce/archive-product.php(27): wc_get_template_part()
       #10 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...')
       #11 /home/armadabg/web/armadabg.eu/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template()
       #12 /home/armadabg/web/armadabg.eu/public_html/wp-includes/template-loader.php(106): include('...')
       #13 /home/armadabg/web/armadabg.eu/public_html/wp-blog-header.php(19): require_once('...')
       #14 /home/armadabg/web/armadabg.eu/public_html/index.php(17): require('...')
       #15 {main}
         thrown в /home/armadabg/web/armadabg.eu/public_html/wp-includes/functions.php на ред 1144
       ```
   

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-608/#post-17103419)
 * The error message is caused by an incorrect value being passed from your theme
   flatsome or from the plugin WooCommerce. Flatsome is a commercial plugin, so 
   I would recommend you to contact their support: [https://themeforest.net/item/flatsome-multipurpose-responsive-woocommerce-theme/5484319/support](https://themeforest.net/item/flatsome-multipurpose-responsive-woocommerce-theme/5484319/support)–
   questions about commercial products [are not allowed here in the forum](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).

Viewing 1 replies (of 1 total)

 The topic ‘Php error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-608/#post-17103419)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
