What To Do When You Are Locked Out of WordPress Admin (wp-admin)

Are you having trouble logging into your WordPress admin area?

This can be caused by a lot of different reasons, which makes it tricky for beginners to troubleshoot.

In this article, we will show you what to do when you are locked out of WordPress admin (wp-admin) so you can regain access to your site.

What To Do When You Are Locked Out of WordPress Admin (wp-admin)

Why Are You Locked Out of Your Own WordPress Site?

We often hear from users who are locked out of the WordPress admin area. This is frustrating and can bring your productivity to a standstill. You can’t write posts, respond to comments, or do any work on your WordPress website.

If you’re having trouble logging in to someone else’s site, then you should contact the site owner or admin to let them know. They can explain why you don’t have access, or work with you to solve the problem.

If you are the site owner, then you can follow our troubleshooting steps below.

There are few reasons why you could be locked out of WordPress admin, so let’s take a look at each of them one by one. Hopefully, through this process of elimination, you will be able to figure out the solution to your problem.

You can also refer to our WordPress troubleshooting guide to find out what’s causing the issue and how to fix it. You might also find a solution in our list of the 50 most common WordPress errors and how to fix them.

With that being said, let’s have a look at some steps you can take when you are locked out of WordPress admin. You can use the links below to quickly navigate to the error message you see.

Error Establishing Database Connection

Error Establishing Database Connection

Are you seeing the ‘Error establishing database connection’ warning on every page of your site? This message is shown for various reasons, such as a corrupt database or issues with your web hosting server.

If you’re seeing this error when trying to log in, then please refer to our guide on how to fix the error establishing a database connection in WordPress.

500 Internal Server Error

Internal Server Error

Another WordPress error that a beginner may come across is “Internal Server Error”, or sometimes “500 Internal Server Error”. This error is displayed when there is something wrong but the server is unable to identify where the problem is.

If you see this message when trying to log in to WordPress, then follow the steps in our guide on how to fix the 500 internal server error in WordPress.

404 ‘Not Found’ Error

Sometimes users make a mistake when changing the WordPress address and site address in their WordPress settings. The next time they try to log in to their admin area, they get the error ‘Error 404 – Not Found’.

WordPress Address and Site Address

If this is happening to you, then check our guide on how to change your WordPress site URLs. You won’t be able to use Method 1 because you can’t log in, but the other methods should get you out of trouble.

Note: If you can log in to your site but see the 404 error when viewing one of your posts, then you have a different problem. You can learn how to fix the issue in our guide on how to fix WordPress posts returning 404 error.

403 Forbidden Error

Forbidden Error

Some users report seeing the “HTTP Error 403 – Forbidden” error when trying to log in to wp-admin. This error can be caused by incorrect file permissions, poorly coded security plugins, or your server configuration.

If you’re seeing this error, then our guide on how to fix the 403 Forbidden Error in WordPress will help you track down and fix the problem.

401 Unauthorized Error

Unauthorized Error

Another message you can see when you’re locked out of your WordPress site is the 401 error. This error is sometimes accompanied by a message ‘Access is denied due to invalid credentials’ or ‘Authorization required’.

You can see this message if you’ve password-protected your WordPress admin folder. It can also be caused by a WordPress security plugin or security measures taken by your hosting company.

Please refer to our guide on how to fix the 401 Error in WordPress to learn six solutions that will help you regain access to your website.

Limited Logins

Limited Logins

By default, WordPress allows users to enter passwords as many times as they want. Hackers may try to exploit this by using scripts that enter different combinations until your website cracks.

To prevent this, we recommend that you limit the number of failed login attempts per user. However, this might mean that you find yourself locked out of your own website when you enter the wrong password too many times.

If you’re in that situation, then you should follow the steps in our guide on how to unblock Limit Login Attempts in WordPress.

White Screen of Death

White Screen of Death

Are you seeing a white screen on your WordPress admin? This issue is often referred to as the WordPress white screen of death.

This happens when you exhaust the memory limit. It could be caused by a poorly coded plugin or theme, or by unreliable web hosting.

If you are seeing this error, then please refer to our guide on how to fix the WordPress white screen of death.

