Support » Plugin: Pixel Caffeine » Fatal error in loop

  • Resolved bheadrick


    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



    $product = wc_get_product();
Viewing 1 replies (of 1 total)
  • Plugin Author Antonino Scarfì



    sorry for the issue and thank you for sharing your solution!

    I released right now a new version of the plugin that fixes also this issue.
    Please, upgrade the version to 2.1.1 in order to have the official fix to this issue 🙂

    Thank you!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.