Quick answer
Start with "Lost your password?" on /wp-login.php. If the reset email never arrives, set a new password with WP-CLI or phpMyAdmin. If the login page just reloads, your WordPress Address and Site Address do not match the URL you are using. If a security plugin has locked you out or hidden the login page, rename that plugin's folder in wp-content/plugins to switch it off.
The fixes below need one of two kinds of access: your hosting control panel, or FTP and SSH credentials for the server. If you have neither, get them from your host before you start, because every fix past the first one depends on reaching the site's files or database without the dashboard.
Take a backup before editing files or the database. Your host's backup tool works even when WordPress does not.
Match the Symptom
| What happens | Likely cause | Fix |
|---|---|---|
| "The password you entered is incorrect" | Wrong or changed password | 1, then 2 |
| Reset link requested, no email arrives | Site email is not being delivered | 2 |
| Login page reloads with no error | URL or cookie mismatch | 3 |
| "Cookies are blocked or not supported by your browser" | Browser setting, caching or a stray output error | 3 |
| "Too many failed login attempts" or a 403 page | Security plugin or firewall lockout | 4 |
| /wp-admin and /wp-login.php return 404 | The login page was moved | 5 |
| Asked for a code you cannot produce | Two-factor device lost | 6 |
| Login works, then a blank or error page | Plugin or theme error in the admin | 7 |
| Logged in but menus are missing | Account no longer has the Administrator role | 8 |
Fix 1: Reset the Password
Go to yoursite.com/wp-login.php and click "Lost your password?". Enter your username or the email address on your account. WordPress emails a link that lets you choose a new password.
Check the spam folder before deciding it did not arrive. Also confirm which email address the account uses. On older sites it is often a former employee's address or a developer's.
Fix 2: Reset It Without Email
If the reset email never arrives, the site probably has a wider email problem. Your contact forms may be failing too. Our guide to fixing WordPress email delivery covers that. For now, set the password directly.
With WP-CLI
If your host offers SSH, go to the WordPress folder and run wp user list to see usernames, then wp user update yourusername --user_pass="a-new-long-password". You can log in immediately.
With phpMyAdmin
Open phpMyAdmin from your hosting control panel and select the site's database. If you are not sure which one, the DB_NAME line in wp-config.php names it. Open the users table, which is wp_users unless your site uses a different prefix. Edit your row, type a new password into the user_pass field, choose MD5 from the Function dropdown, then save. WordPress accepts that value and replaces it with a stronger hash the first time you log in.
Fix 3: Stop the Login Loop
You enter the right password, the page reloads, and you are back at the login form. No error. This is almost always a mismatch between the address WordPress thinks it lives at and the address in your browser.
WordPress stores two addresses: the WordPress Address and the Site Address. If they say http:// while you browse https://, or include www while you do not, the login cookie is set for one address and checked on the other. You cannot change them in the dashboard while you are locked out, so set them in wp-config.php, above the line that says "That's all, stop editing!":
define( 'WP_HOME', 'https://www.yoursite.com' );
define( 'WP_SITEURL', 'https://www.yoursite.com' );
Use the exact address your site should load at. Once you can log in, you can correct the values under Settings, General and remove the two lines, or leave them in place to lock the setting.
If the addresses already match, clear the browser's cookies for the site and try a private window. If you see "Cookies are blocked or not supported by your browser", check that a caching plugin or CDN is not caching wp-login.php, which should never be cached.
Fix 4: Security Plugin Lockouts
Security plugins such as Wordfence, Solid Security and Limit Login Attempts Reloaded block an IP address after repeated failed logins. That protects you from password-guessing bots. It also locks out the owner who mistyped a password a few times.
Most lockouts expire on their own, often within minutes to hours depending on the plugin's settings. Wordfence also shows an option to email yourself an unlock link. If you cannot wait, switch off the plugin:
- Open your host's file manager, or connect by FTP.
- Go to
wp-content/plugins. - Rename the security plugin's folder, for example from
wordfencetowordfence-off. - Log in. WordPress skips the plugin because it can no longer find it, then deactivates it when you open the Plugins screen.
- Rename the folder back, reactivate the plugin, then add your own IP address to its allowlist.
If you get a 403 Forbidden page instead, the block may come from your host's firewall rather than WordPress. Ask your host to check whether your IP address was blocked.
Fix 5: A Login URL You Forgot
Plugins such as WPS Hide Login move the login page to a custom address, so /wp-admin and /wp-login.php return a 404 error. If nobody wrote the new address down, rename that plugin's folder the same way as in Fix 4. The standard login page comes back immediately. After you log in, the custom address is shown in the plugin's settings.
Fix 6: Lost Two-Factor Codes
If you changed phones and lost your authenticator app, use one of the backup codes the plugin gave you when you set it up. If you have none, another administrator can usually reset two-factor for your account from the Users screen. As a last resort, rename the two-factor plugin's folder, log in, then set two-factor up again with fresh backup codes stored somewhere safe. Our WordPress security checklist explains why two-factor is worth the trouble.
Fix 7: Errors After Logging In
If the login succeeds but the dashboard shows a blank page or "There has been a critical error on this website", a plugin or theme is failing in the admin area. Check the inbox of the site's administration email address: WordPress sends a recovery mode link when it catches a fatal error, which lets you log in with the faulty plugin paused.
Without that email, rename the whole wp-content/plugins folder to plugins-off, log in, rename it back, then reactivate plugins one at a time until the error returns. Our white screen of death guide covers the same process in more detail.
Fix 8: Missing Admin Rights
If you can log in but the Plugins, Appearance and Settings menus have gone, your account is no longer an administrator. Someone may have changed it, or a plugin may have damaged the role settings. With WP-CLI, wp user set-role yourusername administrator restores it. You can also create a fresh administrator with wp user create newname you@yourbusiness.com --role=administrator.
Take this one seriously if nobody on your team changed the role. Look at the full user list for administrator accounts you do not recognize. Unknown admins are a strong sign the site has been compromised, and the cleanup should start before anything else.
WordPress Login FAQ
Why can't I log in to my WordPress admin?
The common causes are a wrong or forgotten password, a password reset email that never arrives, a login page that reloads because of cookie or URL settings, a security plugin that has locked out your IP address, or a plugin that changed the login URL. Each one has a different symptom, which is the fastest way to tell them apart.
How do I reset my WordPress password without email?
If you have SSH access, run wp user update with your username and a new user_pass value using WP-CLI. Without SSH, open phpMyAdmin from your hosting control panel, find your account in the users table, and replace the user_pass value with a new password using the MD5 function. WordPress converts it to a stronger hash the next time you log in.
Why does my WordPress login page keep refreshing?
A login page that reloads without an error usually means WordPress set a login cookie for one address while you are browsing another, such as http instead of https or www instead of no www. Check that the WordPress Address and Site Address settings match the address in your browser exactly, then clear cookies for the site.
How do I disable a WordPress plugin without logging in?
Rename the plugin's folder. Using your host's file manager or FTP, go to wp-content/plugins and add something like -off to the folder name. WordPress can no longer find the plugin and deactivates it. Rename it back later and reactivate it from the Plugins screen.
What is the default WordPress login URL?
The login page is at yoursite.com/wp-login.php, and yoursite.com/wp-admin redirects there when you are logged out. If both return a 404 error, a security or login plugin has probably moved the page to a custom address.
Get Back In, Then Stay In
Lockouts tend to happen to sites where nobody has logged in for months, with an old admin email and a security plugin nobody remembers configuring. Our WordPress maintenance plans keep a developer on the site every month, and small fixes like this one are part of the plan.
Book a free call and we will help you get back into your dashboard.
Related reading: WordPress Security Checklist for Small Business • WordPress Not Sending Email? • Vortex Media Care Plans