Fatal Error Notify


This plugin sends you an email notification whenever a fatal error (or other error level, configurably) is detected on your site.

Unlike traditional uptime monitoring services, which will only notify you if your entire site is down, this plugin can notify you when an error is detected on any page or process on your site.

Automatic plugin and theme updates often introduce problems that you aren’t aware of until they’re reported by your visitors. Fatal Error Notify lets you address these issues as they occur and before they cause significant problems.


  • Admin configuration settings
  • Example email received when an error has been reported


Install it just like any other WordPress plugin:

Either: Upload the plugin files to the /wp-content/plugins/fatal-error-notify directory.
Or: Install the plugin through the WordPress plugins screen directly.

1. Activate the plugin through the ‘Plugins’ screen in WordPress
2. Use the Settings->Fatal Error Notify screen to configure notification settings


How does the plugin send error notifications if my site is down?

Fatal Error Notify hooks into PHP’s “shutdown” function to send notifications right before the page stops loading. Even the dreaded “500 – Internal Server Error” still triggers PHP’s shutdown actions. Even if your site is completely offline, in most cases this plugin will be able to detect the error and notify you.

What’s in the Pro version

Fatal Error Notify Pro includes several additional features, like Slack notifications, the ability to hide the plugin settings, multisite support, logging of recorded errors, out of memory handling, the ability to pause individual notifications, and more.

Fatal Error Notify Pro also includes integrations with WP Fusion, WooCommerce, and Gravity Forms and can send notifications when errors are logged in those plugins.

Can I exclude specific errors?

Yes, you can use the filter fen_ingore_error, like so:

function fen_ignore_error( $ignore, $error ) {

    if( $error['file'] == '/home/username/public_html/wp-includes/class-phpass.php' ) {
        $ignore = true;

    return $ignore;


add_filter( 'fen_ignore_error', 'fen_ignore_error', 10, 2 );

The $error variable is an array containing:

  • $error['type']: (int) The PHP error code
  • $error['message']: (string) The error message
  • $error['file']: (string) The path to the file that triggered the error
  • $error['line']: (int) The line number that triggered the error

Does it support WP CLI

Yup, you bet! You can update the plugin settings using WP CLI, for example to set a default list of error levels, or a notification email address.

The two methods are get_option and update_option. For example:

wp fatal-error-notify get_option slack_notifications

Will tell you if Slack notifications are enabled on the site.

wp fatal-error-notify update_option notification_email email@domain.com

Will update the notification email for the site.

You can also update options on multiple sites using xargs:

wp site list --field=url | xargs -n1 -I {} sh -c 'wp --url={} fatal-error-notify update_option notification_email email@domain.com'

If you are updating options that are stored as arrays (for example levels or plugins) you can use JSON-formatted values. For an example, use get_option first on the field you are trying to update.


2023 年 2 月 6 日 1 則留言
Amazing tool when you don't have access to backend logs to troubleshoot the issue. Great work!
2023 年 1 月 19 日 1 則留言
Simple and useful plugin for you who managing a WordPress site. Make troubleshooting so much easier! (no more enable/disable WP_Debug mode)
2022 年 12 月 12 日 1 則留言
just discovered this little nugget and I'm very happy with it!
2022 年 7 月 7 日 1 則留言
Just came here to say that this is an amazing plugin and it's extremely helpful during troubleshooting. keep up the good work!
2021 年 12 月 1 日 1 則留言
I used Fatal Error Notify on a site that kept crashing and I couldn't find out what was going wrong. The plugin emails the PHP error message and that helped me track down the issue.
閱讀全部 12 則使用者評論


以下人員參與了開源軟體〈Fatal Error Notify〉的開發相關工作。


〈Fatal Error Notify〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Fatal Error Notify〉外掛本地化為台灣繁體中文版


任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄


1.5.0 – 3/20/2023

  • Tested for WordPress 6.2.0
  • Added WP CLI endpoint for updating plugin settings

1.4.7 – 11/14/2022

  • Fixed typo (misplaced parenthesis) checking WARNING level errors in v1.4.6

1.4.6 – 11/1/2022

  • Tested for WordPress 6.1.0
  • Improved – Moved actions to shutdown action priority 1, to fix cases where other plugins generate notices or warnings during shutdown after a fatal error
  • Improved – “rmdir” warnings will be ignored by default
  • Fixed unlink warnings still triggering notifications if unlink was the first part of the error string

1.4.5 – 2/15/2022

  • Tested for WordPress 5.9
  • Improved – “unlink” warnings will be ignored by default (see https://wordpress.org/support/topic/wordfence-notification-error-wordfenceclass-php/#post-15187940)
  • Added upgrade prompt in notification email

1.4.4 – 8/3/2021

  • Tested for WordPress 5.8
  • Moved upgrade nag to top of settings page to prevent layout issues on smaller screens

1.4.3 – 12/16/2020

  • Tested for WordPress 5.6
  • Fixed PHP notice when HTTP referrer was missing
  • Added fen_use_wp_mail filter

1.4.2 – 4/3/2020

  • Tested for WordPress 5.4
  • Added error level descriptions

1.4.1 – 11/27/2019

  • Tested for WordPress 5.3

1.4 – 4/26/2019

  • Added request URI, HTTP Referrer, and current user ID to notifications

1.3 – 4/21/2018

  • Added “Send Test” button
  • Rate limiting so notifications are only sent once per hour

1.2 – 2/8/2018

  • Added filter to ignore errors


  • Updated branding
  • Added link to Pro version


  • Initial release