Hello,
Thanks for your response.
1) See earlier in this thread. We do not use any 3rd party cacheing plugins on the site. The only cacheing is provided by WP Engine, our hosting vendor. If you might suggest a needed cacheing exclusion around this error, I can have them put it in place for us. I am sorry I cannot provide instructions for duplicating this error, but I do know it is happening regularly when the popup notification is turned on. From yesterday’s fatal error logs on the production site:
2022-06-07T19:15:30+00:00 CRITICAL Uncaught Error: Call to a member function is_visible() on null in /nas/content/live/borregooutfitt/wp-content/themes/xstore/woocommerce/product-added-to-cart.php:26
Stack trace:
#0 /nas/content/live/borregooutfitt/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
#1 /nas/content/live/borregooutfitt/wp-content/themes/xstore/framework/woo.php(1888): wc_get_template(‘product-added-t…’, Array)
#2 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(307): etheme_added_to_cart_popup(”)
#3 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#4 /nas/content/live/borregooutfitt/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#5 /nas/content/live/borregooutfitt/wp-admin/admin-ajax.php(202): do_action(‘wp_ajax_nopriv_…’)
#6 {main}
thrown in /nas/content/live/borregooutfitt/wp-content/themes/xstore/woocommerce/product-added-to-cart.php on line 26
2022-06-07T19:19:25+00:00 CRITICAL Uncaught Error: Call to a member function is_visible() on null in /nas/content/live/borregooutfitt/wp-content/themes/xstore/woocommerce/product-added-to-cart.php:26
Stack trace:
#0 /nas/content/live/borregooutfitt/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
#1 /nas/content/live/borregooutfitt/wp-content/themes/xstore/framework/woo.php(1888): wc_get_template(‘product-added-t…’, Array)
#2 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(307): etheme_added_to_cart_popup(”)
#3 /nas/content/live/borregooutfitt/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#4 /nas/content/live/borregooutfitt/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#5 /nas/content/live/borregooutfitt/wp-admin/admin-ajax.php(202): do_action(‘wp_ajax_nopriv_…’)
#6 {main}
thrown in /nas/content/live/borregooutfitt/wp-content/themes/xstore/woocommerce/product-added-to-cart.php on line 26
2) Thanks for the instruction about the mini-cart setting for add to cart notification. We may have to change to this if we can’t get the popup issue resolved.
Regards,
Ben