Common Reasons You Can’t Log In
Not being able to reach the WordPress admin panel (yoursite.com/wp-admin) is one of the most frustrating situations, because you can no longer manage your site. The good news is that the causes are well known: a wrong or forgotten password, a browser cookie issue, a plugin or theme conflict, an incorrect site URL, or a lockout after too many failed login attempts. Below you’ll find the solution for each scenario, in order.
Solution 1: Reset Your Password via Email
In the simplest case, you’ve simply forgotten your password. Click the “Lost your password?” link on the login screen, enter your username or email, and set a new password using the link you receive. If the email never arrives, it’s likely that your server can’t send mail; in that case, try the methods below.
Solution 2: Change the Password from phpMyAdmin
If the email reset doesn’t work, you can change the password directly from the database. Open phpMyAdmin from cPanel, select your site’s database, and find the wp_users table. Click Edit on your user’s row, locate the user_pass field, select MD5 in the “Function” column, and type your new password into the value field. Once you save, you can log in with the new password. If you can’t connect to the database at all, the problem may be different; I also recommend reading my database connection error fix article.
Solution 3: Fix Cookie and Browser Issues
WordPress uses cookies for login. If you see the warning “Cookies are blocked due to unexpected output,” clear your browser cookies, try an incognito window, or use a different browser. This simple step usually resolves the problem.
Solution 4: Find a Plugin or Theme Conflict
If the login page opens but you get an error or a blank screen after logging in, the culprit may be a plugin. Using FTP, temporarily rename the wp-content/plugins folder to disable all plugins at once. If you can then log in, a plugin is to blame; rename the folder back and test the plugins one by one. If you see a completely blank page after login, it’s most likely a PHP error; my WordPress white screen of death fix guide focuses on exactly that scenario.
Solution 5: Correct the Site URL
An incorrect site address leads to a login loop or a redirect error. You can force the addresses to the correct value by adding the following lines to your wp-config.php file:
define('WP_HOME','https://www.yoursite.com');
define('WP_SITEURL','https://www.yoursite.com');
Solution 6: Create a New Admin via FTP
If nothing else works, you can add a temporary snippet of code to your theme’s functions.php file to create a new administrator account, then delete the code after logging in. This is a lifesaver when the user table is corrupted. If you’re new to FTP, you can start with my uploading files to your server via FTP article, which explains how to access files safely.
Frequently Asked Questions (FAQ)
Could my login URL have changed?
Yes, some security plugins change the login address (for example /login). If you disable that plugin via FTP, the address reverts to /wp-admin.
I got locked out after too many attempts — what should I do?
A security plugin may have temporarily blocked you. Wait a while, or disable the plugin via FTP.
Is MD5 safe?
It’s good enough for a temporary reset; after logging in, set a strong password from the dashboard.
Conclusion
Being unable to log in to wp-admin is usually resolved within a few minutes: first try resetting the password by email, then changing it from phpMyAdmin, then checking cookies and plugins. Even in the most stubborn cases, you can regain control by creating a new administrator via FTP.