Skip Navigation

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

Problem:
The client is experiencing issues with translations not appearing correctly on their website. Some pages are partially translated, while others are not translating at all, even after manual retranslation. The client suspects emojis might be causing issues on some pages, and there are also problems with the translation of the footer template and the shop page title.

Solution:
We have identified that the problem is related to the database collation settings. To resolve this issue, we recommend the following steps:
1. Perform a backup of your database to ensure you can restore your site if necessary.
2. Run the following SQL queries in your database panel:

ALTER TABLE wp_icl_strings CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;

ALTER TABLE wp_icl_string_translations CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;

3. After running these queries, make some changes to the pages (you can bulk update them) and send them again for translation.
If you're not comfortable running these queries, we can assist you, but please ensure you have a full backup of your database before proceeding.

If this solution does not seem relevant to your issue, please open a new support ticket with us.

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 20 replies, has 2 voices.

Last updated by Laura 1 year ago.

Assisted by: Laura.

Author Posts
November 6, 2023 at 10:13 am #14736333

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

I'm asking the devs

November 16, 2023 at 4:18 pm #14828831

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Sorry for the delay.

The query alters the tables permanently, so if you're still having the issue re-running the query should still fix it once and for all.

If it keeps happening, it means you're doing some kind of database alteration (restoring a backup, optimize tables etc). Is this the case?

November 22, 2023 at 8:08 am #14893477

chloeF-6

Hi,
I did restore a backup at some point but that was AFTER I noticed the weird translation pattern with emojis so I don't think it's linked (restored on Friday).

As you can see in this article only the text without emojis seems to be translated (and available for translation): hidden link

I'll try to re-run the query and see if it fixes it for the upcoming articles 🙂 I'll keep you posted.

November 22, 2023 at 11:23 am #14896827

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Yes, please do. If it still doesn't work then it might be some plugin or server option that changes the tables' collation.

November 25, 2023 at 3:42 pm #14922815

chloeF-6

Hi!
So, I published a new blogpost yesterday and when I tried to translate it today, it did it again as you can see here: hidden link
It stopped translating at the end, where the paragraph have a smiley.
How can I check if it's a server thing?

November 27, 2023 at 9:20 am #14928209

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

You need to ask the hosting, it's not something you can check.

Ask if there is something that changes the collate, if there's not, then it's another plugin. But at this point there isn't much we can do as WPML support. The correct collate to use is utf8mb4_unicode_520_ci, if your hosting doesn't support it we can't do anything about it.