Problem: I need to show the same template in both languages, greek and english but only one works. The other shows the default layout of the theme.
Solution: There is a workaround for this issue provided by our specialists. Please follow these steps to apply the workaround:
- Create a full backup of the site.
- Modify elementor-pro/modules/theme-builder/classes/conditions-cache.php Lines 96 - 101:
- Re-save the Display Conditions for each template.
Could you tell me if the workaround solves the issue?
Important note - This workaround has two effects:
1.- The conditions start working for all languages
2.- When you search for posts or pages etc in the Display Conditions dialog, ALL language posts are returned. This is more of a cosmetic issue but just so you know.
Problem:
WordPress found a fatal database error on the Website that looks this way:
COLLATION ‘utf8_general_ci’ is not valid for CHARACTER SET ‘utf8mb4’
Solution:
The reason for this issue is that various database tables use a different collations.
To solve the issue a matching and similar collation for all DB tables.
You can run the following MySQL query to solve such an issue, but it will need to be adjusted with the matching table prefix and also in case a different collation is used than mentioned inside the query:
ALTER TABLE wp_posts CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
Problem:
On the translated pages in English, the links are pointing to the original Dutch pages instead of the translated English pages.
Solution:
You need to translate the page and finish the translation job.
- Go to WPML->Translation Management-> Send the page for translation and then take the translation job.
- Translate 100% and save.
Problem:
My problem now is that I want to add en-GB as a language. When I try to add English with a code of 'uk' I get an error that 'The Language code already exists.'. I assume this is because the database is pre-populated with Ukraine as a language. This is not unreasonable, but people in the UK often refer to the country as UK not GB, and even if I could change my folder for UK English to be GB it is pre-existing as UK, so this would cost me in SEO which I cannot accept.
Solution:
Deleting a language from WPML is not a good idea.
Instead, you can go to WPML → Languages → Site Languages, press the Add / Remove languages, add the Ukraininan language, then press the Edit Languages link. This way you'll be able to "transform" Ukrainian into UK English.