Email VPS
Troubleshooting and repair

Cannot log in to the WordPress admin, how to find the cause

Logging in to the WordPress admin fails

When you cannot reach the admin, the site is effectively frozen. Content cannot be corrected, updates cannot be run and form messages cannot be read. The symptom is always the same but there are a handful of causes, and what happens on screen after you submit the form tells them apart.

In short

  • If the form returns you to the login page with no error, it is almost always cookies or the address settings.
  • If the page is blank or shows an error, it is a plugin or a theme.
  • If you see 403, the block is on the server rather than in WordPress.

1. Look at what exactly happens

What you seeWhat it usually means
Back to the login page with no errorCookies or the address settings
The browser complains about too many redirectsThe address settings contradict each other
A blank white pageA plugin or a theme is crashing
403 ForbiddenDirectory protection or a blocked IP address
Wrong password although it is correctThe username, a password reset or a break-in

2. Clear the cookies

WordPress signs you in with a cookie. If an old cookie is broken, the login succeeds but the next page load does not recognise you and you land back on the form. Delete the site cookies or try a private window. This one step solves a surprisingly large share of cases.

3. Check the address settings

If the site address and the WordPress address are in different forms, one with www and the other without, the login keeps redirecting to the wrong place. The same fault often shows up as a redirect loop, covered in our guide on too many redirects.

4. Rule out plugins

If the admin is blank or throws an error, the cause is nearly always a plugin. Open a file connection and rename the directory wp-content/plugins temporarily to plugins-off. Then load the admin once, so WordPress notices the missing files and marks the plugins inactive. Restore the name and enable them one at a time to see which one breaks the admin. Making the connection is covered in our guide to FTP and SFTP.

5. If the answer is 403

Then the server blocks you before WordPress is even involved. The admin may be protected separately with a password or an IP restriction, or your own address has ended up on a block list after too many login attempts. This is covered in our guide on 403 Forbidden.

6. If the password is rejected

Try the username instead of the email address and the other way round. If neither works and the reset message never arrives, see our guide on a password reset that does not work. If the account stopped working suddenly and nobody changed it, read our guide on a hacked website, because the first thing an intruder does is create an account of their own and remove the old ones.

What not to do

Do not reinstall WordPress to get back in. A fresh install does not restore access and it can write over the content. Take a backup before you touch files, see our guide on backing up a site.

If you would rather not do it yourself

We restore access to the admin and find out what blocked it, whether that was a plugin, the address settings or a server side block. If the cause is a break-in, we say so rather than simply opening the door again.

See how we repair a broken site »