Solutions: Login problems
-
I’ve collected it all again so that it all stays together – if I have missed anything, let me know and I will add it here.
==================
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 https://bfl.rctek.com/tools/?tool=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 here: https://www.mfr.f2s.com/phpmyadmin/
#5. Secure HTTPS ?
Change the following line in wp-includes/vars.php from:
define('COOKIEPATH', preg_replace('|https://[^/]+|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 https://www.sexygirlgeek.com/share/wp-login.phps
Copy the all the text from <?php to ?>
Save it as ‘wp-login.php’
Upload it to your wordpress directory
(If you get an error about ‘headers already sent’ after doing this, go here: https://faq.wordpress.net/view.php?p=7
(Credit for this solution to sexygirlgeek)
==================
If these steps fail, please say this when posting and give details of your server setup if you know it, mysql and php versions, OS and browser, WordPress version.
- The topic ‘Solutions: Login problems’ is closed to new replies.