If a WordPress plugin is causing your site to crash, show a white screen, or lock you out of the admin panel, you can disable all plugins at once through the database without needing to log into WordPress.
One SQL query disables all plugins
In phpMyAdmin (cPanel > Databases > phpMyAdmin), select your WordPress database, click the SQL tab, and run:
UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins';
This deactivates every plugin instantly. Your site should load again, then you can reactivate plugins one by one to find the culprit.
01. Step by Step
- Log into cPanel > Databases > phpMyAdmin
- Select your WordPress database from the left sidebar
- Click the "SQL" tab
- Run this query:
UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins';
- Visit your site - It should load now with all plugins deactivated
- Log into WordPress admin
- Go to Plugins and reactivate them one at a time, checking your site after each one
Reactivate plugins one by one, refreshing your site after each. When the site breaks again, the last plugin you activated is the culprit. Either update it, find an alternative, or contact the plugin developer. See Optimize WordPress Performance for identifying resource-heavy plugins.
If your WordPress installation uses a custom table prefix (not the default wp_), replace wp_options with your actual prefix. Check wp-config.php for the $table_prefix value.
02. Alternative: Rename the Plugins Folder
If you prefer not to use SQL, you can rename the plugins directory via cPanel File Manager or FTP:
- Navigate to
wp-content/ - Rename
pluginstoplugins_disabled - Visit your site - WordPress automatically deactivates all plugins when it cannot find the folder
- Rename back to
plugins - Reactivate one at a time in WordPress admin
Site Still Down After Disabling Plugins?
If disabling all plugins does not fix the issue, the problem may be your theme, a corrupted core file, or a database issue. Open a ticket and we will investigate.
Open a Support TicketFrequently Asked Questions
Does this delete my plugins or their settings?
No. The query only deactivates every plugin. The plugin files and their saved settings stay in place, so reactivating a plugin restores it exactly as it was.
What if my tables do not start with wp_?
Replace wp_options with your actual table prefix. Look up the $table_prefix value in your wp-config.php file and use that prefix followed by options.
How do I find which plugin caused the problem?
Once the site loads again, log into WordPress and reactivate plugins one at a time, checking the site after each. The plugin you activate right before the site breaks again is the culprit.
The site is still broken after disabling every plugin. Now what?
If no plugin is active and the site still fails, the cause is usually the theme, a corrupted core file, or a PHP memory or error issue. Switch to a default theme, check the error log, and if it persists open a support ticket.
Quick Recap
- Run the SQL query in phpMyAdmin to deactivate all plugins at once
- Or rename the plugins folder via File Manager
- Reactivate one at a time to find the problem plugin
- Check your table prefix in wp-config.php if using a custom prefix
- Still broken? The issue may be the theme or WordPress core
WordPress emergency troubleshooting · Last updated November 2026 · Browse all WordPress articles
