• Resolved ateale

    (@ateale)


    Hey Guys

    I am trying to password protect a page.

    Once I publish the page and visit it on another machine I am UNABLE to successfully view the contents of the password protected page.

    I KNOW THE PASSWORD IS CORRECT.

    I searched this topic and it seems many others have had this issue a few months back, but no one has discussed whether they have fixed it or not.

    Any help would be brilliant!

    Cheers

    Adam

Viewing 8 replies - 16 through 23 (of 23 total)
  • Hi everybody

    I have exactly the same problem. When typing the password nothing happens, is just brings up the password entering page again. I have tried the “solution” with the ? but it didn’t work for me.

    My config is identical to Igoodwin3, with the blog in a subdirectory and the index.php is just pointing to that subdirectory.

    Any help is still appreciated!

    Patrick

    I’m having similar problems, but my exception is that the password protected page/post is still viewable WITHOUT A PASSWORD.

    I will try the aforementioned solution to see if that helps.

    depperson: did you find the way around this?

    I can enter the password at first, but from then on it does not seem to work. The page shows but the password section isn’t showing. It is like the password entry section only works one time. Help if you can. Anyone?

    sarmadhassan’s solution didn’t work for me either.

    But here’s some new info:
    – I’m on WordPress 2.5.1
    – password-protected posts work FINE with IE7
    – but, on FIREFOX 3.0, when I enter the correct password, it refreshes the same “enter password to see the post” page without ever displaying the content.

    Have we heard from anyone at WordPress on this issue yet?

    I have posted to the problem already on the German site, but now I have some deeper insight into the problem. In WordPress 2.5.1 the code in wp-pass.php is
    wp_safe_redirect(wp_get_referer());
    For IE 7 there is all correct, but in Firefox 2.0.0.14 and 15 I still have problems. My daughter just mailed to me that they have no problems with Firefox. This way I found wp_get_referer() to return an empty string and hence the redirection is not performed. This is due to unused PHP predifined variables. The application of these variables, such as HPPT_REFERER, strongly depends on the browsers user agent. I have installed the User Agent Switcher, but none of the preinstalled agents are able to read the $_SERVER [‘HPPT_REFERER’] , as IE 7 is doing. This way I made changes to the code above to

    $location = wp_get_referer();
    if ( $location == '' )
         $location = './';
    wp_redirect($location, $status = 302);

    Surely, his is another workaround, as the wp-pass.php may be used in quite another context.

    Of course, this solution is applicable for users having access to the code. On my daughters wordpress.com blog the URL is afterwards password submit https://…/wp-pass.php . The page displayed is empty and white. I usually delete the wp-pass.php letters from the URL and this way get access to the protected page I wanted to see.

    Hope some guys of WordPress may read the issue to resolve the problem.

    Good luck in your case!

    I’m having this problem too, only it DOESN’T work in IE6 or 7. I develop on Firefox, and it’s not working there either (v3). I’ve also tried the wp_safe_redirect(wp_get_referer() . ‘?’); solution, but that doesn’t work either.

    I’m using WP 2.6, but it didn’t work with 2.5.1 either.

    I don’t hold out much hope, but I’m thinking that if we keep the thread alive, maybe someone will have a look?

    On that subject, I think I’ll pop over and see about listing it as a bug.

    Just installed Firefox 3.0.1 and now everything works for me.

    I found the blank page after hitting submit to be a firewall issue. The particular machine had Computer Associates Personal Firewall on. Once I turned it off the screen came right up after putting in the password and hitting submit

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Page Password not working’ is closed to new replies.