If you are trying to know the solution of these kinda problems you are at the right place.
I have faced this problem a few days ago. This is really horrible if there is an idea to write on but you can not log in into your blog. There are some reasons behind these.
6 Common WordPress Login Issues
- Lost or Forgotten Password
- Cache and Cookies
- Plugin Interference
- Theme Issues
- Corrupted Login File
- Redirected WordPress or Site URL
- Change your password.
- Clear your browser cache and cookies.
- Deactivate your plugins.
- Revert back to the default theme.
- Replace your login file.
- Define WordPress and site URLs.
You know how to change your password, clear your browser cache and cookies and deactivate your plugins.
But all you need to know is how to revert back to the default theme, replacing your login file and define WordPress and site URLs.
Here, I am going to elaborate about these three.
Revert Back To Default Theme
Determine if a theme issue is causing your login woes by reverting back to the default theme. To do this, temporarily rename your active theme’s directory so that WordPress doesn’t recognize it.
You can do this by accessing the wp-content/themes folder using an FTP client, finding the active theme’s folder, and renaming it. This will force WordPress to revert to the default theme.
Also Check Best WordPress Theme In 2019
Replacing Your Login File
To check if this is the problem you will need to replace the file with a new one.
- Backup WordPress before deleting your login file.
- Locate your wp-login.php file with an FTP client and delete it. You’ll find it in the directory where you’ve installed WordPress.
- Next, download the latest version of WordPress and locate the wp-login.php file in the new download.
- Copy this file in place of your deleted file.
- Open the new login file and search for “redefining user_login.”
- Just below a PHP comment beginning with that phrase find and replace code as shown in the snippet below.
Redirected WordPress or Site URL
After backing up your site, access the wp-config.php file with an FTP client and add the following code:
Making sure to use the WordPress address URL for
WP_HOME and the site address URL for
WP_SITEURL. By default, both addresses will be the same. However, if you’ve given WordPress its own directory, the WordPress address URL will include the directory in which you’ve installed WordPress.
Save the updated wp-config.php file and upload the modified file to the server using your FTP client. If you can now successfully log in, then you’ve identified the problem.
I won’t make it longer anymore. If you tried all of these and finding no solutions then you can contact your hosting provider company. They will definitely show you a way out of it.
Generally, whenever I face this kinda problem, I contact my hosting provider. They are always there. I don’t need to take any headache regarding this.
Also check Best and Cheapest Hosting Providers
If you like this post. Please feel free to share and comment.