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
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

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

Tagged: 

This topic contains 7 replies, has 0 voices.

Last updated by Bruno Kos 3 hours, 34 minutes ago.

Assisted by: Bruno Kos.

Author Posts
September 10, 2025 at 10:07 am

liamE-2

Background of the issue:
I was trying to use WPML to auto-translate pages on my site. Initially, my PHP memory limit was set to 40M, which caused translation jobs to stall. I purchased 100,000 credits for translations, but after fixing the memory limit, I noticed a significant drop in credits without successful translations.

Symptoms:
Pages were stuck translating and did not change for some time. After troubleshooting and canceling, the pages remained untranslated, and my credits were reduced. I suspect I lost about 40,000 credits without receiving translations.

Questions:
Could you please check and restore any lost credits?
Why did my credits drop significantly without successful translations?

September 10, 2025 at 12:31 pm #17390574

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Please enable the WordPress debug log so we can check if any PHP errors are being generated:

1. Edit your wp-config.php file and insert the following lines just before the line
/\* That's all, stop editing! Happy publishing. \*/

   define( 'WP_DEBUG', true );
   define( 'WP_DEBUG_LOG', true );
   define( 'WP_DEBUG_DISPLAY', false );

2. Reproduce the issue by following these steps:

* Go to: hidden link
* Find the post titled "Introducing Legacy Mode: Unifying Measurement Standards"
* Send it for automatic translation (see the screenshot I shared)
* Wait 1–2 minutes to see if the translations get published or if you get the error "The xliff file could not be read."
* If the error happens, check whether it was recorded here: hidden link
(For reference, the last entry was for ATE Job ID 158605836 on 2025/09/10 11:57:04 AM.)

3. Locate the debug log file in:
/wp-content/debug.log

4. Copy and paste the latest 20 lines or so from the log here. Please make sure to censor any sensitive information before sharing.

Also, please check if the same issue appears under these conditions:

* With only WPML plugins active (and any page builder, if that’s used to create the content). This will confirm if another plugin is interfering.
* With the theme set to a default WordPress theme like Twenty Twenty. This will confirm if the issue is related to your theme.

If the credits will be spent again (but should not be as I see the translation already done in our system), I will refund these credits.

select here.png
credits.png
September 17, 2025 at 8:31 am #17408454

liamE-2

Hi,

I enabled debug logging and retried sending the post for translation. The same error appeared, and this was written to /wp-content/debug.log:

PHP Warning: simplexml_load_string(): parser error: Opening and ending tag mismatch
PHP Warning: simplexml_load_string(): parser error: Extra content at the end of the document
PHP Fatal error: Uncaught RuntimeException: The xliff file could not be read
in /wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-ate-jobs.php:79

I don’t have a staging site available at the moment, so I can’t safely switch the live site to a default theme, but hopefully the error above helps point in the right direction. Could you let me know the next steps?

Thanks.

September 17, 2025 at 12:24 pm #17409379

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

This helps as it tells us that XLIFF (XML) file is broken and SimpleXML can’t parse it, but I'm not sure why.

To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size.

You can find more information about the process here:
https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#get-help-from-support

Please confirm if this approach is acceptable to you!

September 18, 2025 at 8:01 am #17412005

liamE-2

Hi Bruno, yes that's acceptable to us. Thank you!

September 19, 2025 at 9:52 am #17416170

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

I've deployed the site to my localhost and I get the same:

[19-Sep-2025 09:36:59 UTC] PHP Warning:  simplexml_load_string(): Entity: line 34: parser error : Extra content at the end of the document in C:\Apache24\htdocs\new1\wp-content\plugins\sitepress-multilingual-cms\classes\xliff\class-wpml-tm-xliff-reader.php on line 21
[19-Sep-2025 09:36:59 UTC] PHP Warning:  simplexml_load_string(): s":[],"widgetType":"text-editor"}],"isInner":false}]]]></script></a></p></a></p> in C:\Apache24\htdocs\new1\wp-content\plugins\sitepress-multilingual-cms\classes\xliff\class-wpml-tm-xliff-reader.php on line 21
[19-Sep-2025 09:36:59 UTC] PHP Warning:  simplexml_load_string(): 

This occurred when I tried to translate Introducing Legacy Mode: Unifying Measurement Standards.

Can you give me 1-2 other URL where this occured (where translation did not apply? I'd like to check if this is per-page issue or something else, as I see that many of the pages and posts actually got translated without issues.

September 19, 2025 at 1:24 pm #17416954

liamE-2

Hi Bruno, thanks for your help. I'm out of the office for now but will follow up when I return. Thanks.

September 22, 2025 at 5:27 am #17419833

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Thanks for letting me know. I’ll look forward to your follow-up when you’re back.