[Resolved] WPML causes error in Woocommerce checkout
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an error with the WPML String Translation plugin during the WooCommerce checkout process. The error persists even when the WPML Multilingual plugin is activated. Solution: We recommend ensuring that WooCommerce Multilingual is activated, as it is necessary for WooCommerce to function correctly with WPML. For guidance on activating and configuring this, please refer to our documentation: WooCommerce Multilingual setup guide. If the problem continues, it might be due to a missing file or incorrect setup. Checking the server for missing files or configuration issues that might be causing the error can resolve the issue. If these steps do not resolve the problem, or if the information provided here is outdated or does not directly address your specific situation, we 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 further assistance is needed, please open a new support ticket at 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.
Background of the issue:
I am trying to resolve an issue with the WPML String Translation plugin causing an error in the Woocommerce checkout process. I have the WPML Multilingual plugin installed but not activated. The issue persists even when the plugin is activated. The error message appears during the checkout process. Here is the link to the page where the issue can be seen: hidden link
Symptoms:
Error: 'There was an error processing your order. Please check for any charges in your payment method and review your order history before placing the order again.'
Questions:
Why does the WPML String Translation plugin cause an error in the Woocommerce checkout process?
How can I resolve the error message during the checkout process?
Thanks. As you can read in my message, WooCommerce Multilingual is activated. All worked fine for a while, I suspect updates caused this error.
As you can also read, the error can simply be replicated by you by clicking on the link I provided, ordering something and checking out. The error appears after you fill out the checkout page and continue. This is a test site with a sandbox payment gateway.
Below you find the screenshot of the error message.
I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
I don't get that message but the checkout does not work, I can't chose a shipping option. Also the whole layout is messed up, but I assume that can be corrected?
I deactivated the plugins and created new test cart and checkout pages to test the issue in an isolated environment.
When trying to activate the WooCommerce add-ons, I got a fatal error, so I tried using FTP to check which plugin caused that error, but the FTP access details gave me an error.
Would you please check them and test them at your end?
My site now has a critical error, I don't know how to recover it from Duplicator this way. Did you make any changes to files or only the database? I have an MySQL backup I can restore.
I just deactivated the plugins. Please try the following steps:
1- Using the FTP access
2- Enable WP debug by adding the following code to the wp-config file
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings, which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
3- Check the debug.log file in the wp-content folder
4- See which plugin causes the error
5- Go to the Plugins folder
6- Rename this plugin folder to plugin-name.old
7- Check the dashboard