Incorrect Password Issue

Incorrect Password Issue

There’s nothing more frustrating than being told you’ve used the wrong password when you’re sure you haven’t, and you even checked that your caps lock isn’t on.

This can happen if you were a victim of a hack, or you might just be making an honest mistake.

Worse still, when you try to change your password, you never receive the email because it goes to an address you no longer have access to.

Luckily, there’s another way, and you can reset your WordPress password from phpMyAdmin. This method can be a bit overwhelming for new users, but it’s your best hope for regaining access to your admin area.

Problems with Plugins

You may be locked out of your WordPress site due to a faulty plugin or theme. This may be the case if you can’t log in to WordPress admin after installing a new plugin, or if the error message mentions ‘wp-content/plugins/’.

Deactivate All Plugins

To regain access to your site you’ll have to temporarily disable your plugins. You can do that using FTP or phpMyAdmin by following our step by step guide on how to deactivate all plugins when not able to access wp-admin.

Lost Admin Privileges

Sometimes, you may be able to login to your WordPress admin, but you don’t see any of the admin functionality. For example, you don’t have access to your themes or plugins.

This can happen if your user permissions were modified. It could be that hackers have infected your site and then deleted your admin privileges.

In this case, you should add an admin user to the WordPress database via MySQL (phpMyAdmin).

Add an Admin User via MySQL

Hacked WordPress Site

If you do suspect that your site has been hacked, then there are other steps you may need to take.

A hacked website may look different, display different content, or automatically play music or other media. Worse still, it may be infecting your visitors with viruses, so you need to act quickly.

Start with our beginner’s guide on how to fix your hacked WordPress site. We’ll show you how to identify the hack, restore your site from a backup, and remove any malware.

After that, you should protect your site from future attacks. We show you how to do that in our ultimate WordPress security guide .

Login Page Refreshing and Redirecting

Login Page Refreshing and Redirecting

Another type of login error is when your WordPress login page keeps refreshing and redirecting it back to the login screen.

This can happen because of incorrect values for the site URL and home URL fields in the WordPress options table. It can also be caused by poorly configured permalink settings or redirects setup in the .htaccess file.

To fix this problem, check our guide on how to fix WordPress Login Page refreshing and redirecting issue.

‘This Has Been Disabled’ Error

When you try to log into your WordPress admin area, do you see the error ‘This has been disabled’? This message is displayed when you have gone to the wrong admin address.

A common WordPress security practice is to change the default admin login URL (domain.com/wp-admin) to something custom. This can help prevent hackers and bots from hammering your login URL trying to gain access.

If you forget that the URL has been changed and go to the old one, then you’ll see this error message. If you’ve forgotten the correct address, then you should check our beginner’s guide on how to find your WordPress Login URL.

‘Briefly Unavailable for Scheduled Maintenance’ Error

'Briefly Unavailable for Scheduled Maintenance' Error

Are you seeing the ‘Briefly unavailable for scheduled maintenance’ error in WordPress? This error usually appears while updating WordPress core, plugins, or themes.

But if your WordPress site fails to finish the update, then you are left stuck in maintenance mode.

To fix the problem, you should check our guide on how to fix the Briefly Unavailable for Scheduled Maintenance error in WordPress. The guide will also explain why the error happens and how to avoid it in the future.

PHP Syntax Errors

PHP Syntax Errors

PHP errors can happen after you paste a code snippet from a WordPress tutorial or website. The wrong code can stop your website from working properly so that you can’t log in.

Often beginners use the built-in WordPress editor from their dashboard. That feature is handy, but can lead to disaster if you don’t know what you are doing.

That’s why we wrote our beginner’s guide to pasting snippets from the web into WordPress.

If you’re locked out of your WordPress admin because of a code snippet, then you’ll have to fix the problem manually using an FTP program to access your files. If you’re not familiar with FTP, then check our beginner’s guide on FTP.

After you connect to your WordPress site using the FTP software, you should follow our guide on how to fix syntax errors in WordPress to correct or remove the code that you added.

