• I have a password-protected page on the latest version of wordpress. For some reason, when I or my users type in the password, nothing happens. The page simply refreshes and the password box becomes blank (once again). Is my .htaccess not configured to handle this kind of request? That’s my only guess at this point.

Viewing 9 replies - 31 through 39 (of 39 total)
  • Hey guys, my problem seems to be gone (hopefully for good). The page no longer merely refreshes. I recoded my layout and upgraded to WP 2.2, so I’m thinking the problem might be fixed if you upgrade to 2.2.

    I just finished my upgrade to 2.2 and suddenly I am experiencing this problem. I know it was working prior to the upgrade, because I recently was testing the password protection for another reason. I use Firefox, and do not use wp-cache. I did test on IE and got the same results – the page just refreshes and the password box is clear again. I guess it doesn’t really matter for me, since I am the only one who would read these posts, but it is annoying.

    I’ve just set up a new WordPress website and tried to protect a page. The first time I clicked on the page it asked for a password, in other words it worked, but since then everybody can access also from another pc and browser. ‘Sherlock’ would deduct that the password is saved on the server…
    Just another input to the long thread ??
    Jens

    Update: deactivated the ‘jLanguage’ plug-in and voila, protected page works!
    Lesson: deactivate your plug-ins one at a time ??

    The newest ‘jLanguage’ plugin works now with protected pages.

    Hi, I had the same problem. In my case, the problem was that I was accessing the website as “mydomain.com/passwordprotpost”, but the domain of the cookie (containing the password for the page) was set to “www.mydomain.com”. As a result, the cookie to give me access to the password protected page wasn’t being sent by my browser to the website, resulting in the behavior of me entering the correct password, but still being sent to the page to enter the password for the page.

    I hacked up a solution so that the cookie is set with the correct domain, i.e., with the domain “.mydomain.com”. This means that the cookie can be served up to either the mydomain.com, or https://www.mydomain.com. There is probably a more elegant solution, but I’m new to wordpress.

    The solution I used was to edit the file wp-pass.php. This contains code that sets the cookie for the password protected page. I changed the line

    setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000);

    to be

    setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH, preg_replace('|https?://(www)?|i', '', get_settings('home') ));

    After doing this, the password protected page worked whether I accessed it as “mydomain.com/passwordprotpost” or “www.mydomain.com/passwordprotpost”

    Ok, this is frustrating. I’m using the K-2 theme and version 2.2.1 of WordPress, hosting with Dreamhost. This is the first time I’ve tried to use a password protected post and no matter what I’ve tried, it will not work.
    I’ve disabled all plugins, one by one. I made sure that my options at Dreamhost were set to “both https://www.mydomain.com and https://mydomain.com” and I’ve tried changin the options under wordpress from https://www.mydomain.com to https://mydomain.com and back again. I’ve also tried the wp-pass.php hack suggested above and that didn’t work either. If I sign out of my blog and go back, I see the password prompt. Enter password, and I see “waitng for https://www.mydomain.com/wp-pass.php” and then I get redirected right back to the original page, asking for a password. However, if I sign into the blog, I see the full post. There has to be a fix for this problem, seems like it affects quite a few users out there.

    I tried everything. Nothing worked. Until…

    I realized it wasn’t the plugins that were causing havoc. It was the change I made from ugly URI to pretty permalinks!!! Not sure if it’s any different for Unix hosts, but I am on an IIS [Windows] server, so I had to add a htaccess.php file to get the pretty URI to work. Because of this, Password Protected entries do not understand and keep refreshing the page and ask for the password.

    It WILL work if you still use the old URI, instead of the pretty URI, ie : https://www.yourblog.com/=p?123

    123 being your password-protected entry’s number. Each entry is given a number which is on your WordPress admin page under Manage > Posts.

    Comments are now working, provided you email your readers the old URI… they’ll be able to log in from there and make comments.

    For those on Unix hosting servers, there is a fix for this at: https://snipurl.com/1ogpe

    Now I’m having the same problem! Only none of the suggestions work for me. I even tried resetting the password on the page and still it only refreshes! Errrr. Help! I had to unlock all my password protected pages for now till I get this fixed and remove the content.

Viewing 9 replies - 31 through 39 (of 39 total)
  • The topic ‘Password-protected page doesn’t take password – just refreshes’ is closed to new replies.