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 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 -
- 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 -

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

This topic contains 0 reply, has 0 voices.

Last updated by Alejandro 7 months, 1 week ago.

Assisted by: Alejandro.

Author Posts
March 4, 2025 at 10:50 pm #16776143

claudioE

Background of the issue:
I am an administrator with the proper user capabilities on the site hidden link. I am trying to make a translation on a page using WPML. I have added myself as a Translator.

Symptoms:
I can't translate because it says I do not have permission, even though I am an admin.

Questions:
Why can't I translate even though I am an admin and added myself as a Translator?

March 5, 2025 at 9:32 am #16777520

Alejandro
WPML Supporter since 02/2018

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

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

Hello,

First of all, please make sure you have at least the latest stable release of WPML installed which is 4.6.15 (4.7.1 is the latest, you could try that one as well but after a proper backup).

If the problem continues after you do that and also update the related WPML plugins, can you tell me where exactly are you seeing that problem? is it in a page, in WPML > Translations, somewhere else?

Thanks in advance.

March 5, 2025 at 2:44 pm #16779529

claudioE

I just updated the plugin. The issue persists.

It seems to only occur during within the Gutenberg editor. Classic editor seems to be fine.

Attached is the message I get when I try to save a translation and this is the error in the console.

Screenshot 2025-03-05 at 9.43.13 AM.png
Screenshot 2025-03-05 at 9.42.23 AM.png
March 5, 2025 at 4:17 pm #16779847

Alejandro
WPML Supporter since 02/2018

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

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

Would it be possible to allow me access to your site, as an admin and refer me to the page where you had this issue?

Can you also write the steps you took to see the problem? I want to see where the problem lies and try to help you find a solution for it.

I enabled the credential field in your next reply, please paste all the content there so it stays private and secure.

March 5, 2025 at 9:13 pm #16780635

claudioE

Any update on this?

March 6, 2025 at 8:59 am #16781839

Alejandro
WPML Supporter since 02/2018

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

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

Hello,

The problem here is that the REST call is done using the language directory when it shouldn't.

This is something that was fixed before, but I wanted to ask if you have any custom code that you can temporarily remove and see if the problem continues? if not, then would it be possible to switch the theme to a default one adn see if the problem continues?

if the directory is not there, then the REST call should work, that's what's currently blocking you and that's not happening on a clean site, so there must be some configuration or code altering this behavior.

March 6, 2025 at 7:20 pm #16785153

claudioE

Thank you, we're currently investigating to see if we inadvertently wrote something that could've had caused this.

March 7, 2025 at 1:47 am #16785848

claudioE

After investigation, we think the issue is not related to the language directory.

Notes from our technical lead.

-The language URL-prefixed API calls work perfectly on staging and on our local machines (screenshot)

-The problem still occurs if I disable everything but WPML and switch to the Twenty Twenty Five base theme

-The WPML_REST_Request_Analyze class specifically appears to expect that the language slug is present in the URL

-The API routes on the development site work perfectly, and in fact they return different data based on language prefix, showing the appropriate language's pages and posts based on the specified base slug — which seems to be as intended by WPML (this is on another environment, staging.docebo.com)

image (3).png
image (2).png
March 7, 2025 at 1:30 pm #16788764

Alejandro
WPML Supporter since 02/2018

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

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

Would it be possible to have access to that staging site so I can try to understand if I can spot the differences between the 2 sites regarding this?

March 7, 2025 at 5:38 pm #16789578

Alejandro
WPML Supporter since 02/2018

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

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

there are a few things here:

- One site is PHP 8.1 and another 8.3, this suggests that the server config is not the same among servers.

- The site with the 401 error has a lot of errors happening on the console while the other one that works has only 1. you might want to check them out

You have a different server configuration so are you 100% sure one site is not under something like a firewall or cloudflare, something like that? .

Here's a video showing the differences that I could find: hidden link

The topic ‘[Closed] I am an administrator with the proper user capabilities but I still can’t translate.’ is closed to new replies.