Hello,
We are having repeated fatal errors on our site when we activate php v8.0. A couple of examples are included below.
Because our site is live, we are unable to deactivate plugins to test, and can’t discover directly how to trigger the error. But, we do know if we roll back to php v7.4, the errors do not occur.
Can you recognize from the stack trace what might be causing this, and is this a known issue???
Is Xstore theme tested against php v8.0???
Your assistance would be greatly appreciated!
Ben
2022-09-17T02:53:47+00:00 CRITICAL Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /nas/content/live/borregooutfitt/wp-includes/functions.php:1143
Stack trace:
#0 /nas/content/live/borregooutfitt/wp-includes/functions.php(1143): strstr(Object(WP_Error), ‘#’)
#1 /nas/content/live/borregooutfitt/wp-includes/functions.php(1212): add_query_arg(‘view_mode’, false, Object(WP_Error))
#2 /nas/content/live/borregooutfitt/wp-content/themes/xstore/framework/woo.php(2423): remove_query_arg(‘view_mode’, Object(WP_Error))
#3 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(307): etheme_grid_list_switcher(”)
#4 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#5 /nas/content/live/borregooutfitt/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#6 /nas/content/live/borregooutfitt/wp-content/themes/xstore/woocommerce/archive-product.php(89): do_action(‘woocommerce_bef…’)
#7 /nas/content/live/borregooutfitt/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/nas/content/li…’)
#8 /nas/content/live/borregooutfitt/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template(‘archive-product…’)
#9 /nas/content/live/borregooutfitt/wp-includes/template-loader.php(106): include(‘/nas/content/li…’)
#10 /nas/content/live/borregooutfitt/wp-blog-header.php(19): require_once(‘/nas/content/li…’)
#11 /nas/content/live/borregooutfitt/index.php(17): require(‘/nas/content/li…’)
#12 {main}
thrown in /nas/content/live/borregooutfitt/wp-includes/functions.php on line 1143
2022-09-17T03:48:32+00:00 CRITICAL Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /nas/content/live/borregooutfitt/wp-includes/functions.php:1143
Stack trace:
#0 /nas/content/live/borregooutfitt/wp-includes/functions.php(1143): strstr(Object(WP_Error), ‘#’)
#1 /nas/content/live/borregooutfitt/wp-includes/functions.php(1212): add_query_arg(‘view_mode’, false, Object(WP_Error))
#2 /nas/content/live/borregooutfitt/wp-content/themes/xstore/framework/woo.php(2423): remove_query_arg(‘view_mode’, Object(WP_Error))
#3 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(307): etheme_grid_list_switcher(”)
#4 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#5 /nas/content/live/borregooutfitt/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#6 /nas/content/live/borregooutfitt/wp-content/themes/xstore/woocommerce/archive-product.php(89): do_action(‘woocommerce_bef…’)
#7 /nas/content/live/borregooutfitt/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/nas/content/li…’)
#8 /nas/content/live/borregooutfitt/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template(‘archive-product…’)
#9 /nas/content/live/borregooutfitt/wp-includes/template-loader.php(106): include(‘/nas/content/li…’)
#10 /nas/content/live/borregooutfitt/wp-blog-header.php(19): require_once(‘/nas/content/li…’)
#11 /nas/content/live/borregooutfitt/index.php(17): require(‘/nas/content/li…’)
#12 {main}
thrown in /nas/content/live/borregooutfitt/wp-includes/functions.php on line 1143