[Resolved] I change the hosting and some text translation are broken now
This thread is resolved. Here is a description of the problem and solution.
Problem: After changing hosting, text translations are broken, particularly in the Hungarian menu and WooCommerce orders in the admin area. This issue is due to character-encoding corruption likely caused by incorrect database charset settings during the migration. Solution: 1. Back up your site and database. 2. Ensure your wp-config.php file includes the following settings:
If this solution does not apply to your case, or if it seems outdated, 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 issues persist, please open a new support ticket at our 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.
Background of the issue:
I changed the hosting for my site hidden link and now some text translations are broken. I tried unregistering and registering WPML again, but the issue still exists.
Symptoms:
Text translations are broken after changing hosting. Specifically, the menu in Hungarian and WooCommerce orders in the admin area are affected.
Questions:
how can I fix the translations and order information (order information in admin)
There is a problem with URL translation as well - cart and checkout pages... that causes a lot of trouble, with menus... in some languages (CZ, SK and others) I can't go to checkout page...
What you’re seeing is classic character-encoding corruption after the hosting change. During the migration, the database export/import (or the MySQL connection) was likely set to latin1, while your data is UTF-8. That doesn’t affect English, but it breaks languages with accented characters. This isn’t a WPML bug—the data is being read with the wrong charset. You would see the same issue even with WPML disabled and WordPress set to one of those languages.
3. Convert the database/tables to UTF-8: ensure the database and all tables (including WPML’s icl_* tables) use charset: utf8mb4 and collation: utf8mb4_unicode_520_ci (or utf8mb4_unicode_ci if 520 isn’t available).
Your host can help change this in phpMyAdmin or via SQL/CLI.
5. After fixing the database:
• WPML → Support → Troubleshooting: clear WPML caches and run the safe repair tools.
• Appearance → Menus: open and save each menu once.
• WooCommerce → Status → Tools: Clear transients and Regenerate product lookups.
I’ve opened a new ticket to address your other redirect issue. This helps ensure each problem receives the attention it deserves and makes it easier for other users with similar issues to find solutions when searching the forum.