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.