Forums

Locked out of admin login?? (13 posts)

  1. shadow
    Moderator
    Posted 5 years ago #

    I seemto be totally locked out of my login. No passwords work and on one account it won't allow the user to logout.
    I have tried changing my password in phpmyadmin but not making any difference.
    The login panel has a permanent 'Error: wrong login/password' message.
    Any attempts send me to this adress which looks a bit odd to me
    http://www.os42.com/wp-login.php?redirect_to=%2Fwp-admin%2Fpost.php
    If anyone has any ideas it would be very nice to hear from you :)

  2. podz
    Support Maven
    Posted 5 years ago #

    I'd clear all the cookies, then try the new pw again ?

  3. Anonymous
    Unregistered
    Posted 5 years ago #

    Well that cleared the error message but still will not allow me to login.
    Not sure why this has happened now. I haven't been playing with anything which would affect it really.
    Any other ideas Podz? Thanks for your help too :)

  4. podz
    Support Maven
    Posted 5 years ago #

    Hmm........good disclaimer :)
    You could check the site_url and home values in the db ?
    http://www.tamba2.org.uk/wordpress/site-url/

  5. shadow
    Moderator
    Posted 5 years ago #

    Mmm... that all looks fine too. I cannot login with any user login/pword either so it is not restricted to just the one....
    It's all very weird :(

  6. podz
    Support Maven
    Posted 5 years ago #

    It redirects me as well.
    You still running 1.2 ?
    Try uploading the wp-login.php from 1.2.1 ? (Just rename the existing one to OLD or something so it can be reverted if needed)

  7. shadow
    Moderator
    Posted 5 years ago #

    Yep still on 1.2.
    Tried loading the 1.2.1 file but still cannot login.
    I am really not getting this :(

  8. podz
    Support Maven
    Posted 5 years ago #

    No joy.. seen the error.
    I'm asking...

  9. podz
    Support Maven
    Posted 5 years ago #

    Shadow - msn ?

  10. podz
    Support Maven
    Posted 5 years ago #

    If this happens, check that both 'siteurl' and 'home' values are correct - no filenames must be in those values, just directory names:
    www.example.com/blog
    www.example.com
    are both correct
    www.example.com/blog/index.php
    www.example.com/index.php
    are both incorrect.

  11. shadow
    Moderator
    Posted 5 years ago #

    Thanks yet again for your help Podz :)

  12. Anonymous
    Unregistered
    Posted 5 years ago #

    Ha - I just went through the same kind of problem this morning. I reformatted my hard drive, and didn't realize (until I went to post) that I couldn't remember my WP admin password. My own stupid fault.
    First I tried WP's "lost password" function, but it didn't work. I received an email saying that "user name [blank] 's password has been changed to [xyz]," where [blank] indicates a blank space, and [xyz] indicates the password. I tried this new password, but it didn't work. And checking the mysql database entry for admin in the wp_users table, I found that the "lost password" function was not, in fact, changing admin's password.
    Next, I tried to change the password by manually updating the user entry, using mysql's built in "password" function. However, as you've already discovered, WP doesn't use the same password hash that mysql does, so this doesn't work.
    After taking a break and wandering around my apartment in a frustrated daze, I had a tiny flash of brilliance. I crossed my fingers, and registered a new user "newuser" with password "newpass". I then logged into mysql, copied the password hash for "newuser", then manually updated the admin user's entry with newuser's password hash:
    update wp_users set user_pass='newuserpasswordhash' where user_login='admin';
    Worked like a charm.
    - Erika

  13. Anonymous
    Unregistered
    Posted 4 years ago #

    I had the same problem - why won't the script update the password in the table??
    You can also use the hasher tool found at http://bfl.rctek.com/tools/?tool=hasher
    I updated from the command line my password with:

    $ mysql -p wp-database
    mysql> update wp_users set user_pass="[enter hash here]" where id=1;
    mysql> exit

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.