• Resolved sondrakinsey

    (@sondrakinsey)


    I have been using WooCommerce and WP Facebook Pixel plugins together for at least six months without difficulties. However, on 06 April 2017 after upgrading WooCommerce to 3.0.0, I got the error following message on all pages on my site:

    Fatal error: Uncaught exception ‘Exception’ with message ‘Invalid product.’ in /home/content/p3pnexwpnas06_data02/89/2984289/html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:133 Stack trace: #0 /home/content/p3pnexwpnas06_data02/89/2984289/html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(143): WC_Product_Data_Store_CPT->read(Object(WC_Product)) #1 /home/content/p3pnexwpnas06_data02/89/2984289/html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(126): WC_Data_Store->read(Object(WC_Product)) #2 /home/content/p3pnexwpnas06_data02/89/2984289/html/wp-content/plugins/wp-facebook-pixel/assets/NSAFaceBookPixel.php(191): WC_Product->__construct(2) #3 [internal function]: NSAFaceBookPixel->get_WooCommerce_Events(Array) #4 /home/content/p3pnexwpnas06_data02/89/2984289/html/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array) #5 /home/content/p3pnexwpnas06_data02/89/2984289/html/wp-includes/plugin.php(203): WP_Hook->apply_filte in /home/content/p3pnexwpnas06_data02/89/2984289/html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 133

    The problem is resolved by deactivating either WooCommerce or WP Facebook Pixel 4.3.

    I welcome solutions which would enable me to re-enable WP Facebook Pixel, or recommendations on another WooCommerce-compatible plugin with the same functionality.

    Plugin: WP Facebook Pixel
    Plugin: WooCommerce

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    It looks like it’s trying to get a product which is not a real product, which is why you get an exception. Notified the author?

    Digging in!

    Uploaded version 4.4 which corrects this issue along with a few other minor bugs.

    Thank you for reaching out to us and giving us the opportunity to solve the problem for you!

    If you feel that our plugin is useful, we ask that you take a moment to give us a 5 star review here: https://wordpress.org/support/view/plugin-reviews/wp-facebook-pixel#postform. If you do not feel we deserve 5 stars yet, please let us know what we can do to earn all 5 stars before submitting a review.

    Regards,
    Jacob

    Hi, I am having a similar problem but I don’t use that pixel plugin. My question is how did you figure out your problem was with your pixel plugin?

    Thread Starter sondrakinsey

    (@sondrakinsey)

    I noticed “NSAFaceBookPixel” in the callstack/error message, so that was my original tip. I then deactivated the WP Facebook Pixel plugin, which resolved the issue. Then, to ensure it was a compatibility issue and not a bug in WP Facebook Pixel, I reactivated WP Facebook Pixel and deactivated WooCommerce, which also resolved the issue. Then, I knew it was a compatibility issue between the two plugins rather than a bug in either one alone.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce / WP Facebook Pixel Incompatible Fatal Error’ is closed to new replies.