Forums

Password Protected Page not asking for Password (8 posts)

  1. databell96
    Member
    Posted 2 years ago #

    I'm creating a press/PR page for a client. Have Visibility set to Password protected and have my password in place. Yet, I go to the page and the password prompt fails to show up. Bug in 2.9.2?

    http://www.pattyspizza.com/press/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you cleared your cookies and browser cache in between visits to this page?

  3. databell96
    Member
    Posted 2 years ago #

    Yes. And I've tested it in multiple browsers on multiple computers. Why? Are you getting the prompt?

  4. Mark / t31os
    Moderator
    Posted 2 years ago #

    I see the post to.. no prompt, nothing..

    Typical questions to follow then...

    Do you have plugins installed, if so have you tried disabling them to see if this effects functionality?
    Have you tried switching theme to rule out a theme specific issue?
    Were you using password protected pages prior to the upgrade without this problem?

    Obvious things i know, but still worth asking... ;-)

  5. databell96
    Member
    Posted 2 years ago #

    Yep. It's the theme. I switched to the default and the password prompt came up. So where can I go to fix this or even look for it in my current theme?

  6. Mark / t31os
    Moderator
    Posted 2 years ago #

    Compare the differences between the two..

    single.php at a guess..

  7. databell96
    Member
    Posted 2 years ago #

    Well, I compared single.php but there's nothing there in either one about password protection. I did look for certain things in the password form itself to get a clue and found it's a function called get_the_password_form which is in my theme's comments-popup.php script like this:

    // this line is WordPress' motor, do not delete it.
    $commenter = wp_get_current_commenter();
    extract($commenter);
    $comments = get_approved_comments($id);
    $post = get_post($id);
    if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
    echo(get_the_password_form());
    } else { ?>

    Problem is it's also in the default themes' as well. So this isn't helping at all.

  8. databell96
    Member
    Posted 2 years ago #

    OK, I'm starting to get an idea of the issue. It's my Template. In other words, the template you select from the dropdown menu on the right hand side of each page you edit in the wp-admin. Go to default and you're fine. Go to the one I set up and you're not. But I need that to display a page of posts from this category I set up using the pageofposts.php example from support. Now the question is why do you lose the password protection capability and how do you get it back?

Topic Closed

This topic has been closed to new replies.

About this Topic