-
I get this error message on the site
Fatal error: Uncaught Error: Call to a member function is_on_sale() on null in /nas/content/staging/blah/wp-content/plugins/woocommerce/templates/single-product/sale-flash.php:26 Stack trace: #0 /nas/content/staging/blah/wp-content/plugins/woocommerce/includes/wc-core-functions.php(205): include() #1 /nas/content/staging/blah/wp-content/plugins/woocommerce/includes/wc-template-functions.php(974): wc_get_template(‘single-product/…’) #2 /nas/content/staging/blah/wp-content/plugins/dt_woocommerce_page_builder/includes/vc-shortcodes/vc-shortcodes.php(94): woocommerce_show_product_sale_flash() #3 [internal function]: DTWPB_Shorcodes->dtwpb_single_product_image_sc(”, ”, ‘dtwpb_single_pr…’) #4 /nas/content/staging/blah/wp-includes/shortcodes.php(345): call_user_func(Array, ”, ”, ‘dtwpb_single_pr…’) #5 [internal function]: do_shortcode_tag(Array) #6 /nas/content/staging/blah/wp-includes/shortcodes.php(223): preg_replace_callback(‘/\\[(\\[?)(vc_sum…’, ‘do_shortcode_ta…’, ‘
[vc_ro in /nas/content/staging/blah/wp-content/plugins/woocommerce/templates/single-product/sale-flash.php on line 26
This is using out of the box woocommerce with twenty seventeen theme and a couple core plugins. It appears something in Yoast SEO is causing this issue to occur. When I deactivate Yoast SEO the issue goes away. Have you tried using this plugin with Yoast SEO? Let me know and I can give you login credentials to see the issues. You might have to work with them to find a solution to this one. Thanks!!
Uncaught Error: Call to a member function is_on_sale()
This topic is: resolved