Skip to content Skip to sidebar

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

Problem:
You are experiencing JavaScript errors in WP Admin pages caused by WPML. This issue might be due to WordFence blocking the WPML Translation Proxy's access to the WP REST API.
Solution:
1. Check WordFence Live Traffic:
- Navigate to Wordfence → Tools → Live Traffic.
- Filter for blocked requests or REST API calls.
- Look for /wp-json/wpml/ or /wp-json/wp/v2/ endpoints.
2. Temporarily disable WordFence to see if the error disappears, confirming interference.
3. Whitelist WPML Translation Proxy IPs if published by WPML.
4. Adjust WordFence Firewall Settings:
- Go to WordFence → Firewall → Blocking.
- Ensure REST API access is not restricted for logged-in users.
If these steps do not resolve the issue, we 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. If the problem persists, please open a new support ticket.

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 1 replies, has 0 voices.

Last updated by alisons-2 7 months ago.

Assisted by: Andreas W..

Author Posts
October 9, 2025 at 9:20 pm #17473026

alisons-2

Background of the issue:
I am trying to access all WP Admin pages on hidden link without encountering any issues.

Symptoms:
I see a JavaScript error caused by WPML when logged into WP Admin pages. I expected no WPML JavaScript errors, but instead, I got WPML JavaScript errors.

Questions:
How do we make these WPML JavaScript errors go away?

October 10, 2025 at 12:22 am #17473131

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

This error says that the site is not authorized to access the WPML Translation Proxy using the WP REST API.

This could be a limitation due to WordFence.

Wordfence can block REST API endpoints based on:

- IP reputation
- Rate limits
- Login status
- Query string patterns

WPML’s Translation Proxy relies on authenticated REST calls to sync translations and metadata.

If Wordfence blocks these calls, it can result in:

- JavaScript errors in the admin
- Incomplete translation sync
- Failed AJAX responses

Steps to take:

Check Wordfence Live Traffic
- Go to Wordfence → Tools → Live Traffic
- Filter for blocked requests or REST API calls
- Look for /wp-json/wpml/ or /wp-json/wp/v2/ endpoints

Temporarily Disable Wordfence
- If the error disappears, it confirms interference

Whitelist WPML Translation Proxy IPs
- WPML may publish proxy IPs—add them to Wordfence’s whitelist

Adjust Wordfence Firewall Settings
- Go to Wordfence → Firewall → Blocking
- Ensure REST API access is not restricted for logged-in users

If this does not solve the issue, please let me know.

Best regards
Andreas

October 10, 2025 at 7:00 pm #17475562

alisons-2

I think the problem is that the server firewall (not Wordfence) is blocking some of these WPML paths. So I'll talk to my server guy to see if we can fix this.