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
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

Supporter timezone: America/New_York (GMT-05:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Lauren 1 day, 13 hours ago.

Assisted by: Lauren.

Author Posts
January 24, 2025 at 7:01 pm

bikbulatovaE

Background of the issue:
I am trying to check a translated page before approval. The issue can be seen at the following link: hidden link

Symptoms:
I receive the error message: 'Sorry, you do not have permission to preview drafts.'

Questions:
Why am I unable to preview drafts?
How can I gain permission to preview drafts? > Gain permission, the term sounds funny. It worked 5 minutes ago. I had to debug the plugin after automatic translation got stuck. Then I had this issue.

January 24, 2025 at 9:15 pm
January 28, 2025 at 12:16 am #16639723

Lauren
Supporter

Languages: English (English )

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

I think I found the solution. There is a checkbox on the WPML -> Languages pages to auto login to other domains when you use different domains per language. That box had not been checked and after checking it I'm able to see the reviews.

Be sure to log out and then log back in and let me know if this resolves the issue for you.

January 29, 2025 at 3:38 pm #16647529

bikbulatovaE

Oh you found it!
The fonction seems not to work for me, I signed out, cleaned cache... I'm still not signed-in when opening the french version of the website. However it works normaly when using another option that different domain.

January 29, 2025 at 8:29 pm #16648568

Lauren
Supporter

Languages: English (English )

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

Try disabling non WPML plugins on the live site. You can see the staging has les out of date plugins and only 3 are active. It could be that something on the live site is conflicting. Alternately, you can try reactivating plugins on your staging site and see if the issue comes back. If you activate only a few at a time and check this may help determine which is a conflict.

January 31, 2025 at 12:14 pm #16655367

bikbulatovaE

Hey I have the error on staging too, I didn't touch anything. Just tried to preview this

Capture d’écran 2025-01-31 161418.jpg
January 31, 2025 at 12:46 pm #16655553

bikbulatovaE

It's like my account isn't granted with admin permissions on .fr domain. I also tried to sign in for the .fr domain, it worked, then tried to preview draft translation > No permission. Even if signed in my account for both .com and .fr accounts.

January 31, 2025 at 1:29 pm #16655831
bikbulatovaE

Another thing: featured blog post images aren't attached to the posts.
Check out: hidden link

Page "Post test". The image title and alt text are translated correcly, but the image isn't diplayed on the page. Is this maybe linked to wpml settings that do not copy the featured image or blog post design somehow?

I need your support to fix this, because there is no doc about this. AI doesn't understand too. And I don't want to use the "duplicate media" stuff that will multiply by x number the database size (for media library).

New threads created by Lauren and linked to this one are listed below:

https://wpml.org/forums/topic/split-sorry-you-do-not-have-permission-to-preview-drafts/

February 1, 2025 at 12:34 am #16657595

Lauren
Supporter

Languages: English (English )

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

On the staging site, i found the auto login check was once again unchecked. Uncheck the box to validate domain, then check the box to auto log in/out and you should be able to review translations.

On the live site, I found the following error in the ATE error log:

Error: The MySQL server is running with the --read-only option so it cannot execute this statement 0

This error indicates that the MySQL server has some limitations. You need to make sure that there are no restrictions for using the MySQL database. If the user only has read permissions, this is most likely the cause of the problem.

More information on the WordPress website:
https://developer.wordpress.org/advanced-administration/security/hardening/#database-security

February 4, 2025 at 6:27 am #16664961

bikbulatovaE

Hello,
You will provide me with video proof of what you're saying please.
Because I can't have access on staging or production no matter the configuration.

Now everything is disabled: plugins, themes... And auto login function is turned on.

February 4, 2025 at 9:05 pm #16668498

Lauren
Supporter

Languages: English (English )

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

Do you mean you would like me to record the settings in the WPML -> Languages section? Also, I no longer have access to the staging site, so I can't access there. Your live site does not have minimal settings, but I was able to re-save the Shop page which was the only one I found stuck waiting for review. If there are other pages/posts on the live site that need review, please let me know which ones so I can further test. Thanks!