Home›Support›English Support›[Resolved] WPML AI / translation gets stuck in progress in the Translation Job
[Resolved] WPML AI / translation gets stuck in progress in the Translation Job
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate a published page using the + icons in the post edit UI. When you click on the +, it launches the Advanced Translation Editor (ATE) with all translations prefilled. After accepting and completing the translation, the ATE closes, and the + icon changes to a refresh icon, then a cog icon. However, the translated page is not accessible via the icon or the language dropdown, and there is a translation job marked as 'in progress' in the Translation Management > Translation jobs table that never completes. Solution: The issue occurs because the page contains an HTML block with a large JavaScript script, which breaks when ATE tries to translate it, resulting in an invalid XLIFF file. WPML then rejects this file. We recommend two possible workarounds: 1. Temporarily delete the problematic section and add it back after the translations are complete. 2. Avoid using ATE for this page. Instead, use the Classic Translation Editor (CTE) or the WordPress editor to manually edit the translations with Elementor. This method is more time-consuming but allows you to use the automatically translated texts from the translation memory. We have escalated this issue to our developers for a permanent fix.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking for 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. If the problem persists, please open a new support ticket 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.
Background of the issue:
I am trying to translate a published page via the + icons in the post edit UI. When I click on the "+" it launches the ATE, with all the translations prefilled. I accept them and complete the translation. The ATE closes, the + icon becomes a refresh icon, then a Cog icon. At this point, nothing happens. The translated page should be available via the icon or via the language dropdown but it is not. I see there is an "in progress" job in the Translation Management > Translation jobs table. That job stays "in progress" forever.
Symptoms:
The cog icon does not change to a pencil icon, and the translated pages are not available in the dropdown menu or via the pencil icon. Instead, there is a translation job "in progress" in the translation jobs table.
Questions:
Why does the translation job remain 'in progress'?
How can I make the translated page available?
Hello,
My name is Carlos, and I will continue working on this ticket.
I have checked your site on our servers, and it was blocked. I have unblocked the site, and I was able to save some translations, but the site is getting blocked.
I have escalated this ticket to our 2nd tier of support for further investigation.
In the meantime, please double-check by deactivating/activating plugins if the Rest API gets enabled, because this might be the cause of the problem. You can see here the error message related to the Rest API being disabled: hidden link
You can also consult your hosting providers and ask them to check on the server-side if there is any firewall directive that might be disabling the Rest API.
Note: WPML needs the Rest API to be able to connect to our servers and send/receive translation jobs.
Please follow these steps to get more information about the cause of the issue:
- Activate the WordPress debug mode as described in this guide: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
- Send content for translation or update a pending translation until the problem appears again
- Check if there are any fatal errors recorded in the debug.log file located within the wp-content folder for the same date you run the test. If there is a fatal error, please share it here
- Deactivate the WordPress debug mode when you finish the tests
Indeed, the REST API is blocked in production because we use an httpasswd to prevent the site from being indexed or accessed by non authorized users.
Is there a way for us to provide the username:password to WPML so that the plugin uses them to contact our rest api ?
The issue remains: I've translated the page in all languages use automatic translation with WPML AI, but the icon remains a cog and the jobs are stuck "in progress".
I tried many times to use the troubleshooting buttons (clear cache, Synchronize local job ids with their ATE counterparts, etc). No dice.
Hoping I can help: when i look at the console, i see a request that returns 500 linked to the "Synchronization with the Professional Translation service has failed" warning message:
Thank you very much for sharing your findings. I gathered more information and updated our 2nd tier specialists who are taking a deeper look at this issue.
Hello!
Do you have an update ? We are stuck with one page which does not want to reach the completed status. I even tried deleting and recreating the page, publish it then translate it, to no avail.
Thank you