Skip to content Skip to sidebar

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
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

Tagged: 

This topic contains 13 replies, has 0 voices.

Last updated by Bigul 3 days, 18 hours ago.

Assisted by: Bigul.

Author Posts
August 3, 2025 at 6:12 am #17290597

Autre

Ok, thanks, I have disabled it. Unfortunately, I am facing a big issue. Every time I try to create a translation, it will randomly overwrite the content of other posts with the default language :
1/ I translate post X from French to English
2/ It will overwrite the English content of post Y with French content
=> I had this issue 3 times this week... There should be a mismatch in the IDs. I don't understand what's going on, but it is problematic because I am losing content every time...

This seems similar to that :
https://wpml.org/errata/editing-translated-posts-directly-can-result-in-lost-content/

How can such an issue happen? I am running 4.7.6, so it should have been fixed. Maybe it is different. I can't understand how you can modify the site content automatically like this without worrying about what you are doing.

August 3, 2025 at 6:52 am #17290609

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to assist you in resolving the issue.

To help you faster, I have enabled the option to share debug information in this ticket. Please follow the steps in this link to provide it:
http://wpml.org/faq/provide-debug-information-faster-support/

The issue mentioned in the following errata is more related to ACF. So, just to confirm, are you using Advanced Custom Fields (ACF)?

https://wpml.org/errata/editing-translated-posts-directly-can-result-in-lost-content/

As a workaround, please add the following line to your wp-config.php file after taking a full site backup:

	
define( 'WPML_TRANSLATION_AUTO_UPDATE_ENABLED', false );

Then, go to Settings >> Permalinks, click Save Changes (no need to modify anything), and clear all types of caches. After that, please check if the issue still exists.

--
Thanks!

Bigul

August 3, 2025 at 6:56 am #17290611

Autre

Sorry but I don't use ACF plugin...

Will this :
define( 'WPML_TRANSLATION_AUTO_UPDATE_ENABLED', false );
fix the issue once for good ?

August 4, 2025 at 2:38 am #17291619

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. We have previously suggested the following constant as a workaround for a similar issue:

define( 'WPML_TRANSLATION_AUTO_UPDATE_ENABLED', false );

Therefore, please try it by adding to your wp-config.php file after taking a full site backup, and let us know if it helps.

Also, could you please check if the issue is reproducible with a new post or page?

If the problem persists, please share a screencast so we can have a better understanding of the bug. This will greatly help us in troubleshooting and our internal discussions.

--
Thanks!

Bigul

August 4, 2025 at 5:58 am #17291753

Autre

Why do I need to take a full backup if this feature doesn't have any side effect ?

Are you 100% confident that this will fix the issue once for good ?

August 4, 2025 at 1:24 pm #17293232

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. This is a workaround we have recommended in the past for a few clients who had similar issues while translating posts created using Page Builder. So, we would like to make sure it is giving you the expected results on your site as well.

Please note that each site is different due to the combination of plugins and theme being used. That is why it is always safe to take a full backup before updating WordPress, plugins, theme, or making any code changes.

--
Thanks!

Bigul

August 7, 2025 at 9:11 am #17301820

Autre

I need a fix for this issue. A workaround is only a workaround...

August 7, 2025 at 2:14 pm #17302938

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. This requires further checking, so I have a couple of requests:

1) Please share the exact steps to reproduce the issue on your site. It would be very helpful if you could provide a screencast demonstrating the steps. This will assist us greatly with our internal communication and investigation.

2) Please fill in the private details fields after a full site backup. I would like to access the admin area of your site for further checks. For more information about our private information sharing policies, please refer to the links below:

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

August 7, 2025 at 3:43 pm #17303336

Autre

This won't be possible to debug on site as this is a live site.
I usually edited a default language post and it seemed to overwrite the alternate language content.

August 8, 2025 at 2:47 am #17304286

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. The issue you are facing is most likely due to a compatibility conflict. To help us troubleshoot this without affecting your live site, it would be great if you could set up a staging or development site (a clone of the live site).

We would also like to verify whether the issue occurs with the upcoming version of WPML (4.8), which is currently in the final stage of QA.

--
Thanks!

Bigul

August 8, 2025 at 4:19 pm #17306029

Autre

Hello,
I had the issue again today even with the workaround applied.
define( 'WPML_TRANSLATION_AUTO_UPDATE_ENABLED', false );

So this is something else... My website configuration is the following :
- default language is French
- secondary language is English

Some English posts content are overwritten with French content. This usually happen when I edit an English post content and open also a window on the French content. I have the feeling that there is some kind of auto update feature that mixes up the ID and update the English content with the French content instead of respecting the ID for each language...

I can't provide a staging site.

August 10, 2025 at 8:55 am #17307351

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. I tried to reproduce the issue on a sandbox site with a minimal setup, only WPML active and a default WordPress theme (Twenty Twenty-One or Twenty Twenty-Five). But I could not reproduce it. Please see the links below for details.

Screencast >> hidden link

Sandbox Site Login >> hidden link

Therefore, could you try to replicate the issue on our sandbox as well? You can access it via the login URL.

This will help us track the problem and escalate the ticket to our developers. Thank you for your kind understanding.

--
Thanks!

Bigul

August 10, 2025 at 9:17 am #17307354

Autre

Hi,
I have made some tests on your sandbox site but I can't reproduce the issue. The point is that this is a clean installation. My WPML installation comes from few years back so I have been through multiple updates. Not sure if the DB structure is 100% clean.
You should probably add some robustness code to double check that the ID used to save a post content is really the one intended. This would avoid having the french translation going to an english ID post...

August 11, 2025 at 7:38 am #17308250

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. I have tried to reproduce the issue on a couple of our test installations but have been unable to replicate it.

Have you recently tried the WPML troubleshooting steps on your site? If not, please do so after a full site backup (mandatory) and check whether the issue still exists. Refer to this article for more details: https://wpml.org/documentation/support/wpml-troubleshooting-options/

1) Go to WPML >> Support page, click on the Troubleshooting link (blue link in the middle of the page)

2) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.

- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables

If the problem persists, this requires further debugging. So, could you please create a copy of your site using the Duplicator plugin, share it via Google Drive, and provide the exact steps to replicate the bug? This will help us debug the problem without affecting your live site. Thank you for your kind understanding.

--
Thanks!

Bigul