This topic has 8 replies, 2 voices, and was last updated 2 years, 7 months ago ago by Olga Barlow
So I have a variation product and when I use a shortcode of static blocks in the description of it. The homepage would break and the error is showed but the product page is working just fine
Error Details
=============
An error of type E_ERROR was caused in line 1973 of the file /home/storelin/public_html/wp-content/themes/xstore/framework/woo.php. Error message: Uncaught Error: Call to a member function get_type() on null in /home/storelin/public_html/wp-content/themes/xstore/framework/woo.php:1973
Stack trace:
#0 /home/storelin/public_html/wp-content/themes/xstore/woocommerce/content-product.php(515): etheme_product_cats()
#1 /home/storelin/public_html/wp-includes/template.php(772): require('/home/storelin/...')
#2 /home/storelin/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home/storelin/...', false)
#3 /home/storelin/public_html/wp-content/themes/xstore/framework/woo.php(624): wc_get_template_part('content', 'product')
#4 /home/storelin/public_html/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/products.php(575): etheme_products(Array, '', 5, Array)
#5 /home/storelin/public_html/wp-content/plugins/et-core-plugin/templates/elementor/advanced-tabs.php(155): ETC\App\Controllers\Shortcodes\Products->products_shortcode(Array, '')
#6 /home/storelin/public_html/wp-content/plugins/et-core-plugin/core/view.php
Hello,
Provide us with WP Dashboard and FTP access. We’ll check the issue in more detail.
Regards
Hi, access provided.
I think this is a bug and should be fixed in other upcoming updates.
Hello,
Thank you. I have passed your issue to our developers. I’ll inform you once they fix that.
Regards
Thank you.
Can you tell me how long it will be?
Hello,
Issue caused by the static block shortcode in the variation description if variation swatches are enabled on the grid. So, either disable variation swatches on the grid (that I did for you) or don’t use static block shortcode in the description.
Regards
Okay, Thank you.
Will this get fixed in the future update ?
Hello,
Unfortunately, there is no way to fix that. So, use one of the offered solutions.
Regards
You must be logged in to reply to this topic.Log in/Sign up