Fatal error in loop
-
PHP Fatal error: Uncaught TypeError: Argument 1 passed to AEPC_Woocommerce_Addon_Support::get_product_id() must be an instance of WC_Product, bool given called in /app/public/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php on line 430
I’m using “show single variations” by Iconicwp, so this only occurs in loops where the loop item isn’t a product (but a variation)
I was able to solve this by simply adding
if(!$product){ return; }after
$product = wc_get_product();
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fatal error in loop’ is closed to new replies.