We hope this tutorial helped you log into your WordPress admin area. You may also want to learn how to choose the best WordPress hosting, or check out list of must have plugins to grow your website.

If you liked this guide, then please consider subscribing to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post What To Do When You Are Locked Out of WordPress Admin (wp-admin) appeared first on WPBeginner.

How to Easily Deactivate WordPress Plugins (Beginner’s Guide)

Do you want to learn how to deactivate WordPress plugins? One of the best things about WordPress plugins is that you can turn them off temporarily by deactivating them. You can also completely remove WordPress plugins by uninstalling them.

As a WordPress beginner, you need to know how to deactivate one or all of your WordPress plugins. Learning this will help you with troubleshooting and fixing common WordPress errors.

In this article, we will show you different ways to easily deactivate WordPress plugins. Our goal is to help you learn how to better manage WordPress plugins on your website.

How to easily deactivate WordPress plugins

Here is an overview of what you’ll learn in this article:

How to Deactivate a WordPress Plugin

Let’s start with deactivating a single WordPress plugin.

If you want to temporarily disable or deactivate a WordPress plugin, then you need to simply visit the Plugins » Installed Plugins page inside your WordPress admin area.

Deactivate a WordPress plugin

From here, you need to locate the WordPress plugin that you want to deactivate. Next, take your mouse to the plugin’s row, and it will show you a link to deactivate that particular plugin.

Clicking on the link will simply deactivate the WordPress plugin right away.

Once you deactivate the plugin, it still remains installed on your website, but WordPress will stop loading it.

If you want to start using the plugin again, then you will just need to click on the Activate link below it.

How to Bulk Deactivate WordPress Plugins

Sometimes you may need to deactivate all WordPress plugins on your website to troubleshoot issues. Instead of deactivating one plugin at a time, WordPress makes it easy to deactivate multiple or all WordPress plugins quickly.

Simply visit the Plugins » Installed Plugins page and check the box next to the plugins you want to deactivate. If you want to deactivate all WordPress plugins, then simply check the box at the top to select all plugins.

Select all plugins

Next, you need to select ‘Deactivate’ from the ‘Bulk Actions’ drop-down menu and click the ‘Apply’ button.

Bulk deactivate all WordPress plugins

WordPress will now deactivate all selected WordPress plugins.

How to Deactivate All WordPress Plugins via FTP

If you have been locked out of your WordPress admin area, then you will not be able to deactivate WordPress plugins from your dashboard.

In such situations, you will need to deactivate plugins using other methods. The easiest of them is to deactivate WordPress plugins via FTP or your WordPress hosting file manager.

Basically, WordPress looks for your installed plugins in the /wp-contents/plugins/ folder. If it cannot find the plugin’s folder, then WordPress will automatically deactivate all plugins.

Instead of deleting the plugin’s folder, we will just rename it.

First, you will need to connect to your WordPress site using an FTP client. Once connected, you need to navigate to the wp-content folder inside your WordPress root directory.

Rename plugins folder to deactivate all plugins

From here, you need to right-click on the plugins folder and then select ‘Rename’. This will bring up a popup where you need to enter a new name for your plugin’s folder such as plugins-deactivated.

Plugins deactivated

Your FTP client will now rename the plugin’s folder. You can now try to login to your WordPress admin area and visit the plugin’s page. You will see notifications about deactivated WordPress plugins.

Deactivated WordPress plugins

How to Manually Deactivate WordPress Plugins via PHPMyAdmin

The FTP method is definitely easier in our opinion. However, you can also deactivate all plugins using phpMyAdmin.

First, you will need to login to your web hosting account’s dashboard. Next, click on the phpMyAdmin icon under the ‘Databases’ section.

phpMyAdmin icon in cPanel

This will bring you to the phpMyAdmin interface. First, you will need to select your WordPress database from the left menu.

WordPress options table

PhpMyAdmin will now load your database tables in the right panel. You need to click on the ‘Browse’ button next to the wp_options table (your WordPress table name may differ depending on your WordPress database table prefix).

Now, phpMyAdmin will load data inside the options table. You need to scroll down to the row where option_name is ‘active_plugins’ and click on the ‘Edit’ button next to it.

