While WordPress is an incredibly powerful platform, it does come with its share of occasional frustrations. One potential source of grievance amongst WordPress users is the inability to log into the WordPress admin area. There are many reasons why WordPress login issues might arise, some more common than others.
This article will highlight some of the most commonly experienced login issues, explain why they might occur, and offer appropriate solutions.
This is an obvious one, of course, but nonetheless an important problem. If you change your password regularly to help with site security, it’s very easy to forget or lose track of your current password. While WordPress has a built-in feature to help you reset your password, there are a number of factors that can derail that process. As a result, there are actually quite a few different potential solutions that you may have to run through.
If you’ve lost or forgotten your password, first try using the built-in recovery feature. Click on Lost your password? on the login screen and you will be prompted to enter your email address. WordPress will send you a link via email which you can use to create a new password.
If for some reason, you can’t use this method, there are two other tricks you can try.
First, if you’ve used multiple browsers or devices to log into WordPress, check to see if any of those browsers or devices are still logged in. Then access the admin panel and change your password.
If that doesn’t work, your next best option is to update your password directly in the WordPress database. If your site is hosted on a Linux server, you will usually have access to phpMyAdmin. However, before you edit your WordPress database, create a complete backup. Then, proceed on to the following steps:
user_logincolumn and select Edit next to that row.
user_passfield and type a new plain text password into the Value field, replacing the existing symbols and characters.
At this point, you should be able to login using the new password you just assigned to your WordPress username with phpMyAdmin. However, if you’re still locked out and unable to recover your password, there are several additional options you can try.
The browser cache refers to the temporary files stored on your web browser when you access a web page. If your cache is not updating properly you may be viewing older versions of some of the files that support WordPress.
It’s possible for a plugin to interfere with the login process. A plugin may not have been updated properly, or there could be a conflict between two or more of your plugins.
The first thing you need to do is confirm that the issue is being caused by a plugin. You can do this by deactivating all of your plugins or by temporarily renaming the plugins folder.
If you have access to your admin panel, simply go to the Plugins menu and deactivate all plugins. Make sure to back up your site first. Select all of the plugins, go to Bulk Actions and select Deactivate.
If you don’t have access to the admin panel you can rename the plugins folder. Use a File Transfer Protocol (FTP) client, locate the wp-content/plugins folder, and rename it temporarily.
WordPress won’t recognize the folder and will deactivate all plugins.
Once you have deactivated all plugins, try logging in. If you’re now able to log in, you’ve confirmed that a plugin is causing the issue. If so, you’ll need to troubleshoot to discover which plugin is causing the issue. You can take a look at the “Check Your Plugins” section in this blog post for more detailed instructions.
Theme issues can cause login problems, especially if your theme includes a custom login page. This issue is most likely to rear its head when a problematic theme update is installed, or when the WordPress core is updated producing a theme incompatibility.
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.
Now, try logging in to confirm that the theme is the issue. Also, take a look at the “Check Your Theme” section of this post for more details.
If the WordPress login file, wp-login.php, is corrupted, deleted, or misplaced, you won’t be able to access the login screen at all.
To check if this is the problem (and to simultaneously resolve it) you will need to replace the file with a new one.
If the login file was the issue, you should now be good to go.
The WordPress address URL identifies the location where WordPress is installed while the site address URL identifies where your website should resolve. If either is wrong, it can cause all sorts of issues, including the inability to access the admin area to correct the mistake.
This can happen if you have recently migrated WordPress, altered the location of the WordPress core by moving WordPress to a subdirectory, or it can simply be due to an errant keystroke while working with your WordPress database.
There are lots of potential solutions when it comes to fixing the WordPress address and site address URLs. However, there is a simple (albeit temporary) trick to enable you to confirm that you do in fact have a URL issue on your hands.
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 it’s 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.
However, this is a temporary fix so you should delete the added code and update the
WP_SITEURL values in your site’s database using another method to correct the issue permanently.
Having WordPress login issues can be the source of much frustration and result in countless hours of troubleshooting. As you can see, there are lots of potential causes of login problems so it can be difficult to know where to start.
Let’s quickly recap the solutions to run through if you’re having issues: