WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. diosentic
    Member
    Posted 1 year ago #

    Hi,
    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
    Password:test
    Any suggestions?

  2. mtwelve
    Member
    Posted 1 year ago #

    Hello,

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

    Thanks
    Sam

  3. igor.evstratov
    Member
    Posted 1 year 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.

    Igor

  4. myrrhlarsen
    Member
    Posted 1 year 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