This thread is resolved. Here is a description of the problem and solution.
Problème :
Le client rencontre un problème avec des pages protégées par mot de passe qui retournent une erreur 404 sur son site WordPress utilisant WPML. Même après avoir désactivé l'option "Permettre les pages de connexion et d'inscription" dans les paramètres WPML, le site renvoie une erreur 500. Le client souhaite résoudre l'accès aux pages protégées par mot de passe sans avoir à traduire les pages d'inscription et d'authentification ou modifier les règles du serveur.
Si ces étapes ne résolvent pas le problème, ou si la solution semble obsolète ou inapplicable à votre cas, nous vous recommandons de consulter les problèmes connus et de vérifier la version de la correction permanente. Assurez-vous également que vous avez installé les dernières versions des thèmes et des plugins. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support sur le forum de support WPML.
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.
I have integrated the wpml solution on my wordpress website in production help.openbee.com , I have French language by default and English. I chose to use the urls as directory, that is to say even the urls of the default language start with /en/,
I find out that password protected pages return a 404 error.
By unchecking, from the WPML settings the option "Allow login and registration pages" the entire site is no longer accessible and returns a 500 error. So I handed over the option and the .htacess to restart it.
My hosting provider is O2swith, I think the server is on NGINX. I have not yet asked the hosting support to add the rules indicated in the documentation. I do not intend to translate the authentication and registration pages.
Can you help me solve the access to password-protected pages without having to translate the registration and authentication pages or change the server rules please?
I prefer to solve this problem first on the same preprod installation on hidden link
I understand the issue you're having. The root cause of the issue you're having may differ from what's described in the ticket you provided. I also noticed that the link you shared leads to a 404 error page before I even input the password. If this problem is specific to the translated version of the page, could you please share the link to the original page? This will enable me to conduct a more accurate test and offer you better guidance.
However, on the translated pages, the 404 error usually appears due to a corrupted permalink structure or if the page/post is saved in draft. Please try the following steps and check if that helps to solve the issue.
- Please go to "Settings > Permalinks" from your WordPress Dashboard
- Resave the structure without making any changes
- Now, go to "Pages > All Pages" and locate the page that shows a 404 error
- Click on "Quick edit" and make sure that the 'Status' is set to 'Published'. Please do the same for translation as well.
- Clear the caches from the site.
Let me know the update. I will be happy to help if you need further assistance in this matter.