PHPMatters Help You Better Hosting Your PHP-based Sites
Top 8 Resolutions for WordPress Login Issue

Top 8 Resolutions for WordPress Login Issue

To manage a WordPress site, you have to log into the administrative panel to publish, edit and remove the posts and pages, to install and delete the plugins and themes, to modify the overall webpage design, to add the widgets to your front-end sidebar, to manage the users and their corresponding permissions and many more. However, due to some unknown reasons, it is possible that you are locked out of your WordPress back-end, your login page continues refreshing and redirecting you to the login screen, or, you login into the admin but only see an error message.

To be frank, this kind of error is really irritating and can be caused by various reasons. In this case, we have listed some common resolutions to deal with the WordPress login issue.

Resolution No.1 – Reset Your Login Details

As researched, around 45% of webmasters who encounter the WordPress login issue is due to the wrong login credential entered. In this case, if you cannot access your WordPress admin, you firstly need to figure out whether you have entered the correct username and password. Cannot remember the right information? You can reset the login details via multiple methods.

Click the Lost Password Link

In your login screen, you can find a special link that asks you whether you lost your password. Simply click it and enter your username or email address in the next page. Then, click the Get New Password button.

Get New Password

Now, you can check the inbox of your email, for WordPress will send you a message that contains a special link for password reset.

Use the phpMyAdmin

Here, you need to log into the phpMyAdmin and target the right database for WordPress installation. From all the listed tables, you need to find the wp_users one and click the Browse button.

wp_users Table

Then, you can click the Edit button to change the values of user_login and user_pass columns.

Change Login Details

After changing your username and password for WordPress login, do not forget to clear the cookies and caches stored in your current browser.

Resolution No.2 – Deactivate the Wrong Plugins

It is possible that your installed plugins may interface with your login practice. In this case, you need to figure out the conflict ones and remove them from your site.

To do this, you firstly need to find your Plugins folder using either the File Manager or your FTP client. Then, you can rename this folder to anything you like; thus, all the plugins installed on your site will be deactivated for they cannot be recognized by WordPress. Personally, we do not recommend you to delete this folder.

Change Plugins Folder Name

Now, you can go to your login screen to figure out whether you can access your admin properly. If not, it means the problem does not lay on your plugins. If yes, you need to find out the wrong one. To do this, you firstly should recover the folder name to the right one to get all the plugins activated.

After that, you can find them from the Plugins section in the WordPress admin. Simply deactivate them one by one to grab the wrong plugins that cause the login issue.

Resolution No.3 – Revert to the Default WordPress Template

Just like the plugins, your installed templates may also have some conflicts that cause the login issue. In this case, you need to deactivate all the themes you have downloaded or purchased from the third parties. The process is just the same as deactivating your plugins. You simply need to find out your Themes folder and rename it. After that, your website will go back to the default template.

Now, you can try the login process. If succeed, it means that your current template is the trouble maker, so you need to change your theme to another one.

Also, it is possible that you already have used the WordPress default theme but still encounter this irritating issue. In this case, you’d better download a fresh copy of this theme, for the previous one might have been corrupted.

Resolution No.4 – Upload a New Login File

The login process of WordPress is controlled by the wp-login.php file. Therefore, if this file is corrupted or is uploaded in a wrong way, you cannot log into the admin panel properly.

To make sure that this file is error-free, you simply need to remove your current wp-login.php file and upload a fresh copy from a new round of WordPress download.

Here, you’d better have a look at this file to check out the part showcased in the following screenshot, and make sure that you have the highlighted line added into your new file.

wp-login File

Resolution No.5 – Match WordPress URL with Site URL

Here, you need to note that the WordPress URL indicates the location of your WordPress files and the Site URL is the online address of your content. If these two URLs are not the same, WordPress cannot authenticate your login credential properly.

In fact, you can configure these two options from the General Settings of WordPress. But now, as you cannot access the admin, you need to leverage the power of phpMyAdmin and go through the below steps.

  • Log into phpMyAdmin and click the database of your current WordPress site.
  • Look for the wp_options table and click the Browse button.
  • Find the siteurl section from the option_name field, and click the Edit icon.
  • Modify the value of the siteurl to make it exactly the same as that of home. Pay attention to the utilization of “http://”.
  • Click the Go button to save the changes.

Now, you need to check your wp-login.php file. If you find the below highlighted lines, simply remove them.

SiteURL Coding

Resolution No.6 – Generate a New .htaccess File

If you are facing the login page refreshing issue, the problem may lay on the corruption of .htaccess file. In this case, you’d better delete your current file after backing up it from the root directory. After that, you can try logging into your admin. If you succeed in entering the admin, it means the .htaccess file interfaces with the login process.

Now, as you need a new copy of .htaccess file, you can go to the Permalink Settings. After figuring out that everything is fine, you simply need to click the Save button. Then, a new file can be generated automatically.

Resolution No.7 – Disable Your Firewall

If you have enabled the firewall to better secure your website, you may encounter this issue. This is because some firewalls – such as eTrust Personal – may block the admin login. In this case, you’d better disable the service and try to log into your admin again.

Resolution No.8 – Fix the White Screen Error

If you encounter the White Screen Error on your WordPress site, you might be locked out from your admin panel. To resolve this issue, you firstly need to increase your memory limit via the wp-config.php file. We recommend you to open and edit it using the File Manger. Then, adjust the memory to the maximum volume allocated from your web host. Generally, the value is 128 MB.

Also, you can utilize the debug function of WordPress to resolve this issue. The detailed information and some other useful tips for this special issue can be found in this how-to tutorial.