Title: Fatal Plugin Auto Deactivator &#8211; Never let a plugin break your site
Author: Linkon Miyan
Published: <strong>22 de mayo de 2025</strong>
Last modified: 24 de junio de 2026

---

Search plugins

![](https://ps.w.org/fatal-plugin-auto-deactivator/assets/banner-772x250.png?rev
=3298787)

![](https://ps.w.org/fatal-plugin-auto-deactivator/assets/icon-256x256.png?rev=3298787)

# Fatal Plugin Auto Deactivator – Never let a plugin break your site

 By [Linkon Miyan](https://profiles.wordpress.org/rudlinkon/)

[Download](https://downloads.wordpress.org/plugin/fatal-plugin-auto-deactivator.1.3.0.zip)

 * [Details](https://es-pr.wordpress.org/plugins/fatal-plugin-auto-deactivator/#description)
 * [Reviews](https://es-pr.wordpress.org/plugins/fatal-plugin-auto-deactivator/#reviews)
 *  [Installation](https://es-pr.wordpress.org/plugins/fatal-plugin-auto-deactivator/#installation)
 * [Development](https://es-pr.wordpress.org/plugins/fatal-plugin-auto-deactivator/#developers)

 [Support](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/)

## Description

The Fatal Plugin Auto Deactivator plugin is a powerful tool designed to enhance 
the stability and reliability of your WordPress website. It automatically detects
and deactivates plugins that cause fatal errors, preventing your entire site from
crashing and becoming inaccessible.

### Key Features

 * **Automatic Error Detection**: Monitors for fatal PHP errors in real-time using
   WordPress drop-in technology
 * **Smart Plugin Identification**: Identifies which plugin caused the fatal error
   by matching the error’s file path against your active plugins
 * **Instant Deactivation**: Automatically deactivates the problematic plugin during
   the shutdown phase
 * **Protected Plugins Allowlist**: Mark critical plugins (for example a checkout
   or payments plugin) that must never be deactivated automatically — the fatal 
   is still logged and reported honestly
 * **Log-Only Mode**: Optionally detect and log fatal errors without ever deactivating
   a plugin
 * **Protection-Status Visibility**: Admin warning, status banner, and a Site Health
   test that tell you when the protection drop-in is missing, replaced, or could
   not be installed — with one-click reinstall
 * **Source-Aware Messaging**: Detects whether a fatal error came from a plugin,
   theme, must-use plugin, drop-in, or WordPress core, and reports the source honestly—
   it never claims to have resolved an error it could not act on
 * **Detailed Admin Notifications**: Provides clear notifications about which plugin
   was deactivated and why
 * **Persistent Error Logging**: Records every detected fatal error in a permanent
   log for troubleshooting, even when no plugin could be attributed
 * **Error Log Management Page**: Dedicated admin page with an at-a-glance summary,
   source labels, and status badges to view, manage, and clear error history
 * **Zero Configuration**: Works right out of the box with no setup required
 * **Custom Error Page**: Displays a user-friendly error page with a reload button
   instead of the white screen of death
 * **Debug-Aware Display**: Shows detailed error information on the front-end error
   page only when WP_DEBUG is on and WP_DEBUG_DISPLAY is not disabled (overridable
   with FPAD_SHOW_ERROR_DETAILS); errors are always logged regardless
 * **Drop-in Management**: Automatically installs and manages WordPress fatal-error-
   handler.php drop-in

### How It Works

This plugin uses WordPress’s built-in drop-in system to provide the most reliable
error handling possible. When activated, it:

 1. **Installs a Drop-in**: Creates a `fatal-error-handler.php` file in your wp-content
    directory
 2. **Monitors for Errors**: WordPress automatically uses this drop-in when fatal errors
    occur
 3. **Captures Error Details**: Records the error message, file, and line number during
    the shutdown phase
 4. **Identifies the Plugin**: Matches the error’s file path against your active plugins
    to determine which plugin caused the issue
 5. **Deactivates Safely**: Automatically deactivates only the problematic plugin
 6. **Logs Everything**: Stores detailed information about every fatal error in a permanent
    log for troubleshooting
 7. **Notifies Admins**: Displays clear admin notices with error details when you next
    log in
 8. **Shows User-Friendly Pages**: Displays a custom error page with reload button 
    instead of the white screen of death

The drop-in approach ensures maximum reliability since it operates at the WordPress
core level, even when other plugins fail.

### Use Cases

 * **Development Environments**: Test new plugins without worrying about site crashes
 * **Production Sites**: Add an extra layer of protection against unexpected plugin
   conflicts
 * **Managed WordPress**: Essential tool for agencies and freelancers managing multiple
   client sites
 * **WooCommerce Stores**: Prevent revenue loss from site downtime due to plugin
   errors

### Why You Need This Plugin

WordPress fatal errors can make your entire site inaccessible, requiring FTP or 
hosting panel access to fix. With Fatal Plugin Auto Deactivator, your site remains
operational even when a plugin causes a critical error, giving you time to address
the issue without emergency measures.

## Screenshots

[⌊Fatal error detected. Problematic plugin auto-deactivated (requires WP_DEBUG true).⌉⌊
Fatal error detected. Problematic plugin auto-deactivated (requires WP_DEBUG true)
.⌉[

Fatal error detected. Problematic plugin auto-deactivated (requires WP_DEBUG true).

[⌊Fatal error detected. Problematic plugin auto-deactivated (WP_DEBUG is false).⌉⌊
Fatal error detected. Problematic plugin auto-deactivated (WP_DEBUG is false).⌉[

Fatal error detected. Problematic plugin auto-deactivated (WP_DEBUG is false).

[⌊Admin notification showing a deactivated plugin and error details⌉⌊Admin notification
showing a deactivated plugin and error details⌉[

Admin notification showing a deactivated plugin and error details

[⌊Plugin causing fatal error was auto-deactivated for site safety.⌉⌊Plugin causing
fatal error was auto-deactivated for site safety.⌉[

Plugin causing fatal error was auto-deactivated for site safety.

## Installation

 1. Upload the `fatal-plugin-auto-deactivator` folder to the `/wp-content/plugins/`
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. The plugin will automatically install the required drop-in file (`fatal-error-handler.
    php`) in your wp-content directory
 4. That’s it! The plugin works automatically with no configuration needed

**Note**: The plugin requires write permissions to your wp-content directory to 
install the drop-in file. If activation fails, check your file permissions.

## FAQ

### Does this plugin require any configuration?

No, Fatal Plugin Auto Deactivator works automatically right after activation with
no configuration required.

### Will this plugin slow down my website?

No, the plugin only activates its core functionality during the PHP shutdown phase
and only takes action when a fatal error is detected.

### What types of errors does this plugin catch?

The plugin catches fatal PHP errors, parse errors, and other critical errors that
would normally crash your site.

### Will I be notified when a plugin is deactivated?

Yes, an admin notice will be displayed in your WordPress dashboard showing which
plugin was deactivated and the specific error that caused it.

### Can I reactivate a deactivated plugin?

Yes, you can reactivate the plugin through the normal WordPress plugins page. However,
be aware that if the issue hasn’t been fixed, the plugin will be deactivated again
if it causes another fatal error.

### Can I stop it from deactivating a specific plugin?

Yes. Go to Tools → Fatal Plugin Log → Settings and add the plugin to the «Protected
plugins» list. Protected plugins are never deactivated automatically — for example,
you may prefer to keep a checkout or payments plugin running and fix it manually
rather than have it switched off. The fatal error is still logged and an honest 
message is shown on the error page.

### Can I turn off automatic deactivation entirely?

Yes. Enable «Log-only mode» under Tools → Fatal Plugin Log → Settings. The plugin
will keep detecting and logging fatal errors and showing the custom error page, 
but it will never deactivate a plugin.

### How do I know the protection is actually working?

The Fatal Plugin Log page shows a status banner («Protection active» or a warning),
and if the protection drop-in is missing, was replaced by another plugin, or could
not be installed (for example because wp-content is not writable), you’ll see an
admin notice and a Site Health test telling you, with a one-click «Reinstall protection»
button.

### Does this work with multisite installations?

The current version is designed for standard WordPress installations. Multisite 
support may be added in future updates.

### How does the plugin detect which plugin caused a fatal error?

The plugin compares the file path of the fatal error against the directories of 
your active plugins. When the error originates inside an active plugin’s folder,
that specific plugin is deactivated. Errors originating outside the plugins directory—
such as in a theme, a must-use plugin, a drop-in, or WordPress core — are still 
logged and shown on the custom error page, but nothing is deactivated.

### What happens if the error is not caused by a plugin?

The plugin determines the source of the error from its file path (theme, must-use
plugin, drop-in, or WordPress core) and shows an honest message explaining that 
the issue could not be resolved automatically and may require manual attention. 
It will never claim to have fixed an error it could not act on. The error is still
recorded in the Fatal Plugin Log, marked as logged only.

### Will this plugin prevent all types of errors?

This plugin specifically targets fatal PHP errors that would normally make your 
site inaccessible. It doesn’t handle warnings, notices, or other non-fatal errors.

### What is a drop-in and why does this plugin use one?

A drop-in is a special type of WordPress file that replaces core functionality. 
This plugin uses the `fatal-error-handler.php` drop-in to ensure it can handle errors
even when other plugins fail. The drop-in is automatically installed when you activate
the plugin and removed when you deactivate it.

### Will the drop-in conflict with other plugins?

WordPress allows only one `fatal-error-handler.php` drop-in at a time. While this
plugin is active, it installs and maintains its own drop-in, replacing any existing
fatal error handler drop-in so that error handling stays reliable. When you deactivate
or uninstall this plugin, it removes only its own drop-in and leaves any non-related
drop-in untouched.

### Why do I see detailed error information sometimes but not others?

For security reasons, detailed error information (file paths, line numbers, error
messages) is only displayed on the front-end error page when WP_DEBUG is enabled
in your WordPress configuration. When disabled, visitors see a generic error message
while administrators still receive detailed notifications in the dashboard. Every
fatal error is always recorded in the Fatal Plugin Log (Tools → Fatal Plugin Log)
regardless of the WP_DEBUG setting.

### Where are the error logs stored?

Error logs are stored in your WordPress database as options. The plugin maintains
both temporary logs (for admin notifications) and a permanent log (for troubleshooting
history) viewable under Tools → Fatal Plugin Log. Every detected fatal error is 
recorded in the permanent log, including errors that could not be attributed to 
an active plugin (such as those originating in a theme or in WordPress core) — those
are marked as logged only, with no plugin deactivated.

## Reviews

![](https://secure.gravatar.com/avatar/104a502f6692ce8b4758bd3c98e1b02fc3b8674c3ec6a1313ecca6406c7b9319?
s=60&d=retro&r=g)

### 󠀁[Really Nice plugin](https://wordpress.org/support/topic/really-nice-plugin-176/)󠁿

 [Bayejid Ahmed](https://profiles.wordpress.org/bayejid00/) 18 de junio de 2025 
1 reply

Really Nice plugin. I like it

![](https://secure.gravatar.com/avatar/397dc2734077d54033504ba39b6d0978769c89835acad75f1075a8a24d9dbb93?
s=60&d=retro&r=g)

### 󠀁[The Plugin Works as What it’s Saying](https://wordpress.org/support/topic/the-plugin-works-as-what-its-saying/)󠁿

 [Gobinda Tarafdar](https://profiles.wordpress.org/gtarafdarr/) 23 de mayo de 2025
1 reply

While testing multiple third-party addons on my site, I activated all the plugins
at once to speed things up but it caused a fatal error, and I couldn’t figure out
which plugin was responsible. Later, I discovered this plugin, and it really saved
me by automatically deactivating the faulty one. Great work, super useful!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/)

## Contributors & Developers

“Fatal Plugin Auto Deactivator – Never let a plugin break your site” is open source
software. The following people have contributed to this plugin.

Contributors

 *   [ Linkon Miyan ](https://profiles.wordpress.org/rudlinkon/)

[Translate “Fatal Plugin Auto Deactivator – Never let a plugin break your site” into your language.](https://translate.wordpress.org/projects/wp-plugins/fatal-plugin-auto-deactivator)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/fatal-plugin-auto-deactivator/),
check out the [SVN repository](https://plugins.svn.wordpress.org/fatal-plugin-auto-deactivator/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/fatal-plugin-auto-deactivator/)
by [RSS](https://plugins.trac.wordpress.org/log/fatal-plugin-auto-deactivator/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.0 – 24/06/2026

 * Added: Protected plugins allowlist — choose plugins that must never be deactivated
   automatically, even if they cause a fatal error (the error is still logged and
   reported honestly)
 * Added: Log-only mode — detect and log fatal errors without ever deactivating 
   a plugin
 * Added: Settings tab on the Fatal Plugin Log page for the allowlist and log-only
   mode
 * Added: Protection-status visibility — an admin warning, a status banner, and 
   a Site Health test when the protection drop-in is missing, replaced by another
   plugin, or could not be installed, with a one-click «Reinstall protection» action
 * Added: A Site Health «debug information» section summarizing protection status,
   settings, and recent fatals
 * Improved: The log now records a status (Deactivated / Protected / Log only / 
   Logged only) for each fatal
 * Improved: Hardened drop-in ownership checks and the clear-log action

#### 1.2.1 – 20/06/2026

 * Fixed: Plugin attribution now normalizes file paths and handles single-file plugins,
   so Windows and symlinked installs — and single-file plugins like Hello Dolly —
   are matched correctly instead of silently skipped
 * Fixed: Activation no longer triggers a fatal on hosts that require FTP/SSH filesystem
   credentials (the drop-in installer now fails gracefully)
 * Fixed: The custom error page now honors WP_DEBUG_DISPLAY (and a new FPAD_SHOW_ERROR_DETAILS
   override), so technical details are no longer exposed to visitors under the recommended
   production logging setup (WP_DEBUG on, WP_DEBUG_DISPLAY off)
 * Fixed: The error page no longer emits output when HTTP headers have already been
   sent, and now steps aside during WordPress’s plugin/theme editor syntax checks
 * Fixed: Escaped the deactivated plugin name and version on the error page
 * Fixed: The log viewer’s «Source» label now matches the error page for every WordPress
   drop-in
 * Fixed: Corrected the invalid «Tested up to» header value

#### 1.2.0 – 13/06/2026

 * Added: Source-aware error messages that detect whether a fatal error came from
   a plugin, theme, must-use plugin, drop-in, or WordPress core
 * Added: «Source» column, summary cards, and status badges on the Fatal Plugin 
   Log page
 * Changed: Every detected fatal error is now recorded in the permanent log, including
   errors that could not be attributed to a plugin
 * Changed: The custom error page no longer claims an issue was resolved when no
   plugin was deactivated
 * Improved: The fatal error handler now catches any Throwable to avoid breaking
   the shutdown phase
 * Few minor bug fixes & improvements

#### 1.1.0 – 01/06/2025

 * Added: New «Fatal Plugin Log» admin subpage under Tools for comprehensive error
   management
 * Added: Detailed log table showing date, time, plugin, file, line number, and 
   error message
 * Added: «Clear Log» functionality with nonce protection
 * Added: «View Log» action link on plugin list for quick access
 * Added: Enhanced error type detection (Fatal, Parse, Core, etc.)
 * Added: Security checks during drop-in file install and management
 * Improved: Validation, sanitization, and formatting of error messages with monospace
   font
 * Improved: UI styling using WordPress admin standards and alternating row colors
 * Improved: Codebase optimized for better performance
 * Few minor bug fixes & improvements

#### 1.0.1 – 25/05/2025

 * Improved: Security Enhancement
 * Few minor bug fixes & improvements

#### 1.0.0 – 22/05/2025

 * Initial release

## Meta

 *  Version **1.3.0**
 *  Last updated **1 semana ago**
 *  Active installations **60+**
 *  WordPress version ** 5.3 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/fatal-plugin-auto-deactivator/)
 * Tags
 * [error handling](https://es-pr.wordpress.org/plugins/tags/error-handling/)[fatal error](https://es-pr.wordpress.org/plugins/tags/fatal-error/)
   [plugin deactivation](https://es-pr.wordpress.org/plugins/tags/plugin-deactivation/)
   [site protection](https://es-pr.wordpress.org/plugins/tags/site-protection/)
 *  [Advanced View](https://es-pr.wordpress.org/plugins/fatal-plugin-auto-deactivator/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/reviews/)

## Contributors

 *   [ Linkon Miyan ](https://profiles.wordpress.org/rudlinkon/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/fatal-plugin-auto-deactivator/)