pw protected pages dont work after wp upgrade (4 posts)

  1. diosentic
    Posted 3 years ago #

    None of my password protected pages work after wp upgrade to 3.4.2 today, I enter the correct password and it reloads byt get back to enter the password field.
    I have looked through many posts about this back over the years, many have struggeled with same issue. No earlier solutions works for us.
    I have tested to deactivate all plugins.
    I have cleared cookies.
    I have reset all my passwords and created new pages.
    Still same problem.
    Website is http://www.diosentic.com
    Example of password protected page not working: http://www.diosentic.com/test
    Any suggestions?

  2. mtwelve
    Posted 3 years ago #


    Your page/password appeared to work when I just tested it. I'm having the same problem and wondered if you had any suggestions?


  3. igor.evstratov
    Posted 3 years ago #

    Hi everyone,

    I had the same issue. In my case it happened because I didn't change the form action. Before there was /wp-pass.php handler which sets the entered post password into cookie. From now the form action should be /wp-login.php?action=postpass.


  4. myrrhlarsen
    Posted 3 years ago #

    Thanks, Igor!

    Btw, to anyone else who stumbled upon this and has any pre-3.4 conditional code comparing $post_object->post_password with $_COOKIE['wp-postpass_' . COOKIEHASH]: you must now use wp_check_password() instead, as the post password is (wisely!) no longer saved in plaintext in the user's browser.

Topic Closed

This topic has been closed to new replies.

About this Topic