Skip Navigation

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
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

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

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by Carlos Rojas 14 minutes ago.

Assisted by: Carlos Rojas.

Author Posts
April 4, 2025 at 9:08 am

alexandreP-37

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?

April 4, 2025 at 10:47 am
April 7, 2025 at 11:02 am #16903753

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

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.

Regards,
Carlos

April 7, 2025 at 11:17 am #16903837

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hello again,

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

Looking forward to your message.

April 10, 2025 at 7:28 am #16916887

alexandreP-37

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 ?

April 10, 2025 at 9:10 am #16917370

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

The Rest API must be enabled, however, you can whitelist our servers in the security directives.

These are the domains to whitelist:
wpml.org
cdn.wpml.org
api.wpml.org
api.toolset.com

April 10, 2025 at 9:25 am #16917508

alexandreP-37

Thanks! Just to be clear: the Rest API is enabled, but external access is blocked via htpassword. I'm currently tweaking our ingress to fix that.

If I may say so, it would be quite handy to be able to set the login/password via a settings option in the WPML Admin interface.

April 10, 2025 at 11:07 am #16917979

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

That is a feature request I will create internally.

April 10, 2025 at 5:12 pm #16920027

alexandreP-37

OK, now the REST API is open to external requests and the WPML debug page confirms this.

I still have issues on WPML AI connection, as the attached screen shows. Could you double-check once more that we are not blocked on your servers ?

SCR-20250410-qtob.png
SCR-20250410-qsox.png
SCR-20250410-qsjm.png
April 11, 2025 at 10:32 am #16922082

alexandreP-37

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.

Please advise.

SCR-20250411-lgzq.png
SCR-20250411-lgoz.png
SCR-20250411-lgtx.png
April 11, 2025 at 10:35 am #16922169

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

I'm consulting my colleagues about this issue. I will get back to you as soon as I get more information.

April 11, 2025 at 10:56 am #16922275

alexandreP-37

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:

{
    "success": false,
    "data": "Communication error Details: | url: `\/jobs.json?api_version=1.1&filter%5Bjob_ids%5D%5B%5D=2016168&filter%5Bjob_ids%5D%5B%5D=2016169&filter%5Bjob_ids%5D%5B%5D=2016170&filter%5Bjob_ids%5D%5B%5D=2016171&filter%5Bjob_ids%5D%5B%5D=1638987&filter%5Bjob_ids%5D%5B%5D=1638988&filter%5Bjob_ids%5D%5B%5D=1638989&filter%5Bjob_ids%5D%5B%5D=1639198&filter%5Bjob_ids%5D%5B%5D=1639199&filter%5Bjob_ids%5D%5B%5D=1639200&filter%5Barchived%5D=1` method: `GET` param: `{\"api_version\":1.1,\"filter\":{\"job_ids\":[2016168,2016169,2016170,2016171,1638987,1638988,1638989,1639198,1639199,1639200],\"archived\":1}}` response: `{\"headers\":{},\"body\":\"{\\\"status\\\":{\\\"code\\\":2,\\\"message\\\":\\\"Invalid params for project - expecting [:accesskey]\\\",\\\"debug\\\":\\\"\\\"},\\\"response\\\":null}\",\"response\":{\"code\":422,\"message\":\"Unprocessable Entity\"},\"cookies\":[{\"name\":\"_translation_proxy_session\",\"value\":\"L\\\/4t7JLQDm0P5REW\\\/kkeBEOCFghbQMAFc7Vh2lO7Acad3BI1W9mC5lR+QANl2GucrxJk8wo7Q944zCi4\\\/+gOhSUPUqioMauuJSyTHQpmQ9jMwYG9IUYT8YW\\\/5SwBzNtAOlFSiROqjV6i97bVg+z3PSGHkEC7ZKM47MDKeUAN5x1RtNtufQ7oYjagsGdZPg0AYDI=--3QRFhnyXkKsHFhBj--0\\\/ec+o\\\/QZDMGrD5BVg9D7w==\",\"expires\":null,\"path\":\"\\\/\",\"domain\":\"tp.wpml.org\",\"port\":null,\"host_only\":true}],\"filename\":null,\"http_response\":{\"data\":null,\"headers\":null,\"status\":null}}`"
}
April 11, 2025 at 11:06 am #16922321

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

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.