Skip Navigation

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

Problem:
You are trying to manage multiple languages on your WordPress site using WPML, with Ukrainian as the main language. After changing the language code from 'uk' to 'ua' and duplicating content, you encountered several issues: HTTP ERROR 500 on blog pages in English and Russian, locks next to the ACF metaboxes on some posts, and incorrect language displays in the admin panel.
Solution:
1. Ensure the new language is set as the original for your pages/posts. Edit each page, disconnect it from translation, reconnect, and set the correct default language. This might require re-translating some content. For detailed steps, visit WPML forum topic.
2. Disable all plugins except for WPML and Elementor to check if the issue persists.
3. Manually delete old language content and ensure everything is set correctly in the new default language. This includes checking and fixing default language templates and ensuring they are correctly assigned.
4. Be aware of a known bug where taxonomies are not deleted when removing content from the database. For more information, visit WPML errata on taxonomies.

If these steps do not resolve your issues or if the solution seems outdated or irrelevant to your specific case, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance at WPML 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.

Tagged: 

This topic contains 9 replies, has 0 voices.

Last updated by Dražen 5 months, 1 week ago.

Assisted by: Dražen.

Author Posts
January 26, 2025 at 6:05 pm #16635509

allaK-2

<b>Background of the issue: </b>
I am trying to correctly set up and manage multiple languages on my WordPress site using the WPML plugin. My main language was Ukrainian, and I wanted to change its code from 'uk' to 'ua'. I added a new language and duplicated all the content into the new Ukrainian language. After adding a new language to the site, several issues have arisen.

<b>Symptoms: </b>
1. Blog pages are not being displayed correctly for some languages (English and Russian - HTTP ERROR 500). 2. Some posts have a lock next to the ACF metabox because they are attached to the old language, while other posts of the same type do not have locks next to the ACF metaboxes. 3. In the admin panel, when editing translations, the wrong languages are being shown as the original content.

<b>Questions: </b>
Can you assist me in resolving these issues and help ensure the correct language setup and translation flow?

January 27, 2025 at 7:17 am #16635985

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Please make sure to create a backup, before doing any actions, just in case.

1) First make sure, the new language is now original for your pages/posts and that you have removed the old language and deleted its content.

To set the new language as the new original language of content, you need to edit the page, disconnect it from translation, and then connect it again and in the popup choose it the correct default language. You would need to do that manually and note you might need to re-translate some parts again.

- https://wpml.org/forums/topic/change-the-default-language-of-a-specific-product-page/#post-14954173

2) Check if the issue still happens when you disable all other plugins, and only WPML plugins and Elementor is active.

Let me know how it goes.

Regards,
Drazen

January 27, 2025 at 12:07 pm #16637563

allaK-2

But if I delete all content associated with my old language - can it delete my main Elementor templates, posts, CPTs that were associated with main language and just duplicated to the new one, is not?

January 27, 2025 at 12:16 pm #16637593

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am not sure I understand your question.

You would need to duplicate everything you use in your new language, make sure it works fine in your new language make any necessary edits, delete the old language content, adjust content manually to be default in the new language you created, and then re-translate if it needs any update.

That would be the proper way to do it, to have everything as default in your new default language. I am afraid it would require some manual work to clean up and setup everything.

Let me know if any other doubts.

Regards,
Drazen

January 27, 2025 at 7:18 pm #16639103

allaK-2

Look, I deleted the old language and then tried to delete all the content associated with that language, but this loading after clicking 'Yes, delete all... translations' is endless.

2025-01-27 21.14.55.jpg
January 28, 2025 at 7:23 am #16640008

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

it takes some time for this process to finish, you can check in another tab if numbers are going down. If not, please disable other plugins and leave only WPML plugins and needed plugins for CPT active and re-run it again.

Let me know how it goes.

Regards,
Drazen

January 28, 2025 at 3:30 pm #16642833

allaK-2

I deactivated all plugins except CPT UI and WPLL plugins and the list of content associated with my old language became smaller, some stuff was deleted, but the rest of the content (as you can see on the video) is not deleted.

Знімок екрана 2025-01-28 о 17.25.42.png
Знімок екрана 2025-01-28 о 17.25.38.png
Знімок екрана 2025-01-28 о 17.25.31.png
Знімок екрана 2025-01-28 о 17.25.27.png
Знімок екрана 2025-01-28 о 17.25.19.png
January 29, 2025 at 7:44 am #16644551

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

yes, that is expected, it is a known bug where taxonomies are not deleted. You will have to go over each part manually and delete them.

- https://wpml.org/errata/taxonomies-are-not-deleted-with-the-delete-content-from-database-option/

Regards,
Drazen

January 29, 2025 at 6:19 pm #16648247

allaK-2

my Elementor templates was ruined, I made backup so it's not a problem, but how I should smoothly delete this language?

Знімок екрана 2025-01-29 о 20.16.14.png
Знімок екрана 2025-01-29 о 20.12.41.png
January 30, 2025 at 7:20 am #16649585

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am afraid there is no easy way, you need to do the checks manually and fix the default language templates, create them if missing and etc.

Since deleting some of the content from the previously default language it can cause issue, so you would need to go over each part in the default language and make sure it works fine and is set correctly, it exist, you have not delete it and etc. I am afraid it will take some work and time, to fix and do that correctly.

It seems you deleted or something is missing in your default language, so you need to either create it again or find that template and correctly assign it to the default language.

Regards,
Drazen