Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by Subash Chandra Poudel 1 year, 10 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
September 7, 2023 at 5:56 pm #14362129

simonW-37

I am trying to translate the languages independently, but it seems like there are still some sort of connection even through we have made sure that the "translate independently" button was clicked, and some times it works fine.
But sometimes when we update the English version, either the German or French version is getting completely or partly overwritten.

Here is a page where it has happed on:
hidden link
The first text on the page is German, but the rest is English. And I can fix it bye editing the page, and pasting the German text again, but it happens sporadically through the site, so we never know when the problem will reappear.

Do you have a fix for this?
Looking forward to be hearing from you.

September 8, 2023 at 7:27 am #14363961

Dražen
Supporter

Languages: English (English )

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

Hello!

It could be there is an issue in DB, so it still stays as a duplicate.

Sometimes, a post can be displayed as a duplicate, even if we set it as “translate independently”. It happens because something is wrong in the database when a third-party post has the “_icl_lang_duplicate_of” key with the wrong ID.

Please make a backup before proceeding and try next:

To fix this, we just need to edit the database and remove the entry for your POST (POST ID) in the wp_postmeta table with the key “_icl_lang_duplicate_of”.

Source: https://wpml.org/forums/topic/to-force-all-products-to-be-edit-independent-to-avoid-replace-content/#post-1231072

Regards,
Drazen

September 11, 2023 at 11:33 am #14375783

simonW-37

Hi Drazen

I have now removed the "_icl_lang_duplicate_of" on a staging inviorment: hidden link

Should it do something with the translations, should it be german again? or do I still need to translate it again? and now I just know that it won't happen in the future?

September 11, 2023 at 1:05 pm #14376543

Subash Chandra Poudel

Hi there,

The removal of the "_icl_lang_duplicate_of" post meta should not cause translation issues if the post was translated independently but was showing as a duplicate.

However, to prevent any issues I recommend you check the page manually and verify it is working well and is attached to the main post properly. Also, try the following fix/clear options at WPML -> Support -> Troubleshooting ( link ) after a complete backup of the site:

- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML tables collation
- Assign translation status to duplicated content
- Set language information
- Fix post type assignment for translations

Regarding the prevention of the issue, the best way to prevent such issues is to make sure your site is using the latest version of plugins, theme, and WP including the WPML version, and to make sure your server resources are good enough to support the site.

However, sometimes there could be some bugs/issues causing such issues in that case we will need to test the issue further and find the exact steps to replicate the issue to find a solution. I suggest you to keep an eye on the site and take a note of the actions, updates or changes on the site that could have caused the issue and contact us again for further troubleshooting.

Regards,
Subash

September 14, 2023 at 6:36 am #14393507

simonW-37

Hi Subash

I have done all of the things you wrote.

But what about the pages that had the issue before, they still have it, see these two pages:

hidden link
hidden link

It's German pages, but they have English text in them, and it's still there. So I guess I still need to go in and replace the text on the pages that was affected by this?

September 14, 2023 at 7:51 am #14394305

Subash Chandra Poudel

Thank you for the updates,

To troubleshoot the issue, I would need to take a closer look at your site. So would you please mind sharing temporary access (WP-Admin and FTP) to your site? Preferably to a test site where the problem has been replicated.

I have enabled a private reply for you to share the credentials securely, which means only you and I have access to it.

IMPORTANT: Please take a complete backup of the site first to avoid data loss.

✙ I would additionally need your permission to make a copy of the site with plugins like Duplicator and deploy it on my local machine to test the issue further.

Regards,
Subash

The topic ‘[Closed] English keeps overwriting the other language when updating with new text’ is closed to new replies.