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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.