Resolved
Reported for: WPML Multilingual CMS 4.7.0
Resolved in: WPML Multilingual CMS 4.7.2
Overview of the issue
If you use the Classic Translation Editor (CTE) to edit translations and your content includes multiple text blocks, changing the translated content of the first block and introducing line breaks can result in that content being copied to all of the translated content blocks.
If you hit the Save button you will notice; if you hit Save and Close you will not notice, but the wrong content will be saved to the database and shown on the front end, and will be visible when re-opening CTE to edit the translation again.
The issue can appear using the Gutenberg editor but also when using text modules of page builders such as Elementor or WP Bakery.
Workaround
The issue arose in WPML 4.7.0 (and persists in WPML 4.7.1). You can downgrade WPML to 4.6.15 and WPML String Translation 3.2.18 to avoid the issue.
If downgrading is not an option you can apply a patch by replacing one of the WPML plugin files (using FTP or a File Manager plugin).
Download a patched version of the file by right clicking and saving this linked file.
Unzip and replace the file of the same name at wp-content/plugins/sitepress-multilingual-cms/res/js/translation-editor/wpml-tm-editor-footer-view.js
You may need to clear your browser cache if it does not work at first.
Hi,
Thanks for this post, I was searching everywhere for incompatibilities between my plugins and WPML because I had this problem and didn’t find the source of the issue.
Will this be fixed in a future version of WPML?
The fix for this will be included in WPML 4.7.2 (i.e. the next release) which is currently undergoing testing ahead of an update soon (I don’t have a date but it should not be too long).
I can confirm that updating to WPML Multilingual CMS 4.7.2 and WPML String Translation 3.3.2 fixed the issue for us. Thanks for the support.