Support » Plugin: Pixel Caffeine » Fatal Error

  • Resolved mmubashar

    (@mmubashar)


    Hi there,

    I’ve been a long user of Pixel Caffeine but this is the first time I’m having a problem like this. The plugin is throwing the following error on woocommerce product pages:

    Notice: Trying to get property of non-object in /home/XXXXXX/public_html/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php on line 118

    Fatal error: Call to a member function is_type() on boolean in /home/XXXXXX/public_html/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php on line 120

    This also causes the product image to not load, but the rest of the content on that page loads just fine.

    • This topic was modified 3 years, 10 months ago by mmubashar.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    very sorry about this issue. What version of woocommerce do you have? Maybe it’s a compatibility issue with some version of WooCommerce. If you don’t have the latest version, please try to upgrade it and most probably you will fix immediately.

    Otherwise, it could be some widget you have in the page could cause the issue. Do you have something other in the page in addition to the product info?

    Let me know, thanks and sorry again about the issue.

    Thread Starter mmubashar

    (@mmubashar)

    Hi there,

    I’m using the latest version of woocommerce: 3.1.2

    It only appears on the product page specifically. I don’t think I have any other widgets on the page that other pages don’t have it. You can check the page here: http://bit.ly/2xI7PRy

    The error is appearing at the bottom most of the site. Appreciate some help for troubleshooting 🙂

    Thread Starter mmubashar

    (@mmubashar)

    Hi antoscarface,

    You were right, it was a conflict with another widget (in the footer). Weird enough, this widget appeared on ALL pages, but only product single page was the one throwing the error. No worries, I’ve removed the widget from the footer altogether and replaced it with another one.

    Sorry for the trouble 🙂

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Great, I’m happy we have found the cause!
    The reason for the issue is because that widget changes the main query of the page, so the code of Pixel Caffeine cannot reach the right product object in the code and then show a fatal error.
    The query of that widget must be reviewed.

    Anyway, happy you have solved!
    Thank you and have a nice day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error’ is closed to new replies.