This topic has 7 replies, 2 voices, and was last updated 1 years, 11 months ago ago by Rose Tyler
Dear Support Team,
On the mobile version of my website I detected the following issue:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/tanyarts/public_html/wp-content/plugins/xstore-amp/includes/actions/filters.php:54 Stack trace: #0 /home/tanyarts/public_html/wp-includes/class-wp-hook.php(308): XStore_AMP_filters->{closure}(”) #1 /home/tanyarts/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /home/tanyarts/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/tanyarts/public_html/wp-content/plugins/woocommerce/templates/content-product.php(57): do_action(‘woocommerce_aft…’) #4 /home/tanyarts/public_html/wp-includes/template.php(785): require(‘/home/tanyarts/…’) #5 /home/tanyarts/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template(‘/home/tanyarts/…’, false) #6 /home/tanyarts/public_html/wp-content/plugins/xstore-amp/xstore-amp.php(1256): wc_get_template_part(‘content’, ‘product’) #7 /home/tanyarts/public_html/wp-content/plugins/xstore-amp/xstore-amp.php(1488): XStore_AMP->create_carousel(Object(WP_Query), ‘product’, Array) #8 /home/tanyarts/public_html/wp-content/plugins/xstore-amp/includes/templates/page.php(191): XStore_AMP->get_products(‘random’, Array, Array) #9 /home/tanyarts/public_html/wp-content/plugins/xstore-amp/xstore-amp.php(841): include_once(‘/home/tanyarts/…’) #10 /home/tanyarts/public_html/wp-content/plugins/xstore-amp/xstore-amp.php(633): XStore_AMP->load_template(‘/home/tanyarts/…’, 4414, Object(WP_Post)) #11 /home/tanyarts/public_html/wp-includes/class-wp-hook.php(308): XStore_AMP->amp_prepare_render(”) #12 /home/tanyarts/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #13 /home/tanyarts/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /home/tanyarts/public_html/wp-includes/template-loader.php(13): do_action(‘template_redire…’) #15 /home/tanyarts/public_html/wp-blog-header.php(19): require_once(‘/home/tanyarts/…’) #16 /home/tanyarts/public_html/index.php(17): require(‘/home/tanyarts/…’) #17 {main} thrown in /home/tanyarts/public_html/wp-content/plugins/xstore-amp/includes/actions/filters.php on line 54
I noticed that when I disable the XStore AMP plugin, the error message disappears on the mobile, but then desktop crashes.
Hello,
Thank you so much for purchasing our theme and contacting our support center.
Please provide FTP access.
If you do not know how to create FTP contact with your hosting provider, they will help you.
Regards
Done.
Hello,
FTP directory is empty – https://prnt.sc/oXBZqST-VXGf
Check the destination folder of our user, or ask your hosting provider for help with this, we need access to your WP installation.
Regards
Is it ok now?
Yes, thanks.
Another specialist will get back to you after a detailed review. Please be patient and do not change access.
Regards
You are using XStore AMP and there was a bug in code (if brands product taxonomy was enabled in Theme Options)
This bug is fixed for you (in plugins/xstore-amp/includes/actions/filters.php ) and also the fix will be included in the next plugin update.
Regards
Tagged: fatal error, mobile version, seo friendly, template, woocommerce, wordpress, xstore
You must be logged in to reply to this topic.Log in/Sign up