Skip Navigation

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.

This topic contains 16 replies, has 2 voices.

Last updated by Osama Mersal 11 months ago.

Assisted by: Osama Mersal.

Author Posts
July 7, 2024 at 10:02 am #15906916

aukev-4

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?

July 7, 2024 at 12:12 pm #15907222

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please make sure that WooCommerce Multilingual is activated. This is a requirement for WooCommerce to work correctly with WPML. Kindly check this guide. (https://wpml.org/documentation/related-projects/woocommerce-multilingual/)

Also, share screenshots or a screen-recorded video while reproducing the issue.

Best regards,
Osama

July 7, 2024 at 6:49 pm #15907977

aukev-4

Hi Osama,

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.

Kind regards,
Auke

Scherm­afbeelding 2024-07-05 om 22.33.30.png
July 8, 2024 at 7:11 am #15910409

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Auke,

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.

Best regards,
Osama

July 8, 2024 at 7:39 am #15910577

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. Would you please confirm that the checkout works correctly? (hidden link)

Best regards,
Osama

July 8, 2024 at 8:07 am #15910794

aukev-4

Hi Osama,

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?

Kind regards,
Auke

July 8, 2024 at 8:10 am #15910799

aukev-4

To add, the error I got appears after the shipping option is selected, so we don't know if it appears or not.

Cheers,
Auke

July 8, 2024 at 8:14 am #15910908

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Auke,

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?

Best regards,
Osama

July 8, 2024 at 8:31 am #15911000

aukev-4

Thanks Osama.
What port do you use for FTP?
Maybe give me your IP address, it probably is our firewall although I did open port 22

July 8, 2024 at 8:43 am #15911168

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

There is my IP: 41.239.6.178

Thanks,
Osama

July 8, 2024 at 8:47 am #15911199

aukev-4

I gave that IP address access on port 22

July 8, 2024 at 8:52 am #15911246

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for allowing my IP access, but I still can't access the FTP.

Would you please restore the test site? I'll take a copy to run the tests on my local server.

Best regards,
Osama

July 8, 2024 at 9:09 am #15911365

aukev-4

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.

July 8, 2024 at 9:14 am #15911476

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

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

Best regards,
Osama

July 10, 2024 at 9:52 am #15927298

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

You need to add the debug code before the following line.

/* That's all, stop editing! Happy publishing. */

For example, please check this file.

Best regards,
Osama