Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing a fatal error when changing product variations in WooCommerce Multilingual, similar to an issue previously reported in a support thread.

Solution:
We recommended the client to:
1) Ensure that they have a full site backup.
2) Upgrade their WordPress to version 6.4.3.
3) Upgrade WooCommerce and WooCommerce Multilingual to the latest versions(8.6.1 and 5.3.5).
4) Increase the

MaxInputVars

PHP setting to

10000

For more details on how to do this, we provided a link to an article: Setting the max input vars directive in an .htaccess file.

If the issue persists, we advised the client to ask their customer to perform another test and, if necessary, to create a staging site to check if the bug exists in a minimal setup. We also moved the chat to a support ticket for further assistance.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you're still experiencing issues, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you need further assistance, please contact us through the WPML support forum.

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 Bigul 10 months ago.

Assisted by: Bigul.

Author Posts
February 21, 2024 at 3:26 pm #15329062

jaapd-2

Hi,

I'm still having the same issue as in the thread: https://wpml.org/forums/topic/fatal-error-when-changing-product-variation/

I receive this fatal error:

Een fout van het type E_ERROR werd veroorzaakt op regelnummer 350 van het bestand /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php. Foutmelding: Uncaught Error: Call to a member function get_stock_quantity() on bool in /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php:350
Stack trace:
#0 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-variations-data.php(200): WCML_Synchronize_Product_Data->sync_product_stock()
#1 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(176): WCML_Synchronize_Variations_Data->sync_product_variations()
#2 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php(140): WCML_Synchronize_Product_Data->sync_product_data()
#3 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-includes/class-wp-hook.php(326): WCML_Synchronize_Product_Data->synchronize_products()
#4 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-includes/post.php(4760): do_action()
#7 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-includes/post.php(4862): wp_insert_post()
#8 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-admin/includes/post.php(453): wp_update_post()
#9 /home/381534.cloudwaysapps.com/gsggkexeze/public_html/wp-admin/post.php(227): edit_post()
#10 {main}
thrown

February 21, 2024 at 5:03 pm #15329570

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Please check whether the issue exists now after upgrading to the latest version of plugins or not.

--
Thanks!

Bigul