We are getting the following error on 8theme single product pages, causing the pages to be cut short:
PHP Fatal error: Uncaught Error: Call to a member function get_catalog_visibility() on boolean in /home/*****/public_html/wp-content/themes/xstore/framework/shortcodes.php:268
Stack trace:
#0 /home/*****/public_html/wp-content/themes/xstore/framework/shortcodes.php(295): et_visible_pruduct(NULL, ‘prev’)
#1 /home/*****/public_html/wp-content/themes/xstore/framework/shortcodes.php(320): et_visible_pruduct(9884, ‘prev’)
#2 /home/*****/public_html/wp-content/themes/xstore/woocommerce/content-single-product.php(67): etheme_project_links(Array)
#3 /home/*****/public_html/wp-includes/template.php(690): require(‘/home/*****…’)
#4 /home/*****/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(180): load_template(‘/home/*****…’, false)
#5 /home/*****/public_html/wp-content/themes/xstore/woocommerce/single-product.php(36): wc_get_template_part(‘content’, ‘single-product’)
#6 /home/*****/public_html/wp-includes/templ in /home/*****/public_html/wp-content/themes/xstore/framework/shortcodes.php on line 268
Please could you advise. Thanks