Hi, I updated to a new version of WordPress yesterday and noticed today that my page using the basic WordPress “add a password” to this page function is not working. It’s creating a loop pushing to: wp-login.php?action=postpass
Page: http://mauimagazine.net/digital-access/
I did some research and it’s easy to find enough information on the subject, showing this as the solution:
The solution is to change your theme functions file (/wp-content/your-theme-name/functions.php), replacing the reference to wp-pass.php with wp-login.php?action=postpass.
However, I wasn’t able to find the wp-pass.php anywhere in my Newspaper theme or child theme files. So I am unable to fix it so far.
Can you help with this? THANK YOU
Hello,
I tested the password protect on my end but it works fine with the new version of WP so the theme is not the cause here.
This could be a plugin conflict so please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hi, I appreciate your response. I did some testing.
I put the Twenty Fifteen WP theme as active, and I cannot replicate the problem when that theme is on. So the password-protected login page does work with the default theme, and does not work when Newspaper (Child) theme is active currently.
My online research shows that the solution has been solved in the past by editing the functions file of the theme. I understand this may not be the same problem now, however logic indicates the theme seems to be causing the problem, so I still believe I need some help from you.
Can I provide you with guest login so you can recreate the problem and see that switching between child theme and default theme causes this password protected page to break: http://mauimagazine.net/digital-access/
(You will also need the password to the page to test it.)
Thank you.
To clarify: the password page shows up, but when you enter the correct password, the user gets looped into “wp-pass.php with wp-login.php?action=postpass” in the browser bar and taken nowhere, or simply nothing happens.
Thank you.
Hello,
Please try one more test.
Disable all plugins except visual composer, clear cache and reset cdn files if you use it. Then switch to the main theme (not child) and test the password protected page again.
If you still encounter issues please let us know.
Thank you!
