When a plugin breaks your site and you cannot reach the dashboard, you can still disable it through cPanel. WordPress treats a renamed plugin folder as inactive, which is the fastest recovery.
Disable All Plugins at Once
- In cPanel, open File Manager and go to
wp-content. - Rename the
pluginsfolder to something likeplugins_off. - Reload your site. With no plugins folder, WordPress deactivates them all.
- If the site works, rename the folder back to
plugins. The plugins stay deactivated until you re-enable them one at a time.
Disable a Single Plugin
If you know the culprit:
- Open the
wp-content/pluginsfolder. - Rename only that plugin's folder, for example
seo-plugintoseo-plugin_off. - Reload the site to confirm it recovered.
Disable Plugins via the Database
If file renaming is not enough, clear the active plugin list in phpMyAdmin:
- Open phpMyAdmin and select your database.
- Find the
wp_optionstable and locate the row whereoption_nameisactive_plugins. - Edit the
option_valuefield and replace its contents with:
a:0:{}
- Save. This empties the active plugin list without deleting any files.
Once you regain access to the dashboard, re-activate plugins one at a time to find the exact one causing the problem.