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.

Tagged: 

This topic contains 1 reply, has 2 voices.

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

Assisted by: Waqas Bin Hasan.

Author Posts
September 8, 2023 at 4:18 pm #14367835

raitH-2

Hi!
When I'm trying to add or update a woocommerce product I get a unexpected error. Site tells me that it is not working correctly and this is the error that is sent to me:
When seeking help with this issue, you may be asked for some of the following information:

WordPressi versioon 6.3.1
Active theme: Flatsome Child (version 3.0) Praegune plugin: WooCommerce Multilingual & Multicurrency (versioon 5.2.0) PHP versioon 8.2.3

Error details
===============
Failis /www/sniffy_ee/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php real 350 tekkis viga tüübiga E_ERROR. Veateade: Uncaught Error: Call to a member function get_stock_quantity() on bool in /www/sniffy_ee/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:350
Stack trace:
#0 /www/sniffy_ee/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(200): WCML_Synchronize_Product_Data->sync_product_stock()
#1 /www/sniffy_ee/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(176): WCML_Synchronize_Variations_Data->sync_product_variations()
#2 /www/sniffy_ee/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(140): WCML_Synchronize_Product_Data->sync_product_data()
#3 /www/sniffy_ee/wp-includes/class-wp-hook.php(312): WCML_Synchronize_Product_Data->synchronize_products()
#4 /www/sniffy_ee/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 /www/sniffy_ee/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /www/sniffy_ee/wp-includes/post.php(4751): do_action()
#7 /www/sniffy_ee/wp-includes/post.php(4853): wp_insert_post()
#8 /www/sniffy_ee/wp-admin/includes/post.php(445): wp_update_post()
#9 /www/sniffy_ee/wp-admin/post.php(227): edit_post()
#10 {main}
thrown

I tried the same thing on my development site that is fully copy of my production site and it is not happening there.

Thank you!

September 11, 2023 at 8:46 am #14373683

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hi,

Thank you for contacting the support.

Can you please try the following options in wp-admin -> WooCommerce -> WooCommerce Multilingual & Multicurrency -> Status -> Troubleshooting:

- "Sync product stock quantity and status"
- "Fix translated variations relationships"
- "Sync removed product meta from original products to translations"

IMPORTANT: Take full backup of your website and database beforehand.

Please let me know and I'll try my best to further help you on the matter.

Regards.