• Just did a completely fresh install of 1.2.1 (as in…entirely different host, database, ect.) and still having problems with getting password protected posts to work. WordPress is installed in a subdirectory (“wordpress”). Copies of the index.php file are in both the root (where the blog would be) and in the wordpress subdirectory.
    Password works in subdirectory but not in the root.
    I’m assuming this is a limitation of how the password is set, but I don’t know how to fix it. Can anyone confirm that the problem with password protected entries is indeed the result of installing in a subdirectory, and if so, how to fix it? (I’m assuming it’s a change to wp-pass.php.)
    Edit:
    Password: test
    https://valentine.000k2.com/ – does not work
    https://valentine.000k2.com/wordpress/ – does work

Viewing 5 replies - 1 through 5 (of 5 total)
  • You also need to change your blog address under options > general then logout and login again.

    I am having the same problem getting protected posts to work. I had posted here but no help on it yet. Any suggestions on fixing this problem would be greatly appreciated. ??

    Valentine, this is indeed a bug. Go to line 8 of wp-pass.php and after the 60*24*30 part add
    , '/'
    before the parentheses. Let me know if that helps.

    Thread Starter valentine

    (@valentine)

    Allusion,
    You are amazing. This problem has plagued me for months; thank you for finally providing a solution!

    idowens

    (@idowens)

    Matt, thanks so much for posting that quick fix to the problem…seems to happen when the index is in root and the rest of the files are in a subdir. I’m sure its been worked out in the new alpha…I, myself, ran into the problem for the first time tonight as tonight was the first time I had attempted to use a password, and was able to remedy it quickly because of your post. Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Password Protection in 1.2.1’ is closed to new replies.