Fatal error: Uncaught Error: Call to a member function is_on_sale() on null in /home/www/afc/wp-content/themes/afc/woocommerce/single-product/sale-flash.php:14 Stack trace: #0 /home/www/afc/wp-content/plugins/woocommerce/includes/wc-core-functions.php(344): include() #1 /home/www/afc/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1603): wc_get_template('single-product/...') #2 /home/www/afc/wp-content/plugins/dhvc-woocommerce-page/includes/shortcode.php(167): woocommerce_show_product_sale_flash() #3 /home/www/afc/wp-includes/shortcodes.php(343): DHVC_Woo_Page_Shortcode->dhvc_woo_product_page_images_shortcode('', '', 'dhvc_woo_produc...') #4 [internal function]: do_shortcode_tag(Array) #5 /home/www/afc/wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(dhvc_w...', 'do_shortcode_ta...', '[dhvc_woo_produ...') #6 /home/www/afc/wp-content/plugins/js_composer/include/helpers/helpers.php(231): do_shortcode('[dhvc_woo_produ...') #7 /home/www/afc/wp-content/plugins/js_composer/include/templates/s in /home/www/afc/wp-content/themes/afc/woocommerce/single-product/sale-flash.php on line 14