Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 6 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
August 23, 2024 at 10:33 am

przemyslawB-2

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?

August 23, 2024 at 12:51 pm #16098595

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. I am working on this and 'll get back to you on Monday.

August 26, 2024 at 6:35 am #16102565

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

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.

Please check and let me know.

Screenshot 2024-08-26 113007.jpg
August 26, 2024 at 8:09 am #16102989

przemyslawB-2

This "product" is created here: /wp-admin/edit.php?post_type=rtcl_pricing

It is moderated by the plugin Classified Listing.

August 26, 2024 at 12:54 pm #16104588

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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.

August 27, 2024 at 6:29 am #16107496

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. I've escalated the issue to our 2nd tier team for some advice. I'll update you accordingly.

August 28, 2024 at 6:39 am #16112598

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

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.