Home Forums WoodMart support forum Product loop item causes fatal error in product labels block

Product loop item causes fatal error in product labels block

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #713035

    Injaileh
    Participant

    Hi WoodMart team,

    I am facing a critical error on my website when using Product loop item.

    The issue happens here:
    Product loop item

    The website shows a critical error message, and from the debug email I received, the error points to the WoodMart theme file:

    /wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php

    Error details:
    An error of type E_ERROR was caused in line 2024 of the file:

    public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php

    Error message:
    Uncaught Error: Call to a member function get_attributes() on null

    Stack trace:

    #0 /public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php(2024): woodmart_get_product_attributes_label(‘ product-label …’)
    #1 /public_html/wp-content/themes/woodmart/inc/integrations/gutenberg/src/layouts/li-product-labels/render.php(46): wd_gutenberg_loop_builder_product_labels(Array, ”, Object(WP_Block))
    #2 /opt/h5g/flavors/wp-6.9.4/wp-includes/class-wp-block.php(599): WP_Block->render()
    #3 /opt/h5g/flavors/wp-6.9.4/wp-includes/class-wp-block.php(579): WP_Block->render()
    #4 /opt/h5g/flavors/wp-6.9.4/wp-includes/blocks.php(2383): render_block(Array)
    #5 /opt/h5g/flavors/wp-6.9.4/wp-includes/blocks.php(2466): do_blocks(…)

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

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

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