Skip to content Skip to sidebar

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

Problem:
You are translating content into the LT language using WPML's Advanced Translation Editor, and although it shows 100% translated, the translations are not saving. When you reopen the editor, it still indicates 100% translated, but the changes are not retained.
Solution:
We found that the issue was due to malformed XML content being sent to the Advanced Translation Editor. Specifically, the content "200 mA @12 VDC]]" included two closing square brackets "]]" which caused a parsing error. To resolve this, we corrected the malformed content by re-adding it correctly and then re-translating the post. This action should resolve the issue of translations not saving properly.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Additionally, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum 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 8 replies, has 3 voices.

Last updated by Long Nguyen 1 year, 1 month ago.

Assisted by: Long Nguyen.

Author Posts
June 3, 2024 at 3:54 pm #15698507

audriusB

Background of the issue:
I am doing translation into LT language using WPML's Advanced Translation Editor. I filled in all the fields, it shows 100% translated. Then I click save and close. The translation is not saved. And when I reopen, the translation level keeps showing 100%. I have tried this about 10 times already. I have manually updated to the latest version. I have deactivated all plugins related to cache and cleared all caches. I made a small change to the EN language and translated it to LT again, but the issue persists.

Symptoms:
The translation shows 100% complete but does not save. When reopened, it still shows 100% translated.

Questions:
Why is the translation not saving even though it shows 100% complete?
What additional steps can I take to resolve this issue?
Is there a known conflict with other plugins or themes that could cause this?
Can I perform these troubleshooting steps on a production site or should I create a dev site?

June 3, 2024 at 3:57 pm #15698580

audriusB

I made a copy of the website. I disabled all plugins except WPML.
Only simple translation works. Advanced Translation Editor does not work.

June 3, 2024 at 6:32 pm #15698944

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

Please make sure to have a backup before proceeding (there should be no issues performing the troubleshooting steps in the live website).

1. Go to WPML > Support and click on Troubleshooting;
2. Click on "Synchronize local job ids with ATE jobs"
3. Click on "Synchronize translators and translation managers with ATE"
4. Click on "Set language information"

If that does not help, one of my colleagues will soon come to continue support.

June 5, 2024 at 5:55 am #15704845

audriusB

That does not help. Still same.

Screenshot 2024-06-05 at 08.53.31.png
June 5, 2024 at 7:10 am #15705285

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Audrius,

Thank you for contacting WPML support, I’m happy to help you with this issue.

There could be an error occurring while our system attempts to deliver the translation content to your site and cause the translation stuck.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

June 8, 2024 at 3:31 pm #15718518

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

When I login to your site, I see the post (project) Minu RTU is translated completely, the post "Voltage Sensor Amplifier – multi IOMOD Meter with single voltage sensor" is in progress. Then I try to complete the translation and it is still stuck.

There are some error messages in the debug log

[08-Jun-2024 15:13:28 UTC] PHP Warning:  simplexml_load_string(): Entity: line 187: parser error : internal error: detected an error in element content in /var/www/vhosts/epalete.lt/epalete.com/else/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-xliff-reader.php on line 21
[08-Jun-2024 15:13:28 UTC] PHP Warning:  simplexml_load_string(): tatype="html" id="package-string-102-5070"><source>Operating conditions</source> in /var/www/vhosts/epalete.lt/epalete.com/else/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-xliff-reader.php on line 21
[08-Jun-2024 15:13:28 UTC] PHP Warning:  simplexml_load_string():                                                                                ^ in /var/www/vhosts/epalete.lt/epalete.com/else/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-xliff-reader.php on line 21
[08-Jun-2024 15:13:48 UTC] PHP Warning:  simplexml_load_string(): Entity: line 187: parser error : Opening and ending tag mismatch: source line 187 and trans-unit in /var/www/vhosts/epalete.lt/epalete.com/else/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-xliff-reader.php on line 21

this happens because the content in the table "200 mA @12 VDC]]" is sent to the Advanced Translation Editor with two close square brackets "]]" and causes the issue.
I fix that issue on your site by re-adding the content, translating the post again and it is translated completely.

Looking forward to your reply.
Thanks

Advanced Translation Editor - WPML 2024-06-08 22-18-25.png
June 10, 2024 at 1:45 pm #15722335

audriusB

Oh Thanks, I need to check in prod version.
I'll be back with an answer

June 10, 2024 at 2:34 pm #15722711

audriusB

Thank you for your help, everything is fine now.
We can now close the issue.

June 11, 2024 at 1:10 am #15724254

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Feel free to contact us again if you have any questions.

Thanks and have a good day.