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
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 replies, has 0 voices.

Last updated by Waqas Bin Hasan 1 week, 2 days ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 11, 2025 at 11:04 am #17227485

inukaC

Background of the issue:
I am using WPML's Advanced Translation Editor, but all attempts to post translation jobs via the REST API are failing. We suspect the POST request to hidden link is either being blocked or overwritten by our caching or security layers (e.g., LiteSpeed Cache). We need to know the correct way to override or re-enable the WPML REST API POST route, including how to correctly pass nonce/auth if needed, and how to ensure LiteSpeed or other plugins do not interfere. We reviewed WPML REST API and ATE docs but did not find any detailed guidance on overriding or restoring the POST endpoint functionality when it's blocked by cache or nonce issues. If specific developer hooks or filters exist to extend WPML's REST logic safely, we’d appreciate documentation on that.

Symptoms:
We are receiving an error: { "code": "rest_cookie_invalid_nonce", "message": "Cookie check failed", "data": { "status": 403 } } Additionally, we are getting logs like this in the WPML ATE error logs: ATE Server Communication - Service Unavailable.

Questions:
How can we override or re-enable the WPML REST API POST route?
How do we correctly pass nonce/auth if needed?
How can we ensure LiteSpeed or other plugins do not interfere with the WPML REST API?
What endpoint structure must remain available?

July 11, 2025 at 12:57 pm #17228170

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, I moved to this ticket to check further with my team.

So far I haven't got any information on it, however, as discussed during the chat, that based on the information at hand, this may not be possible.

However, instead of just concluding here, I'll still like to discuss with team for any possibility or considering it as a feature request. For that matter, I'll keep this ticket open until confirmed.

As a next step, I'll request some steps which I can follow to reproduce the issue in a fresh sandbox site. This 'll help further understanding the issue and to escalate as needed.

Please let me know.

Regards.

P.S.: I'll be off over the weekend and 'll be able to attend on Monday.