Unable To Login WordPress Admin Dashboard- Fix it Now


Are you currently unable to login to your WordPress admin dashboard? If yes, no need to panic! Depending on the issue you are having, there are a few simple steps you can take to get back to your dashboard.
In this guide, I will be going over the common WordPress login issues and their fixes.

Common WordPress Login Issues

1. When password reset is not working

Solution 1: Reset password by editing your database using PhpMyAdmin.
Solution 2: Reset password by editing functions.php file.

2. Problems caused by cookies

Solution: Enable cookies and clear cache.

3. When you are shown a blank page or get a PHP error message

Solution 1: Disable plugins.
Solution 2: Deactivate your currently active theme.

4. When url shows 404 not found, or URL redirects, or page refreshes

Solution 1: Disable .htaccess file and create a new one.
Solution 2: Update your site URL.

How to fix problems logging in to your WordPress Admin Dashboard

Each of these issues and their solutions is clearly explained below.

1. When password reset is not working

  • If you cannot login to WordPress admin dashboard, one of the first things you usually try to do is reset your password.
  • If you have not already tried this, you can reset your password by clicking “Lost your password?” on your admin login page. You will be taken to a page where you can enter either your username or the email you use for your WordPress blog, and an email containing a new password will be sent to you.
  • However, if you have tried to reset your password this way but not received an email, then you need do a manual password reset.
  • You can do this by “editing your database using PhpMyAdmin” or “editing your functions.php file”
Reset password by editing your database using PhpMyAdmin
In some cases, the best way to get back into your WordPress admin dashboard is to manually edit your database and change your password.
This process is quite easy if you have access to PhpMyAdmin in your web host. We recommend that you back up your website before performing the steps below:
  • To start, log in to your site admin panel (e.g. cPanel). Ask your web host for the login details and link if you do not have them.
  • In cPanel, scroll down to the databases section and click on PhpMyAdmin.
  • Click on Databases to view all databases in your account.
  • Click on your WordPress database.
  • Click on the “users” table. This is usually named “wp_users”, unless you specified a different prefix when installing WordPress. In that case, it will be “yourprefix_users”.
  • Click the edit button next to the admin user.
  • Enter your new password in the “users_pass” input box, select md5 from the function dropdown list, and click Go.
  • Go on and log in to your WordPress admin dashboard with the new password you entered.
Reset password by editing functions.php file
A second way to manually reset your password is by editing the functions.php file in your active theme to include the wp_set_password function. You need FTP access to use this file. Please read our step by step guide to resetting your password using this method.

2. Problems caused by cookies

Enable Cookies and Clear Cache
  • Cookies are small files stored in your computer by websites you visit. You can prevent sites from storing these files by disabling cookies.
  • However, since WordPress login needs cookies to function properly, if they are disabled, you will have problems logging in to your WordPress admin dashboard.
  • Many WordPress login problems have been traced to issues with cookies and cache. Since this is very easy to fix, it makes sense to try this option early on to see if it is the source of your login issue.
  • First, check to ensure cookies are enabled in your browser. If not, enable it.
  • After enabling cookies, you can clear browser cache and cookies by pressing ctrl-shift-delete in Windows, or command-shift-delete in Mac. In the popup page, ensure only cookies and cache are selected and click the button to clear.
  • Now, try to login to your WordPress admin dashboard.

3. When you are shown a blank page or get a PHP error message.

Many WordPress users have reported these kinds of problems when they try to log in, and they have often been traced to a coding error in a plugin or theme.
The solution to this is to disable your plugins, or disable your currently active theme.
Disable plugins
This step and all others below will require you to access your site via FTP. Please watch this video to see how to use Filezilla FTP client to access your WordPress files.
The simplest way to check if plugins are the cause of your login problems is to deactivate them. But since you cannot login to do this, you have to deactivate them by renaming the plugins folder so WordPress no longer reads it.
To do this, access your WordPress files via FTP.
After successfully accessing your files, Filezilla will display your site files and folders on the bottom right. Locate the folder containing your WordPress blog and double-click it. If your blog is in your main domain (e.g. blog link is www.domainname.com), this folder should be “public_html”. If it is in a subdomain (e.g. blog.domainname.com), then you should see a folder named after the subdomain.
  • Search for “wp-content” folder and double-click to open it.
  • Next, search for the plugins folder. Right click on it, select Rename, and change the name of this folder so WordPress no longer reads it
  • Now try to login to your WordPress dashboard.
  • If you are able to log in, this means one of your plugins is the cause of your WordPress login issues.
Deactivate your current theme
WordPress themes are another common cause of login errors. To check if this is the case on your site, you have to deactivate your theme by renaming the theme folder so WordPress no longer reads it.
  • To do this, access your WordPress files using Filezilla or any other FTP client.
  • Next, search for your wp-content folder and double-click to open it. In this folder, search for your themes folder and double-click to open it.
  • Finally, rename your currently active theme folder so WordPress reverts to the default theme, and try to log in again.
  • Please read this detailed guide to see how to perform these steps.
  • If you are able to log in after this, it means the issue is with your theme and you may contact the theme provider, or choose to use another theme.

4. When url shows 404 not found, or URL redirects, or page refreshes.

In some cases, you may type in your WordPress login URL correctly but be taken to a “404 not found” error page, or redirected to another page. Or you may get to the correct page but it simply refreshes when you try to log in.
You can usually fix this problem by “creating a new .htaccess file” or “updating your site URL.”
Disable .htaccess file and create a new one
  • First, you want to confirm if .htaccess is the source of your problem, and you can do this by renaming this file to disable it, and trying to log in after that.
  • To rename .htaccess, access your website using FTP.
  • Double click “public_html” folder to open it.
  • Search for the .htaccess file. Right click on it, select “Rename” and change the name to .htaccess.old
  • Now go to your login URL and try to login to your WordPress admin dashboard.
  • If the problem is resolved, you can create a new .htaccess file from your WordPress dashboard. Simply go to Settings > Permalinks and click Save Changes.
Update your site URL
If the step above doesn’t fix your login issue, then you may need to manually set your site URL.
There are several ways to set your URL but the easiest is to edit your wp_config file.
  • To do this, access your site files via ftp.
  • Next, locate the folder containing your WordPress file and double-click to open it. If WordPress is installed in your primary domain (e.g www.yourdomain.com), then this folder would be public_html.
  • Scroll down to find wp_config.php file. Right click on it, select View/Edit and permit FileZilla to open it using your local text editor (if that popup appears).
  • Add these two lines of code (replace example.com with your domain), and save the file:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
  • After clicking save, FileZilla will ask you if you want to upload the edited file. Select “Yes” and wait for the upload to complete.
  • Now go to your site URL and try to log in.
  • After clicking save, FileZilla will ask you if you want to upload the edited file. Select “Yes” and wait for the upload to complete.
  • Now go to your site url and try to login.

Comments