Linux 软件免费装
Banner图

Fatal Plugin Auto Deactivator - Never let a plugin break your site

开发者 rudlinkon
更新时间 2025年6月1日 11:28
PHP版本: 7.0 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

fatal error error handling site protection plugin deactivation crash prevention

下载

1.1.0 1.0.0 1.0.1

详情介绍:

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 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: Analyzes the error stack trace to determine which plugin caused the issue
  5. Deactivates Safely: Automatically deactivates only the problematic plugin
  6. Logs Everything: Stores detailed error information 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 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.

安装:

  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.

屏幕截图:

  • Admin notification showing a deactivated plugin and error details
  • Plugin causing fatal error was auto-deactivated for site safety.
  • Fatal error detected. Problematic plugin auto-deactivated (WP_DEBUG is false).
  • Admin notification showing a deactivated plugin and error details
  • Plugin causing fatal error was auto-deactivated for site safety.
  • Fatal error detected. Problematic plugin auto-deactivated (WP_DEBUG is false).
  • Admin notification showing a deactivated plugin and error details

升级注意事项:

1.1.0 We have added a dedicated admin subpage for viewing and managing error logs. Please update to the latest version.

常见问题:

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.

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 analyzes the error stack trace to identify which plugin file triggered the fatal error, then deactivates only that specific plugin.

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?

No, the drop-in is specifically designed for fatal error handling and won't conflict with other plugins. If another plugin tries to install its own fatal error handler drop-in, this plugin will detect it and avoid overwriting it.

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 when WP_DEBUG_DISPLAY is enabled in your WordPress configuration. When disabled, visitors see a generic error message while administrators still receive detailed notifications in the dashboard.

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 permanent logs (for troubleshooting history). You can view these through your WordPress admin dashboard.

更新日志:

1.1.0 - 01/06/2025 1.0.1 - 25/05/2025 1.0.0 - 22/05/2025