WordPress FAQ

Ask a Question

How I solve login problems after installation with version 1.2 ?

Another summary of what’s around the forums.
Try to login after each step.

#1. Clear your cookies
Cookies are in your computer.
In windows they are in
C: / docs and setting / username / Cookies folder.

#2. Clear the temp cache on your computer

#3.Edit wp-login.php
Go to the “case ‘retrievepassword’:” section.

Just under the comment (In 1.2mingus, the line in question is number 204):

// redefining user_login ensures we return the right case in the email

Replace:

$user_login = $user_data[’user_login’];

with:

$user_login = $user_data->user_login;

#4. Your blog host should provide you with phpMyadmin access to your databases for you to do this.
Open phpMyadmin, and click on the users table in the left menu (it could be wp_users, or yourprefix_users)
Click “Browse”
Click on the edit button next to the admin user.
Delete whatever is in the password field.
Now go to the md5 hasher
enter your desired password, and copy the hash that it generates
Paste the hash in the password field for admin
Save the info in the database.
Login to Wordpress using “admin” and the password you used to create the hash.
A guide to doing this is at Podz’ site

#5. Secure HTTPS ?
Change the following line in wp-includes/vars.php from:
define(’COOKIEPATH’, preg_replace(’|http://[^/]+|i’, ‘’, get_settings(’home’) . ‘/’ ) );

To:
define(’COOKIEPATH’, preg_replace(’|https?://[^/]+|i’, ‘’, get_settings(’home’) . ‘/’ ) );

Be sure also to change the url in Options to https://
(Credit for this solution to mcnicold)

#6. Head over to Sexygirlgeek’s wp-login fix
Copy the all the text from
Save it as ‘wp-login.php’ (Credit for this solution to sexygirlgeek)
Upload it to your wordpress directory
(If you get an error about ‘headers already sent’ after doing this, go here: Solving the headers already sent problem.

==================

If these steps fail, please say this when posting at the support forums and give details of your server setup if you know it, mysql and php versions, OS and browser, WordPress version.

Originally compiled by Podz at the support forum

Filed under: —   2fargon 

16 Comments »

  1. Thanks, Podz that worked for me but I’ve since switched to Firefox and I can’t get into by Cpanel from there. I have to use IE in order to make any changes. Can you hehp? I use bloghosts, btw.

    Comment by mulligan — 8/1/2004 @ 9:22 pm

  2. You may also want to check out Sunshine’s fix on
    http://wordpress.org/support/6/5560/#post-5

    Comment by daigo — 8/18/2004 @ 2:26 pm

  3. #6 worked for me
    something is wrong with 1.2.1 as written as it won’t let you log in after the first time

    have I compromised anything with this fix?

    Comment by Don — 10/7/2004 @ 11:23 pm

  4. Or, if you have problems logging in and request the password with 1.2.1, not only does it apparently reset the password, but it then emails it in Base64.

    Comment by Diane — 10/9/2004 @ 11:56 am

  5. THANK YOU!
    I completed #s 1-4 and still could not log-in (by the way, the Podz link is dead).
    Then skipped #5 and did #6 and Wah-Lah! THANK YOU again … this was a most frustrating morning!

    Comment by heather — 10/16/2004 @ 9:30 am

  6. Thank you so much. I went down the list and nothing seemed to help until I got to solution #6, and then (POOF!) there it was… working like it should.

    Comment by David Lee Hemphill — 11/18/2004 @ 11:37 am

  7. I'’m running WordPress 1.2 hosted at psek.com and have tried accessing my blog using mozilla 1.73 and Internet Explorer 6 sp2 on XP. I’ve run through all these steps and cannot login. I get the following error “Error: wrong login or password.” I’ve tried registering as a new user and that user can’t login either. Oddly enough, I tried logging in on a Debian Linux box also using Mozilla 1.73 and I can login. Any help would be much appreciated.

    Comment by Joel — 11/22/2004 @ 2:55 pm

  8. I’ve tried all these and they don’t work for me. I’ve even tried registering as a new user, and that won’t let me login either. I’ve checked the passwords and usernames using phpmyadmin and they’re correct.

    I cannot log in to my WordPress 1.2 blog using Mozilla 1.7.3 or IE 6 SP2 on a Windows XP machine, or using a brand new Mozilla 1.7.3 install on a Windows 98 SE machine. Oddly enough, I can log in using Mozilla 1.7.3 on a Debian Linux machine.

    When I try to log in I get the following error “Error: wrong login or password.” after doing #6 or “Error: Incorrect password.” prior to that.

    Any further suggestions would be much appreciated.

    Comment by Joel — 11/22/2004 @ 3:12 pm

  9. I’ve tried all these and they don’t work for me. I’ve even tried registering as a new user, and that won’t let me login either. I’ve checked the passwords and usernames using phpmyadmin and they’re correct.

    I cannot log in to my WordPress 1.2 blog using Mozilla 1.7.3 or IE 6 SP2 on a Windows XP machine, or using a brand new Mozilla 1.7.3 install on a Windows 98 SE machine. Oddly enough, I can log in using Mozilla 1.7.3 on a Debian Linux machine.

    When I try to log in I get the following error “Error: wrong login or password.” after doing #6 or “Error: Incorrect password.” prior to that.

    Any further suggestions would be much appreciated.

    Comment by Joel — 11/22/2004 @ 3:13 pm

  10. I’ve tried all these and they don’t work for me. I’ve even tried registering as a new user, and that won’t let me login either. I’ve checked the passwords and usernames using phpmyadmin and they’re correct.

    I cannot log in to my WordPress 1.2 blog using Mozilla 1.7.3 or IE 6 SP2 on a Windows XP machine, or using a brand new Mozilla 1.7.3 install on a Windows 98 SE machine. Oddly enough, I can log in using Mozilla 1.7.3 on a Debian Linux machine.

    When I try to log in I get the following error “Error: wrong login or password.” after doing #6 or “Error: Incorrect password.” prior to that.

    Any further suggestions would be much appreciated.

    Comment by Joel Tone — 11/22/2004 @ 3:15 pm

  11. I’ve tried all these and they don’t work for me. I’ve even tried registering as a new user, and that won’t let me login either. I’ve checked the passwords and usernames using phpmyadmin and they’re correct.

    I cannot log in to my WordPress 1.2 blog using Mozilla 1.7.3 or IE 6 SP2 on a Windows XP machine, or using a brand new Mozilla 1.7.3 install on a Windows 98 SE machine. Oddly enough, I can log in using Mozilla 1.7.3 on a Debian Linux machine.

    When I try to log in I get the following error “Error: wrong login or password.” after doing #6 or “Error: Incorrect password.” prior to that.

    Any further suggestions would be much appreciated.

    Comment by Joel — 11/22/2004 @ 3:53 pm

  12. also can set the COOKIEPATH empty! I get it to work!!

    Comment by legend — 11/27/2004 @ 9:40 am

  13. Any new updates for Mozilla users? I too now cannot log in. :(

    Thanks and happy holidays! Jules

    Comment by jules — 12/16/2004 @ 10:50 pm

  14. Perhaps another addition for this page of solutions: For people using side by side directories it helps to change ‘home’ into ’siteurl’ in vars.php. It took me (with help of rboren) more than half a year to find this ’simple’ solution that works for me, instead of all the updates of loginfiles.

    Comment by Jack — 1/18/2005 @ 4:22 pm

  15. Jack, you just saved my life. Nothing else was working and I could not even retrieve a new password due to the bug described in http://wordpress.org/support/topic.php?id=19885 ! But changing “home” into “siteurl” in vars.php did the trick. You’re now my personal hero :)

    Comment by kwyxz — 1/27/2005 @ 9:43 am

  16. I had an even wackier issue related to this. Was having the problems cited above (WP 1.5). Solution #6 worked for some reason, but I still wanted to find the original root of the problem. Upon further investigation, I was looking at Jack’s solution when I discovered that my vars.php file was totally blank! How, I have no idea. replaced it with the original vars.php file and old Jed’s a millionaire. Might want to start there guys before resetting passwords and all that.

    Comment by ablewave — 3/24/2005 @ 2:44 pm

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <code> <em> <i> <strike> <strong>


Powered by WordPress | How to Burn a DVD