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
October 24, 2023 at 5:46 pm #14650207

chloeF-6

This is so weird and getting weirder and weirder πŸ˜‚

About cache:
- I cleared the WPML cache & disabled the cache plugin. Some pages are now translated (like the About page) where they were not before. I had to manually restart the translation though.
- Some pages are still not translating (like the home page) but I suspect that's because of the emoji
- Some "pages" are still not fully translated despite being retranslated by hand such as my footer (it's an Elementor template called Main Footer (3 columns)). The menus in it are translated, but not the text/titles.
- Some pages are not translating at all despite retranslating them by hand (with the automatic setting) such as this one: hidden link
- The shop page has the right title, the right URL but is still showing "boutique" in the title: hidden link

About images:
- I did not change anything memory related πŸ˜…

About template: thank you!

October 24, 2023 at 6:11 pm #14650375

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

All the 3 issue you mention here are related to Elementor.

I tried to deactivate it on the copy and the shop page correctly displays "shop" hidden link
Perhaps are you using an image here?

As for the other 2 pages, if I open the Translation Editor when Elementor is active, it only shows some parts of the text.
If I disable it and update the pages, then I see in the Translation Editor ALL the content (which is not translated, so that explains why you don't see it).

However, WPML and Elementor should be compatible, so I'll need to further investigate. Do you use any kind of special template, or maybe something AI generated? I see the option in the Elementor editor.

October 24, 2023 at 8:44 pm #14650907

chloeF-6

I don't think I use anything special. I'm using only basic Elementor and Elementor Pro blocks. I don't have any other plugin.
The only time I used AI is to create some very basic CSS for some elements (to change the color or the size if I remember correctly).

October 25, 2023 at 10:12 am #14659529

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

I escalated the ticket and we're going to debug further. This is not a compatibility issue (we test Elementor with every release) so it's possible that solving this could solve the emoji issue as well.

October 25, 2023 at 12:19 pm #14660661

chloeF-6

Thank you!!!

October 27, 2023 at 7:29 am #14675559

chloeF-6

Hi,
Any news about this issue?

October 27, 2023 at 10:54 am #14677757

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Not yet, sorry

October 27, 2023 at 1:55 pm #14679949

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

We've found the issue is with database collation. Fixing it shoudl also solve the emoji issue.

Please try this
- do a backup of the database
- in the database panel, run these queries

ALTER TABLE wor1073_icl_strings CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE wor1073_icl_string_translations CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;

- then do some change to the pages (you can bulk update them) and send them again for translation

If you're not sure how to run queries I can do it but I'll need to access the database so please do a full backup first.

October 27, 2023 at 2:50 pm #14680629

chloeF-6

It worked!!! Thank you so so so much!

Here is what I checked:
- blogposts with emjois
- Homepage
- Footer
- Recipe
- Reusable blocks / WordPress Patterns
Did I miss something?

PS: what I understand from the queries is that the strings were not encoded properly. Is that right? Any idea why?

October 27, 2023 at 6:00 pm #14681651

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

That should be all, if something is missing please let me know.

From the 2nd tier they told me half of your tables had encoding utf8mb4_unicode_520_ci and the others utf8mb3_general_ci, not sure why, maybe it's due to server migration, plugins, it's hard to tell. Emojis are unicode characters so that's why it lead to conflict.

October 27, 2023 at 8:02 pm #14682115

chloeF-6

Thank you for the explanation! I think the only thing missing is the image captions (as in this post hidden link ) which are not translating but I think that's because I don't know how to send them to translation πŸ™ˆ

October 27, 2023 at 8:38 pm #14682167

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Try activating the option in the screenshot (it's in WPML > Settings > Media Translation) and send posts to translation again, it should do the trick.

2RwZZdaqjT.png
November 2, 2023 at 11:22 pm #14721575

chloeF-6

Hi! Sorry it took me a few days to work on this last issue. I figured that the article was still written in a classic block setting and that was what blocked the translated content to show up. I think everything is resolved now.
Again, thank you very very much for helping me with all of this. Have a lovely day πŸ™‚

November 3, 2023 at 9:00 am #14723477

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Thanks!

November 6, 2023 at 8:45 am #14735643

chloeF-6

Hi πŸ™‚ Me again XD
I asked to have this thread reopened because when I publisheda new blogpost yesterday, it did the same thing : some part of it was translated, some did not.
I figured it was the part with the emoji that were not translated to I run the SQL queries again and sent the post to translation again. It worked then.
Is there a way to have it fixed for all the new blogposts / pages I'll publish in the future? (because having to send the query every time is hardly sustainable as you can imagine!)