WordPress is the ideal platform for any type of website due to its flexibility and intuitiveness. Additionally, WordPress is completely free and open-source. However, as with everything, issues sometimes arise. The best thing about this platform is the community, which is impressive in its size and knowledge. No matter the issue at hand, whether you don’t know how to find your WordPress login URL or have trouble connecting to it, someone is always there to help or already had the same issue and knows the solution.
One of the most common issues users face with WordPress is the inability to login due to various reasons. Today we will address the most popular causes for this login issue and their solutions. This way you will be able to narrow it down and solve this easily when it happens. Let’s dive it!
There are several scenarios in which you cannot login to your WordPress website. Here are a few of them:
Forgot or lost your password
In case you forgot or lost your password you can easily recover it by clicking on ‘Lost your password?’ Once you click on this button you will be redirected to a page where you need to enter your username or email for which you are requesting a new password. After you enter your username or email address you will receive an email with instructions and a URL for creating a new one.
To login to your WordPress website you usually use yourdomainname/wp-admin which in turn redirects you to this url yourdomainname/wp-login.php, but once in a while this might not work. To solve this instead of using wp-admin you can use wp-login.php, which is basically the same thing.
Deactivate your plugins
It is common knowledge that occasionally plugins interfere with one another, or themes causing various errors, which can prevent you from logging into your account. The easiest way to deactivate them is through your WordPress dashboard > Plugins > select all > deactivate. If you do not have access to your WordPress dashboard, you can delete or rename their folder name to something else from your server. You will find the plugins inside the folder /wp-content/plugins. This can be achieved either from cPanel or FTP using free software such as FileZilla.
Activate a default WordPress theme
A theme can also cause various issues or errors, and when this happens it’s best to deactivate it and reactivate one of the default WordPress themes, Twenty Seventeen for example. You can do this either from your dashboard > Appearance > Themes, or FTP by deleting or renaming the folder with your current theme to something else. This will force WordPress to revert to its default theme. If your login page works once you did this, then it is clear that your theme was causing the issue and you need to contact their support team immediately.
Corrupted wp-login.php file
Whether you deleted it, it was corrupted, or made any type of change to wp-login.php and it no longer works the best solution is to upload it again. In order to do this, you need to first create a backup for your WordPress and then download WordPress again from here.
Once you did this, unzip the WordPress archive and locate the wp-login.php file. Once you have it, simply copy and paste it in your WordPress install. Check the login page and see if it works. If it still does not work, open wp-login.php and search for this line of code:
$user_login = $user_data["user_login"];
Highlight it and replace with this one:
$user_login = $user_data->user_login;
If this does not solve your issues, then it’s possible that the issue was not caused by your wp-login.php file and you need to do more debugging.
Wrapping it up
As annoying as it might be, issues tend to arise no matter how good the platform, themes, and plugins are. This is why it’s better to be prepared for anything. The 5 issues I have presented above are the most common ones and have really easy fixes. Please let us know if there are any other common WordPress login URL issues we have not covered and we will feature them in! If this all sounds far too complicated for you to handle yourself, you can always subscribe to a WP Buffs WordPress maintenance service plan so that they can take care of this, while you spend your time on what matters most.