Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is working on a custom theme using Advanced Custom Fields (ACF) and has encountered an issue where after entering a password on a password-protected page, it redirects to a 404 page instead of displaying the content.
Solution:
We recommend navigating to WPML->Settings->Login and registration pages and unchecking the option Allow translating the login and registration pages. This should resolve the issue and allow the password-protected content to display correctly after the password is entered.

If the client wishes to use the option to translate the login and registration pages, we advise reviewing the following documentation, especially since the client is on an NGINX server:

If the provided solution is not relevant due to being outdated or not applicable to your case, we suggest opening a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

If further assistance is needed, please contact us in the WPML support forum.

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by hannesZ-3 3 years ago.

Assisted by: Bobby.

Author Posts
April 11, 2022 at 5:04 pm

hannesZ-3

I'm working on custom theme, building using ACF. Everything works fine, everything translated.

But I have a page :
hidden link (in DE language) (Here I set a PWD in > Visibility > Password protected > adding any PWD and update the page ).
hidden link (in EN language)

For these pages I use a custom template :
../wp-content/themes/zwetschke-base/register-page.php

Where I want to use the WordPress password_required()

Here im using the function:

if(post_password_required( )):
echo get_the_password_form();
else: ?>

So now I have the password from in this page, BUT after tying the password it redirects me to 404 page. I really don't get why ?

April 11, 2022 at 5:56 pm
April 12, 2022 at 11:36 pm #11007477

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

I am currently reviewing this issue you are experiencing and will update you shortly, however,

please note that we currently are not able to provide support for custom work within this forum. I will, however, try to point you in the correct direction and make sure that this is not caused due to some misconfiguration within our plugin.

If my directions are not enough we suggest contacting one of our 3rd party contractors that specialize in custom work with WPML
https://wpml.org/contractors/

Once there is news I will be updating you here.

April 13, 2022 at 12:59 am #11007651

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

I was able to reproduce this behavior in a sandbox environment. We will update you here once there is news.

April 15, 2022 at 5:51 pm #11029409

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

Please go to WPML->Settings->Login and registration pages-> Allow translating the login and registration pages and uncheck that option.

Once you do it will work as expected.

However, if you wish to use the option please review the following documentation as you are on an NGINX server.
https://wpml.org/documentation/getting-started-guide/translating-wordpress-login-and-registration-pages/#Server-requirements-for-sites-that-use-nginx

Let me know your results, please.