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

Supporter timezone: Pacific/Easter (GMT-06:00)

This topic contains 10 replies, has 0 voices.

Last updated by Ilyes 6 months, 3 weeks ago.

Assisted by: Ilyes.

Author Posts
November 4, 2024 at 12:08 pm #16360727

marieS-14

Background of the issue:
I am trying to review a translation on my WordPress site using WPML. The main language is German (bootskaufberaetung.de) and the English version is on a different domain (boatmate.co.uk). The configuration is set to different domains per language with auto sign-in for all users from all domains activated. Both users involved have the language pair German-English assigned. I have cleared the entire WP cache including plugin cache, and tried signing in and out of browsers, and using different browsers, but the issue persists. When I try to review a translation, I am redirected from bootskaufberatung.de/wp-admin to a URL on boatmate.co.uk, which results in an error. Changing the base URL in the link to the German main site allows me to review the translation. DNS settings should be correct according to documentation.

Symptoms:
When trying to review a translation, I receive the error message: 'Sorry, you are not allowed to preview drafts.'

Questions:
How can I resolve the 'Sorry, you are not allowed to preview drafts' error when reviewing translations?
Is there a configuration issue with WPML that is causing the translation review problem?
Are there additional steps I can take to troubleshoot the WPML backend access issue?

November 4, 2024 at 2:11 pm #16361497

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello again,

Could you please double check admin2 access, as I'm not able to access WPML settings and languages panels : hidden link

Also, could you disable Litespeed cache temporarily and check if the issue persists without it?

Best,

November 4, 2024 at 3:00 pm #16361771

marieS-14

I have disabled caching functionality in litespeed, issue still persists.
I tried adding admin2 as translator manager but the field for entering a name does not yield any results; I can't add any translation managers (tried in two chrome and FF, both newest version). Is there a manual way to add the user privileges to admin2? One issue at a time...

November 5, 2024 at 7:38 am #16364319

marieS-14

additional information that might be relevant:

1) hidden link does work for my editor, but still not for me or admin2. I get the same error as stated in ticket. Changing the URL manually to bootsmaklerei.de/.... still works and enables me to review the page. I did try it with my account on her device: no change, it does not work for me.
2) when visiting the english url boatmate.co.uk (frontend) directly I get redirect to bootskaufberatung.de (German page). When then clicking on english in the language switcher it brings me back to boatmate.co.uk which then remains english as it should. I don't think this is intended behaviour? Maybe it points to some misconfiguration related to our main ticket?

November 5, 2024 at 4:54 pm #16368296

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

I find it hard to debug this as I never had any issues yet, but I could list you a couple of things we should test :

1-Please check if the issue persists in a minimal environment by following these steps.
A- Deactivate all the plugins except WPML CMS.
B- Switch for a moment to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one there is causing an interaction issue.

Please backup your database before performing the above test

----

2- Since Admin2 doesn't have the full access, I want to try running the site locally and check why I can't access it, I do not see a plugin that might explain why the admin access doesn't allow me to access all tabs.

----

3- These weird redirections and errors are for sure coming from either a redirection plugin or settings under your .htaccess file, this is what I found : hidden link

I think the issue could be related to the Redirection plugin you have installed.

Best,

November 5, 2024 at 8:25 pm #16369098

marieS-14

Thank you for your answer. Sadly I see nothing in the redirection plugin logs in terms of redirects of the boatmate.co.uk url/main page. I have however disabled the plugin for now (still visible in admin interface but sholud not take effect anymore). nothing to my eye in htaccess file. I will re-test the issues tomorrow.
However I can't go and deactivate plugins and remove the theme and whatnot as it's a production site. I could create a staging but that comes with other issues and won't reflect what we're dealing with no I suppose.

November 5, 2024 at 11:26 pm #16369393

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

If the issue doesn't replicate on staging, I will download a copy of your site and see if I can replicate it myself.

November 7, 2024 at 10:06 am #16376110

marieS-14

further investigations have revealed:
- the redirect-issue is related to the non-www url (hidden link) that gets redirect by wordpress, not by the server (x-redirect-header) to hidden link). that's why hidden link does lead to english, but without www it doesn't. The redirection-plugin is disabled and has no effet, caching is disabled, htaccess was cleaned for testing purposes; no server-side caching involved as per hoster. I do not know how WPML is supposed to handle non-www redirects if in WPML settings the URL is entered with www. If changing the URL in WPML from www to non-www the issue switches and non-www urls are handle correctly as expected (=other language) but www-url is redirected to the main-language-url. Maybe you can shed some light on how WPML handles non-www requests when www-url is set in WPML settings for a language; then I can investigate further and edit htaccess if neccessary to mask the issue if no other plugin is messing with the redirects.

- no access to preview draft issue: will set up staging asap and report back for further testing. Have you had any success in clearing the admin access issue you uncovered?

November 7, 2024 at 10:13 am #16376123

marieS-14

staging online: hidden link feel free to do whatever you want with it.

November 7, 2024 at 8:12 pm #16379920

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

The Admin access issue was actually caused by "PublishPress Capabilities", the administrator role didn't include all the accesses, I changed it from here : hidden link

I'm still debugging the initial issue, I will get back to you once I find the cause,

November 8, 2024 at 1:23 am #16380336

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Okay, your findings actually helped me find possible solutions with the Non-www redirects,

1) Could you please check the following tickets?
- https://wpml.org/forums/topic/non-www-redirects-to-default-language/
- https://wpml.org/forums/topic/second-language-www-domain-working-non-www-defaults-to-english-2/#post-6307283

2) Could you please try the following .htaccess configuration?
- https://pastebin.com/WYtEVbkm
- https://pastebin.com/zqDDhF1b

Also, I see that you are using a Litespeed Apache server, which could be a possible culprit for this issue, but that requires further debugging,

For how WPML handles non-www requests, WPML is not able to do any kind of redirection, but WordPress can. So it will simply follow what the configuration set by your server or wordpress.

November 11, 2024 at 7:22 pm #16390062

marieS-14

We will be trying out the htaccess workarounds to mitigate the non-www issue.
This should however not affect the main issue of this topic: the review permission error. Right?

November 12, 2024 at 11:16 pm #16394936

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello again,

Please let me know if .htaccess workarounds helped,

And yes, it is actually probable that the issue is related to these redirections.

The issue is not replicating locally either, do you have a CDN configured? also, does the server itself have any built in caching configurations?

I will escalate the 2nd level if the previous suggestions did not help,

Best,

November 20, 2024 at 8:31 am #16422938

marieS-14

we implemented a htcaccess fix that for now resolves the domain-issue, although the problem seems definitely to be part of WP or WPML.
The original problem hasn't been tested again; I have to wait for the editor to be back and start a new translation process so I can check if the permission issue is resolved. I will then report back asap.

November 20, 2024 at 9:17 pm #16426550

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Thank you for the follow-up,

Looking forward to your reply then.

The topic ‘[Closed] review process: Sorry, you are not allowed to preview drafts -> URL problem?’ is closed to new replies.