Homepage break If I use static block shortcode in variation product

This topic has 8 replies, 2 voices, and was last updated 2 years ago ago by Olga Barlow

  • Avatar: Mr.X
    Mr.X
    Participant
    March 28, 2022 at 17:35

    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
    7 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 29, 2022 at 14:04

    Hello,

    Provide us with WP Dashboard and FTP access. We’ll check the issue in more detail.

    Regards

    Avatar: Mr.X
    Mr.X
    Participant
    March 29, 2022 at 18:51

    Hi, access provided.
    I think this is a bug and should be fixed in other upcoming updates.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 30, 2022 at 10:34

    Hello,

    Thank you. I have passed your issue to our developers. I’ll inform you once they fix that.

    Regards

    Avatar: Mr.X
    Mr.X
    Participant
    March 30, 2022 at 11:42

    Thank you.
    Can you tell me how long it will be?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 30, 2022 at 14:59

    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

    Avatar: Mr.X
    Mr.X
    Participant
    March 30, 2022 at 17:08

    Okay, Thank you.
    Will this get fixed in the future update ?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 31, 2022 at 03:26

    Hello,

    Unfortunately, there is no way to fix that. So, use one of the offered solutions.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.