How to deactivate all plug-ins when you cannot access the WordPress backend

As a WordPress webmaster, you may encounter a situation where you cannot access the WordPress backend anyway. You suspect that it may be caused by some WordPress plug-ins. At this time, if you want to disable all plug-ins, what should you do?

In fact, Zhang Meng mentioned relevant methods in some articles on dealing with WordPress issues before, so I will talk about them separately here.

Method 1. Operate through FTP or file management interface

Since the backend of the website is now inaccessible, we can only disable the WordPress plug-in through FTP or server file manager. The specific methods are as follows:

useFTPorfile managerVisit your website’swp-contentContents. willpluginsRename the folder to another name, such as plugins123, so that all plug-ins can be deactivated.

How to deactivate all plug-ins when you cannot access the WordPress backend

Officially, if you want to continue identifying plug-ins that may have problems, follow the following steps to continue:

1. Try using the website Your domain name/wp-admin/ Visit and log in to the backend. If this solves the problem, it means there is a problem with your plug-in. All we need to do now is find the exact culprit.

2. Change the plugins123 folder back to its original nameplugins。This way, WordPress can re-access your plug-ins, but all plug-ins remain inactive.

3. Log in to your WordPress dashboard and visit Plug-ins Installed plug-ins, activate one plug-in at a time and then refresh the website. If a 503 error occurs after activating a plug-in, it means that the error was caused by the plug-in.

4. Access via FTP or file manager wp-content/plugins directory, just delete the problematic plug-in.

Method 2. Operate through database

Nowadays, many host spaces provide database management interfaces like phpMyAdmin. After logging in to phpMyAdmin, enter the corresponding database:

How to deactivate all plug-ins when you cannot access the WordPress backend

then into the wp_options This table (table prefix may not be wp_), and then click Search:

How to deactivate all plug-ins when you cannot access the WordPress backend

In the search form that appears, we find option_name enteractive_plugins , and then click Execute:

How to deactivate all plug-ins when you cannot access the WordPress backend

In this way, we found the field where we saved the installed plug-in data, and click Edit above:

How to deactivate all plug-ins when you cannot access the WordPress backend

in a form option_value field, modify its value to a:0:{} , and then click Execute:

How to deactivate all plug-ins when you cannot access the WordPress backend

At this point, all plug-ins have been disabled. I have to say that method 1 is still simpler, O(④_④)O haha ~

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注