WordPress GuideErrors → Locked Out of WordPress

Locked out of WordPress? Here’s how to fix it

Image

It’s a sinking feeling—typing your WordPress login, hitting Enter, and getting nothing. Or worse, seeing an error message you don’t understand.

Don’t panic. Whether it’s a forgotten password, a plugin conflict, or something more technical, there’s always a way to get back into your site. Let’s walk through every possible fix, starting with the easiest.

Why you might be locked out of WordPress

Before trying different solutions, it helps to know what may have caused the issue. Common reasons include:

Let’s look at how to fix them.

2. Reset your password using phpMyAdmin

If the reset email doesn’t work, or you don’t have access to the inbox, phpMyAdmin lets you update your password directly in the database.

Now go back to your login screen and try the new password.

3. Disable plugins via FTP or your host’s file manager

A plugin conflict can cause login errors, especially after an update or new installation. Disabling all plugins can help you rule this out.

This disables all plugins without deleting them.

4. Clear your browser cache and cookies

It sounds simple, but corrupted browser data can sometimes block you from logging in.

To clear cache and cookies:

Close your browser, reopen it, and try again.

5. Check your IP address and security plugin settings

Security plugins like Wordfence or iThemes Security might block your IP if they detect suspicious behavior.

Here’s how to check and fix that:

Tip: You can find your current IP by Googling “What is my IP?”

6. Restore your site from a backup

If a recent update or hack broke your login, restoring your site to an earlier version can be a last-resort fix.

How to restore:

Make sure to back up the current version first (just in case), even if it’s not working properly.

7. Fix file permission errors

WordPress relies on correct file and folder permissions. If they’ve been changed accidentally, it might lock you out.

If you see anything else (like 000 or 777), change it back.

Incorrect permissions might come from a plugin or script, so review recent changes.

8. Repair the WordPress database

A corrupted database can also prevent you from logging in.

Once complete, remove the line from your wp-config.php file.

9. Check if your user role changed

If your admin role was removed, or if your user account was deleted, you won’t be able to log in or access the dashboard properly.

You can verify and fix this in phpMyAdmin:

If it’s different (or missing), edit it or create a new row using your user ID.

10. Contact your hosting provider

If none of these solutions work—or if you’re not comfortable making changes in phpMyAdmin or FTP—your web host can help.

Most hosting providers will:

This is often the fastest route if you’re completely stuck.

Bonus: how to prevent future lockouts

Once you’re back in, take a few steps to make sure it doesn’t happen again:

These tools will save you from hours of stress next time something goes wrong.

Additional resources

Diagnosing WordPress errors on your site →

Even more common errors, how to troubleshoot them, and how to solve them

Error: WordPress missed schedule – why it happens and how to fix it →

Fix the “missed schedule” WordPress error and ensure your scheduled posts publish reliably and on time.



What is managed WordPress hosting? →

What it means, what it includes, and how to decide if it’s right for you