However, WordPress is a suitable blogging platform, but there are a lot of issues like WordPress login issue, admin login 404 error, plugins issue, etc. If you are a blogger, then you have mostly encountered the login issue. Many times people ask this same query “I Can’t login to WordPress dashboard.”
Fortunately, besides of login error, I never encountered any other issue. I am sure many of you have faced this same problem. If yes, then don’t worry, today I will show you why login issue arises and how to fix this problem.
It is tough to tell you the exact solution. But a few reasons are corresponding to your problem, and you need to select any of them which fits you.
So, let’s get started
There are mainly seven reasons that are responsible for this issue: –
- Unable to recognising your password (Maybe due to the wrong password)
- ‘yourdomain.com/WP-admin’ is not redirected to ‘yourdomain.com/wp-login.php’ page
- Cookies & cache issue
- Due to plugin failure
- Theme failure
- Corrupted ‘WP-login.php’ file
- Window Firewall
- Site URL redirecting
These are the most common reasons that may results in trouble in WP login. For fixing this error First look at the straightforward solutions. Enabling the cookies is the straightforward option first to check out. But if you don’t find the solution then check another option.
Ok, now let me tell you what you correctly do to fix this error.
Steps to follow to fix the WordPress login issue
- Clear your browser’s cache & cookies
- Send the request to reset the password by clicking ‘Lost your password?’
- Type ‘yourdomain.com/WP-login.php’ into google address bar.
- Check window firewall, because sometimes it blocks you from signing in to your WordPress dashboard.
- Deactivate all plugins
- Fix the theme failure
- Verify your ‘WP-login.php’ file
- Upload a new wp-login.php file
- Edit the user table from phpMyAdmin carefully
8 Solutions To Permanently Fix This WordPress login Issue
#1. Clear your browser’s cache & cookies
Cookies are the static files which are created by the website into your browser and cache helps them to load faster than usual. If you encounter login error then first clean your browser cache and enable the cookies and then recheck it.
If this works for you, then you have done.
A simple guide to clean browser’s cache & cookies.
#2. Send the request to reset the password
If the first option is unable to solve the issue, then try the second one. Just click on the ‘Lost your password?’. As you click on the hyperlink, you will be redirected to the WordPress lost password action page. Here you need to provide your preferable email address. After doing so, you will receive a link to your email inbox by which you can reset your password.
Now, again check your WP admin page whether it works.
Sometimes it does not work. In this case, you need to reset your password either by WordPress database or from function.php file.
#3. Type ‘Yourdomain.com/wp-login.php’ instead of ‘Yourdomain.com/wp-admin’
You find your login page by simply putting ‘yourdomain.com/wp-admin’ which is further redirected to ‘yourdomain.com/wp-login.php’ page. But sometimes it does not redirect to the require login page. In such case, replace ‘yourdomin.com/wp-admin’ with ‘yourdomain.com/wp-login.php’. However, this is not the permanent solution, but you can enter into your wp-admin page and make desired changes.
#4. Disable the window firewall
Many a time you would have noticed that you are unable to access an internet network. It is because firewall has blocked the system due to some network attacks like Trojan horse, worms or some other network issues. Similarly, when firewall detects any problem on your network, it will immediately block your request from WordPress login page.
So, disable the window firewall and try to login to your WordPress login page.
#5. Deactivate all the plugins
Many times I found the PHP errors due to installing a new plugin. But these errors easily be fixed by just deactivating all the plugins and activating all of them again. If WordPress login-panel shows you a blank page or any other PHP errors, then you need to disable all the plugins.
There are three ways to deactivate all the plugins
- Admin panel
- By removing them from /wp-content/plugins
- From WordPress Database
Now, let’s talk about one by one.
- Deactivating plugins from admin panel
Unfortunately, at this time you can’t access your admin panel due to login errors. But if all clear, you can disable all of your plugins by bulk.
- By removing them from /wp-content/plugins
It could be done either by FTP or by accessing panel. You can download ‘Filezila’ and connect your server to it or just open your cPanel and go to files and deactivate the plugins.
Steps to remove plugins form cPanel
- Login to your cPanel account. (You will have received username & password into your mail after purchasing hosting server.)
- Click on file manager
- Go to public.html file and click on the wp-content folder
- Rename the ‘wp-content/ plugins/’ folder and make the changes like this ‘wp-content/pluginsdisable/
- All the plugins will be disabled immediately.
- Deactivate all the plugins from the WordPress database
However, above method is right for disabling the plugins. But you could also deactivate plugins from here. Read more
#6. Fix the theme failure issue
Rename active theme folder with the help of FTP. After renaming, WordPress will revert to use the default theme
To find out the theme failure, you need to add some code written below.
<?php ini_set(‘display_errors’,’1′); ini_set(‘display_startup_errors’,’1′); error_reporting (E_ALL);include(‘index.php’); ?>
#7. Upload a new wp-login.php file
WordPress login issue may also be arises due to corrupted wp-login.php file. So, you need to upload a new login file.
But how you can upload a new wp-login.php file. For that, download the latest version of WordPress and then, download the WordPress on your computer in zip format. Now find out the wp-login.php file.
Yellow highlight colour shows the new login file. You need to upload this file into your “public_html” folder. Once uploaded, you can check wp-login page whether it is working or not.
If all else fails, you can also edit this login.php file and make changes as follow: –
Replace following code:
$user_login = $user_data[“user_login”];
With this code given below
$user_login = $user_data->user_login;
#8. Site URL redirecting
It happened to me when I migrated my site from WordPress to another WordPress site. During migration, the location of core WordPress site become changes which result in a login error.In WordPress > general setting, you have seen two types of URL one is Site address URL and the second one is WordPress address URL. “Site address URL” is the URL that people used to search for your site. “WordPress address URL” is the address where all of your WordPress files install. That means, both URL should be exactly. There is a straightforward trick that you can use to update URLs. For this, you need to go to wp-config.php file and add following code. Replace the example.com with your site URL.
There are also some other solutions that you may prefer. How to change the site URL
Some other additional reasons can generate the WordPress login issue. Apply these quick tips to overcome this issue.
- Try another browser to log in.
- Delete the .htaccess file form your root directory: – This file is used to set the URL redirections, instruct the bots and some other security purpose. If you find 404 errors or URL not found, then you can apply this solution. Sometimes there is a corrupted .htaccess file which may be responsible for this error. In this case, either you can delete the existing .htaccess file or re-upload the same file after downloading it into your computer. (Note: – Before removing this file keep a recovery of this file). Now, try to log in. If you succeed, then go inside setting > permalinks and click on save. It will generate a new .htaccess file.
- Put the same Site address URL and WordPress URL. (example: – Site address URL – http://www.example.com and WordPress address URL – http://www.example.com)
WordPress login error commonly occurs due to ridiculous nonsense like Site URL, cache and cookies issue, corrupted wp-login.php file. I have covered eight methods to fix this error.
I am sure; if you do the same, you make this issue fixed permanently.
If you have encountered a different issue that I have not mentioned here, then you can share that in the comment section.
If you like this article, then you may also want to share it on social media sites.
1 thought on “WordPress Login Issue: 8 Solutions To Permanently Fix This Issue”
Pingback: 7 Ways To Solve 'Error Establishing A Database Connection' In WordPress, 2nd is Very Important | World of WordPress