Active plugins row in the WordPress database

PhpMyAdmin will open the row for editing, You need to delete the data inside the option_value field.

After that, click on the ‘Go’ button at the bottom to save your changes.

You can now visit your website and WordPress will see that all plugins have been deactivated.

What is The Difference Between Deactivating vs Uninstalling a WordPress Plugin?

The difference between deactivating vs uninstalling a WordPress plugin is quite simple.

When you deactivate a WordPress plugin, it is simply turned off. However, it is still installed on your website, so you can activate it again if you need to.

On the other hand, uninstalling a plugin completely deletes it from your website. You will not be able to see the plugin on the Plugins » Installed Plugins page.

If you want to reuse that same plugin, then you will have to install it again.

How to Uninstall a WordPress Plugin

WordPress makes it super easy to uninstall plugins from the admin area. Simply log in to your WordPress dashboard and go to the Plugins page.

You will see the list of currently installed plugins on your site. Your active plugins will be highlighted with a blue background.

If you want to uninstall an active plugin, then first you will need to deactivate it. After that, Click on the delete link below the plugin that you want to uninstall.

Delete WordPress plugin

WordPress will now ask you to confirm that you want to delete the plugin.

Confirm plugin deletion

You need to click on ‘Yes, delete these files’ button. WordPress will now safely remove the plugin from your web server.

That’s all you have successfully uninstalled a plugin from your WordPress site.

Some WordPress plugins leave traces of data and files even when they are uninstalled.

These items don’t have any significant impact on your WordPress site, but if you want to remove them, then here is how you would do it.

Removing unused shortcodes

Many WordPress plugins use shortcodes to easily add content to your posts or pages. Once you deactivate or uninstall a plugin, those shortcodes will become visible in your posts, and they look quite ugly.

[pluginshortcode]

You can easily disable shortcodes by adding the following code to your theme’s functions.php file or a site-specific plugin.

add_shortcode( 'pluginshortcode', '__return_false' );

This code basically adds the shortcode back and make it display nothing. Don’t forget to replace pluginshortcode with the shortcode tag used by the plugin you want to remove.

It is important to note, that you will need to remove this code if you ever decide to use that plugin again.

Cleaning up plugin traces from WordPress database

Some WordPress plugins create their own tables in the WordPress database. If these tables have too much data in them, then that would increase your WordPress backup size.

To clean these up, you need to launch the phpMyAdmin from your WordPress hosting dashboard.

phpMyAdmin icon in cPanel

You need to click on your database and then select the tables you want to delete. Below the tables list, you will see a drop-down labeled ‘With selected’. You need to click on the drop-down, and then select ‘Drop’.

Delete plugin tables

Next, you will see a warning that you are about to delete these tables. You need to click on Yes to confirm the action. Please note that it is irreversible, once deleted you will not be able to restore these tables unless you have a database backup.

Delete warning

PhpMyAdmin will now delete the database tables from your unused plugins.

Clean up unused WordPress plugin files

Often WordPress plugins create files and folders on your hosting server. These files are usually harmless, but can increase your WordPress backup size.

To delete them, you need to connect to your WordPress site using an FTP client. Once connected, you need to go to wp-content folder. You will find files and folders created by plugins inside the uploads and plugins folders.

Make sure that the files you are deleting are created by the plugin that you have uninstalled. After that, simply delete them from your web server.

Delete plugin files

Should You Keep Deactivated WordPress Plugins Installed on Your Site?

If you are not going to use those plugins, then you should not keep inactive or deactivated WordPress plugins installed on your website.

Inactive plugins don’t have any performance impact on your website. However, plugins contain executable files and can be used by hackers to hide malware or a backdoor.

Apart from security concern, they also increase your WordPress backup size, show up as false positive in security scans, and cause other issues.

This is why we always recommend users to delete inactive plugins from their site.

We hope this article helped you learn how to properly deactivate WordPress plugins. You may also want to see our article on how to choose the best WordPress plugin for your website, and our list of must have WordPress plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Easily Deactivate WordPress Plugins (Beginner’s Guide) appeared first on WPBeginner.