WooCommerce / WP Facebook Pixel Incompatible Fatal Error
-
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
- The topic ‘WooCommerce / WP Facebook Pixel Incompatible Fatal Error’ is closed to new replies.