This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is attempting to create a new language with the code "EU" in WPML but receives an error message stating "The Language code already exists". This issue persists even after deleting an old language with a similar code and clearing the cache.
Solution:
We have identified that the code "EU" is already in use for the Basque language in the WPML database. To prevent this issue, we recommend checking the
wp_icl_languages
table in the database to view all 70 preset languages and their codes, ensuring that the new language code does not duplicate any existing ones.
If you're experiencing this issue, we recommend you:
1. Access your website's database.
2. Locate the
wp_icl_languages
table.
3. Review the list of preset languages and their codes to avoid duplicates.
Please note that the solution might be irrelevant if it's outdated or not applicable to your case. If the problem persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.
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.
This topic contains 3 replies, has 2 voices.
Last updated by 1 year, 2 months ago.
Assisted by: Ilyes.