• Resolved coadr93

    (@coadr93)


    I’m trying to add the shortcode [pvtfw_table_display] in an elementor product template but I get an error.

    It works on front end. It just breaks the builder when trying to edit this particular plugin.

    Can you help me fix it so i don’t have to deactivate the plugin everytime I edit the elementor template?

    Uncaught Error: Call to a member function is_type() on null in /home/site/public_html/wp-content/plugins/product-variant-table-for-woocommerce/inc/frontend/class_pvtfw_print_table.php:77
    Stack trace:
    #0 /home/site/public_html/wp-includes/shortcodes.php(356): PVTFW_PRINT_TABLE->shortcode_print_table('', '', 'pvtfw_table_dis...')
    #1 [internal function]: do_shortcode_tag(Array)
    #2 /home/site/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(pvtfw_...', 'do_shortcode_ta...', '
    [pvtfw_table...')
    #3 /home/site/public_html/wp-includes/class-wp-hook.php(303): do_shortcode('
    
    [pvtfw_table...')
    #4 /home/site/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('
    
    [pvtfw_table...', Array)
    #5 /home/site/public_html/wp-includes/post-template.php(253): apply_filters('the_content', '[pvtfw_table_di...')
    #6 /home/site/public_html/wp-content/plugins/elementor/modules/page-templates/module.php(190): the_content()
    #7 [internal function]: Elementor\Modules\PageTemp
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    Hi @coadr93

    Thanks for reaching out to me. I am very sorry for your inconvenience.

    Please give me some time to reproduce the issue from my end.

    I will get back to you soon.

    Thank You

    Thread Starter coadr93

    (@coadr93)

    Hello.

    Well… Install WooCommerce, Elementor and PVT.

    Add a product with variations.

    Create an Elementor template in the Elementor builder and add [pvtfw_table_display] shortcode somewhere in the template.

    Then save and refresh and it should crash the editor.

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @coadr93

    Just want to give you an update. I have tested it on my local machine. Unfortunately, I couldn’t reproduce it in my local environment.

    Could you please check once again your display condition? Is it Single Product or anything else?

    Note: PVT shortcode will work on a single product page.

    I will test it on the live site and will get back to you.

    Thanks in advance for your patience.

    Thread Starter coadr93

    (@coadr93)

    Yes, the display condition of the Elementor template is Single Product.

    The shortcode works on the frontend of the products.

    But the problem is in the backend of Elementor.

    Try to edit the template after adding the shortcode and it will crash the editor, at least in my case.

    Of course, I think you also have to crate a variable product first, so that the PVT shortcode has something to try to display.

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @coadr93

    Thanks for sharing the steps to reproduce the issue.

    Unfortunately, still I couldn’t reproduce it from my end. ?

    Please check this screencast and let me know your thoughts.

    Thanks

    Thread Starter coadr93

    (@coadr93)

    Hello.

    Thank you for taking the time to debug.

    I have did some more debugging and it seems that the theme Hello Elementor is at fault!

    Please install Hello Elementor (I also use a child theme for it, but the theme alone will crash it in my case).

    Since I use templates for all my pages I don’t really need a particular theme, I can just use twentytwenty or something, but using Hello Elementor in my case seems to cause the problem.

    Thank you!

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @coadr93

    Thanks for getting back to me and helping me to identify the error.

    Yes, I have tested it with the Hello Elementor theme.

    Unfortunately, still couldn’t reproduce the issue from my end. ??

    Please check this screencast.

    Thread Starter coadr93

    (@coadr93)

    HMmm… I have tested more but couldn’t find anything else…

    My plugins are

    Elementor 3.5.4
    Elementor Pro 3.5.2
    PVT 1.3.14
    WooCommerce 6.1.1

    WP version 5.9

    Hello Elementor Theme 2.5.0

    I do have the website set on a HTTP though, and an IP instead of an actual domain name. So something like https://1.1.1.1/~cpanelusr/ would be the Home URL. Could this cause the issue?

    Other than that… I don’t know. I’ve tried PHP 7.2, 7.3, 7.4 and 8.0.

    Even tried creating another template just with the shortcode in it, removing header and footer templates, disabling maintenance, nothing fixes it.

    In my case, it seems that adding Hello Elementor crashes it.

    I have tested on another testing website and I can’t seem to recreate the issue there either.

    My bet is that the URLs are the problem… but can’t say for sure.

    I will test after I move it to domain and let you know.

    Thanks

    • This reply was modified 2 years, 10 months ago by coadr93.
    Plugin Author Hakik Zaman

    (@hakik)

    Hi @coadr93

    Thanks for reporting me to identify the error.

    Yes, sure. Please let me know what happened after migrating your site to the domain.

    I will wait for your next response.

    Thank You

    Plugin Author Hakik Zaman

    (@hakik)

    Hi,

    It’s been a while I didn’t hear from you.

    So, I am changing its status as resolved.

    Please feel free to write me by opening a new thread, if you face any issues.

    Thank You

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Breaking Elementor Builder’ is closed to new replies.