{"id":17102430,"date":"2023-10-05T12:07:36","date_gmt":"2023-10-05T12:07:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-error-608\/"},"modified":"2023-10-05T12:07:36","modified_gmt":"2023-10-05T12:07:36","slug":"php-error-608","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-error-608\/","title":{"rendered":"Php error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><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\nStack trace:\n#0 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php(1144): strstr()\n#1 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php(1217): add_query_arg()\n#2 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/widgets\/class-wc-widget-layered-nav.php(423): remove_query_arg()\n#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-&gt;layered_nav_list()\n#4 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/class-wp-widget.php(394): WC_Widget_Layered_Nav-&gt;widget()\n#5 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/widgets.php(837): WP_Widget-&gt;display_callback()\n#6 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/themes\/flatsome\/woocommerce\/layouts\/category.php(17): dynamic_sidebar()\n#7 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/template.php(787): require('...')\n#8 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(284): load_template()\n#9 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/themes\/flatsome\/woocommerce\/archive-product.php(27): wc_get_template_part()\n#10 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(345): include('...')\n#11 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/templates\/taxonomy-product-cat.php(22): wc_get_template()\n#12 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/template-loader.php(106): include('...')\n#13 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-blog-header.php(19): require_once('...')\n#14 \/home\/armadabg\/web\/armadabg.eu\/public_html\/index.php(17): require('...')\n#15 {main}\n  thrown \u0432 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php \u043d\u0430 \u0440\u0435\u0434 1144\n\n2023-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\nStack trace:\n#0 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php(1144): strstr()\n#1 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php(1217): add_query_arg()\n#2 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/widgets\/class-wc-widget-layered-nav.php(423): remove_query_arg()\n#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-&gt;layered_nav_list()\n#4 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/class-wp-widget.php(394): WC_Widget_Layered_Nav-&gt;widget()\n#5 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/widgets.php(837): WP_Widget-&gt;display_callback()\n#6 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/themes\/flatsome\/woocommerce\/layouts\/category.php(17): dynamic_sidebar()\n#7 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/template.php(787): require('...')\n#8 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(284): load_template()\n#9 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/themes\/flatsome\/woocommerce\/archive-product.php(27): wc_get_template_part()\n#10 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(345): include('...')\n#11 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/templates\/taxonomy-product-cat.php(22): wc_get_template()\n#12 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/template-loader.php(106): include('...')\n#13 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-blog-header.php(19): require_once('...')\n#14 \/home\/armadabg\/web\/armadabg.eu\/public_html\/index.php(17): require('...')\n#15 {main}\n  thrown \u0432 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php \u043d\u0430 \u0440\u0435\u0434 1144\n\n2023-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\nStack trace:\n#0 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php(1144): strstr()\n#1 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php(1217): add_query_arg()\n#2 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/widgets\/class-wc-widget-layered-nav.php(423): remove_query_arg()\n#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-&gt;layered_nav_list()\n#4 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/class-wp-widget.php(394): WC_Widget_Layered_Nav-&gt;widget()\n#5 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/widgets.php(837): WP_Widget-&gt;display_callback()\n#6 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/themes\/flatsome\/woocommerce\/layouts\/category.php(17): dynamic_sidebar()\n#7 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/template.php(787): require('...')\n#8 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(284): load_template()\n#9 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/themes\/flatsome\/woocommerce\/archive-product.php(27): wc_get_template_part()\n#10 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(345): include('...')\n#11 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-content\/plugins\/woocommerce\/templates\/taxonomy-product-cat.php(22): wc_get_template()\n#12 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/template-loader.php(106): include('...')\n#13 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-blog-header.php(19): require_once('...')\n#14 \/home\/armadabg\/web\/armadabg.eu\/public_html\/index.php(17): require('...')\n#15 {main}\n  thrown \u0432 \/home\/armadabg\/web\/armadabg.eu\/public_html\/wp-includes\/functions.php \u043d\u0430 \u0440\u0435\u0434 1144\n<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-17102430","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17102430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17102430\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17102430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}