Uncaught WC_Data_Exception
-
We are seeing these errors in our site’s logs, and since it includes the woo-product-feed-pro in the traceback I am not sure if it is related or not, or if this plugin is just an “innocent victim” being brought along for the ride.
The product ID mentioned here is a simple product, but it looks like the code is trying to use it as a variation.
PHP Fatal error: Uncaught WC_Data_Exception: Invalid product type: passed ID does not correspond to a product variation. in /home/sitedir/public_html/wp-content/plugins/woocommerce/includes/data-stores
/class-wc-product-variation-data-store-cpt.php:58
Stack trace:
#0 /home/sitedir/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Variation_Data_Store_CPT->read(Object(WC_Product_Variation))
#1 /home/sitedir/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(135): WC_Data_Store->read(Object(WC_Product_Variation))
#2 /home/sitedir/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-simple.php(24): WC_Product->__construct(533154)
#3 /home/sitedir/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php(54): WC_Product_Simple->__construct(533154)
#4 /home/sitedir/public_html/wp-content/plugins/woo-product-feed-pro/woocommerce-sea.php(1595): WC_Product_Variation->__construct(533154)
#5 /home/sitedir/public_ in /home/sitedir/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php on line 58
- The topic ‘Uncaught WC_Data_Exception’ is closed to new replies.