Home Forums WoodMart support forum Critical error when editing product page layout

Critical error when editing product page layout

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #640545

    aaron-5833
    Participant

    Hello, I suddenly have a critical error when editing a product page layout.

    Seems something I’m only getting today as I was able to work on it the previous days.

    I’m getting the following error:
    An error of type E_ERROR was caused in line 27 of the file /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/themes/woodmart/woocommerce/single-product/product-image.php. Error message: Uncaught Error: Call to a member function get_gallery_image_ids() on null in /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/themes/woodmart/woocommerce/single-product/product-image.php:27
    Stack trace:
    #0 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
    #1 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/themes/woodmart/inc/modules/layouts/elementor/single-product/class-gallery.php(415): wc_get_template()
    #2 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2366): XTS\Modules\Layouts\Gallery->render()
    #3 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode()
    #4 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(758): Elementor\Widget_Base->render_content()
    #5 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/base/element-base.php(618): Elementor\Widget_Base->get_raw_data()
    #6 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/base/element-base.php(618): Elementor\Element_Base->get_raw_data()
    #7 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/base/element-base.php(618): Elementor\Element_Base->get_raw_data()
    #8 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/core/base/document.php(1088): Elementor\Element_Base->get_raw_data()
    #9 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/core/base/document.php(741): Elementor\Core\Base\Document->get_elements_raw_data()
    #10 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(1070): Elementor\Core\Base\Document->get_initial_config()
    #11 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/core/editor/loader/common/editor-common-scripts-settings.php(38): Elementor\Controls_Stack->get_config()
    #12 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/core/editor/loader/v2/editor-v2-loader.php(153): Elementor\Core\Editor\Loader\Common\Editor_Common_Scripts_Settings::get()
    #13 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/core/editor/editor.php(364): Elementor\Core\Editor\Loader\V2\Editor_V2_Loader->enqueue_scripts()
    #14 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->enqueue_scripts()
    #15 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #16 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #17 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/script-loader.php(2272): do_action()
    #18 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
    #19 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #20 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #21 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/general-template.php(3064): do_action()
    #22 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head()
    #23 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/core/editor/loader/v2/editor-v2-loader.php(203): include(‘/home/u45524201…’)
    #24 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-content/plugins/elementor/core/editor/editor.php(169): Elementor\Core\Editor\Loader\V2\Editor_V2_Loader->print_root_template()
    #25 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->init()
    #26 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #27 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #28 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-admin/admin.php(419): do_action()
    #29 /home/u455242017/domains/catalog.teamsunday.com/public_html/wp-admin/post.php(12): require_once(‘/home/u45524201…’)
    #30 {main}
    thrown

    Attachments:
    You must be logged in to view attached files.
    #640555

    Artem Temos
    Keymaster

    Hello,

    Please select a product as a preview in Theme Settings as shown on the screenshot https://monosnap.com/file/SeniNLva4TaguEC3V2N3p1GIGJ4M13
    We will fix this bug in our next theme update.

    Kind Regards

    #640556

    aaron-5833
    Participant

    Hey Artem,

    Works perfectly fine, thanks for the quick reply!

    Kind regards,

    #640620

    Artem Temos
    Keymaster

    You are always welcome.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Critical error when editing product page layout’ is closed to new replies.