Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 -
- - - - - - -

Supporter timezone: Pacific/Easter (GMT-05:00)

Tagged: 

This topic contains 57 replies, has 4 voices.

Last updated by Ilyes 3 weeks, 5 days ago.

Assisted by: Ilyes.

Author Posts
September 14, 2024 at 7:21 am #16178347

nicolasF-24

Okay I just saw that you already disabled everything 😉 I wanted to test, but I have an error even with everything disabled, please see attachment

Thanks

Capture d’écran 2024-09-14 à 09.20.49.png
September 16, 2024 at 8:18 pm #16185528

nicolasF-24

Hi
Any news ?

September 17, 2024 at 6:07 pm #16190155

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

I checked it and our 2nd tier team has detected one error within the site DB that might be causing the issue.

While we were in the process of installing the fake translation engine to proceed with the tests without spending credits we came across the following error:

WordPress database error Illegal mix of collations

It seems that some of your database tables have different collations, which may cause issues while executing certain SQL queries. It is recommended that all the database tables have the same collation.

You need to ensure that all the database tables are changed to a unicode-aware collation like "utf8mb4_unicode_ci" or "utf8mb4_unicode_520_ci".

For WPML tables, you can try running the option "Fix WPML table collation" under WPML → Support → Troubleshooting:

https://wpml.org/documentation/support/wpml-troubleshooting-options/

But for the WordPress and other plugins tables, if you need further assistance, you can ask your hosting provider help to change the DB and tables collation so they're uniform.

https://stackoverflow.com/questions/5906585/how-to-change-the-character-set-and-collation-throughout-a-database

It's important to backup your database before making any changes.

Thank you, please let us know.

September 18, 2024 at 7:00 am #16191178

nicolasF-24

Hi
Thanks for the feedback
It's okay I corrected the collation for all tables
But I still can't translate anything (please find the screenshot)

Capture d’écran 2024-09-18 à 08.59.16.png
September 18, 2024 at 8:35 pm #16195354

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for your efforts, and I apologize for the ongoing back and forth.

It seems there are still issues with the development site, and we're noticing differences between it and the live site. For instance, attempting to access the language edit page to perform the necessary mapping for automatic translation results in a fatal error.

Could you copy the live site onto the development environment, overriding it? If there are any changes on the development site that haven’t been pushed live, would it be possible to create a new staging site using the live site as a model?

This will help us move forward with debugging.

Thank you, and please let us know.

September 19, 2024 at 8:35 am #16197123

nicolasF-24

Hi

It's a fresh copy of 10 15 days ...

The problem is coming on your side, it's a know problem if you type the error on your forum :

Please find the answer of the support agent

Hi,

Thank you for providing the access and confirmations. I was able to see and fix the problem.

Actually, the problem was coming due to "Site is Moved or Copied" message on top of the page. Since it is a staging site, I selected "This is a copy of my original site" and saved.

After that page reloaded itself and most of the languages had their mappings, except the custom ones. So I simply saved and it went fine, means no fatal error.

See following guides for details:

So I think that your dev missed a step with this message and it's the cause of the problem 😉

September 19, 2024 at 8:36 am #16197182

nicolasF-24

Link of the ticket : https://wpml.org/forums/topic/fatal-error-when-editing-languages/#post-13097139

September 19, 2024 at 7:41 pm #16200679

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Nicolas,

Even the option to unregister and register WPML is unresponsive on the dev site. I tried using Duplicator to make a copy of the site, and while I was able to complete the process on the live site, I can never reach the final step on the dev site. Additionally, there are several pages inside the wp-admin (both WPML and non-WPML related) that throw console errors.

There also seems to be an issue with AJAX. For example, when accessing hidden link, I get the error: "Il y a eu une erreur critique sur ce site. En apprendre plus sur le débogage de WordPress."

In a healthy WordPress site, this usually returns a "0," as it currently does on the live site at hidden link, where you can see just a "0" on the screen.

This, along with the other issues our 2nd tier support reported earlier (such as the collation issue), are not happening on the live site. Therefore, making a fresh copy of the live site onto the dev environment might fix all these issues in one step.

Let me know how you'd like to proceed.

Best regards,

September 19, 2024 at 7:44 pm #16200684

nicolasF-24

Hi Mateus,

Sorry I was working on it, that's why

I finished, you can test again you will no face any fatal errors

September 19, 2024 at 7:51 pm #16200689

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

It is true.

Indeed, now I'm not able to reproduce those errors any longer, I was able to save my changes in the language screen and the language mapping is working as expected.

Thank you for taking care of it.

I'll follow up with the 2nd tier team and get back to you as soon as possible.

September 20, 2024 at 7:38 pm #16204052

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Nicolas,

We attempted to translate a high amount of content in the development site.

We successfully sent it for translation without being able to reproduce the issue once.

Can you please confirm that the issue is fixed on the development site and apply the same fixe to the live site, especially with the DB/tables collation?

Thank you, please let us know.
Mateus

September 23, 2024 at 3:11 pm #16210501

nicolasF-24

Okay i'm checking tomorrow !

I can use the false engine to test with some plugins activated ? In the way to find the one that causes the problem ?

September 23, 2024 at 7:30 pm #16211632

nicolasF-24

Hi,
Unfortunately i still can't test it ... please find the error in screenshot

Capture d’écran 2024-09-23 à 21.28.59.png
Capture d’écran 2024-09-23 à 21.28.27.png
September 24, 2024 at 7:32 pm #16217354

Ilyes
Supporter

Languages: English (English ) French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello,

My colleague Mateus is currently unavailable, I will take care of your case in the meantime,

Could you please confirm if the last screenshots you sent are from the Dev site and not the live site?

Please retry the test again and use Loom or any other video recording app to record the steps you followed, because we are currently getting different results.

Best,

September 25, 2024 at 4:48 am #16217989

nicolasF-24

Hi,
Yes it's on the dev
You just have to try to translate products, and you will face the problem 😉

The topic ‘[Closed] Language of back office change randomly after sending multiple items for automatic translation’ is closed to new replies.