Background of the issue:
I use the 'Classified Listing' plugin on my website hidden link. Here, the customer can create their own offers, but to do so they must make a purchase. Everything works great until I turn on this plugin. However, I need it to display the order summary page. Below is the error code: |
Fatal error: Uncaught WC_Data_Exception: Nieprawidłowy ID produktu in /home/goldsilber/domains/gold-silber-boerse.de/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:943 Stack trace: #0 /home/goldsilber/domains/gold-silber-boerse.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php(90): WC_Data->error() #1 /home/goldsilber/domains/gold-silber-boerse.de/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php(195): WC_Order_Item_Product->set_product_id() #2 /home/goldsilber/domains/gold-silber-boerse.de/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php(152): WCML_Orders->adjust_product_item_if_translated() #3 /home/goldsilber/domains/gold-silber-boerse.de/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php(121): WCML_Orders->adjust_order_item_in_language() #4 /home/goldsilber/domains/gold-silber-boerse.de/public_html/wp-includes/class-wp-hook.php(326): WCML_Orders->wooc in /home/goldsilber/domains/gold-silber-boerse.de/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 943
Symptoms:
Error shows on thankyou page and Woocommerce orders panel in single Order.
Questions:
How can I resolve the fatal error on the thankyou page?
Is there a compatibility issue between WPML and the 'Classified Listing' plugin?
I checked a few things and looks like the error refers to a non-existing product (ref: https://wpml.org/forums/topic/uncaught-wc_data_exception/). So I deactivated a few plugins to see the full order details in WC -> Orders (i.e. order #855).
I'm wondering where the product or item "Veröffentlichung des Angebots" (see attached) is coming from, because I can't find it in the hidden link">products.
Thank you for the details. I am trying to understand how this works and how that product from custom post type is linked with WooCommerce. Because apparently, WC is complaining about the missing product in the order that's why there's this error.
I am working on this and 'll get back to you as soon as I find something or have a solution.
Our team analyzed the issue and since the product isn't a real WC product but a custom post type, which is being linked by Classified Listing plugin's internal logic. There seem to be some issue.
We're not sure if this is only happening in your staging site or can be reproduce in another environment. I've created this sandbox site hidden link (one-click login) to reproduce the issue for that matter.
I'll request to take some time to setup and reproduce in the said sandbox site.
I've installed all the necessary plugins and your theme. I've also configured the WPML accordingly. All you need to activate WooCommerce, WCML and Classified Listing plugins (base, pro and multilingual), configure as needed and reproduce the issue.
Please take notes of the steps about how you configured the plugins (specially CL plugins) and reproduced the error for our analysis.
Please let me know when you're done and I'll try my best to escalate it further.
The topic ‘[Closed] Fatal Error on thankyou page – WooCommerce Multilingual & Multicurrency’ is closed to new replies.