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

Supporter timezone: Asia/Dhaka (GMT+06:00)

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 11 months ago.

Assisted by: Prosenjit Barman.

Author Posts
June 27, 2023 at 12:48 am #13898719

Marie-Aude

Tell us what you are trying to do? Preview draft posts in English, currently a hidden language

Is there any documentation that you are following? Did not find anything specific

Is there a similar example that we can see?

What is the link to your site? Admin link 😀

The problem is that the preview of a draft posts generates a 404 page. I think there is something wrong in my settings, but can't find what.

June 27, 2023 at 12:39 pm #13902531

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support. I will be happy to assist you in this matter.

I would like to inform you that when a language is set to be hidden, any pages or posts written in that language that are kept in draft status cannot be previewed. But, by making some adjustments in the configuration, you can see the previews. Please navigate to "Users > Profile" from your WordPress Dashboard and scroll down to the "WPML language settings" section. From there, tick the checkbox with "Display hidden languages" and update the profile.

I hope it will help to see the preview of the draft of the Hidden language. But, please let me know if you need further assistance. I will be happy to help.

Best Regards,
Prosenjit

June 27, 2023 at 1:57 pm #13903179

Marie-Aude

Thank you Prosenjit.
Unfortunately, the checkbox was already ticked and I can't see anything else than published posts

hidden link

June 28, 2023 at 3:09 am #13906589

Marie-Aude

Actually, even if it is published, I can't see a post in English.

June 28, 2023 at 12:41 pm #13910175

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,

To view the published post of a hidden language, you must be logged in as an admin or editor. If you are unable to preview draft or published pages under a hidden language even after logging in as an admin or editor, further investigation will be necessary to determine the root cause.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forwards to your response.

Best Regards,
Prosenjit

June 28, 2023 at 5:49 pm #13912825

Marie-Aude

Additional information, as I recreated the problem: it happens when I'm using at the same time both French and English in the back end, which I have to do to fine tune some translations. So I need to both both versions in the admin.

June 30, 2023 at 5:14 am #13920843

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well. Thanks for sharing access and more insights about the issue.

I have checked and can see that the Preview works perfectly when I try from the account you've created for me. But, I guess some rule has been added to your main account which is why, the previews aren't working properly from there. There is nothing wrong in the Profile configuration and WPML configuration as well.

I also would like to inform you that whenever I tried to access the English domain from your account, I got redirected to the main domain.

Could you please check if there are any special rules or capabilities added to your profile? Since your site is currently in production and has over 100 plugins activated, I did not perform a conflict test. Would you kindly check by doing a conflict test as well?

Please take a full backup of your site first, then disable all plugins except for WPML and its add-ons, and check if the previews are visible. If so, start activating the plugins one by one and continue to inspect the issue till you're able to identify the plugin that can cause the issue.

But, as everything works fine with the account you've created for me, you can continue with that account if you want.

Please let me know the update. I will be happy to assist you.

Best Regards,
Prosenjit

July 1, 2023 at 2:22 am #13926779

Marie-Aude

Hi Prosenjit,

thanks for your investigations.

as I said "Additional information, as I recreated the problem: it happens when I'm using at the same time both French and English in the back end, which I have to do to fine tune some translations."

Which means, in more details :

when I'm logged in on my main account and use French, with a post in edit (I need to access some complex custom fields for translation), and then, with the same account, I open the translated post in English (so still on edit.php), THEN I can't display the english version.

But if I use another account on another browser to display the French version and I use my main account to work in English only, then I can perfectly access the website in english and preview draft posts.

(Which means you might have tried to use my account while I was working on the French version).

This is the first time I work with a hidden language. All the other websites have been started bilingual from the beginning. And this is the first time I have this issue.

So I have a kind of a belly feeling it's a problem linked to session/cookies/hidden language.

(I did a conflict test on my local version, and there was no conflict).

I have a workable work-around, but it's not ok for a customer, so I'd be happy to have a solution... or to know if my way of working is just not workable with a hidden language.

Tell me if you're interested in finding the problem, and I'll build a test site for you.... after the week-end.

Kind regards

July 3, 2023 at 5:05 am #13930181

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well. Sorry for the delay in responding due to the Weekend.

I would be happy to investigate the issue further and help you to find a solution.

Thank you for sharing the steps to reproduce the issue. I checked accordingly in my development environment and found that the draft saved in the Hidden language is showing properly. I haven't noticed any issues there. Kindly check this video(hidden link) for a better understanding.

Would you kindly try to replicate the same issue on the sandbox site mentioned below?

- hidden link

Just install the theme or plugins that will be required to replicate the issue. Once you're able to replicate the issue there, I kindly request you to capture the steps on a video and share that in the next response. I will check again and let you know my findings.

I truly appreciate your patience and willingness to help us in replicating the issue. Looking forward to your response.

Best Regards,
Prosenjit

July 10, 2023 at 4:07 am #13973877

Marie-Aude

Hi,

just to tell you I did not have time to set up the test system, hope to do it tomorrow.

Nevertheless, the problem appears regularly, once a day actually.

I use the wplm account for english, my account for french
So once a day, the wpml account displays French home page instead of an english post

I disconnect, delete the transients and connect again, removing from the url a wpml_sso_token, and I can display again the english version.

July 10, 2023 at 11:55 am #13987633

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for sharing more updates regarding the issue.

The sandbox site I have shared previously is deleted due to inactivity. That's why, I'm sharing another with you.

- hidden link

You'll be logged in automatically to a WordPress site once you click on the link. Please try to replicate the issue there, by applying the use case you have.

Please let me know the update. I will be happy to assist you.

Best Regards,
Prosenjit

The topic ‘[Closed] Impossible to preview draft posts in a hidden language’ is closed to new replies.