• Hi there

    I manage around 50 WP websites for a bunch of clients. Necessarily the admin email is set to my client’s email as I don’t own the istes I just manage them.

    This morning one of my clients got a very scary email which I have pasted below. It includes the marvellous words ‘fatal errors’ (when is the tech world going to drop the liberal use of these two words?!). He of course forwarded it to me with a rather rude message.

    As it happens I check all sites for updates twice a week and also have jetpack ‘site down’ alert switched on on all of them so I’m the first to know of real ‘fatal errors’.

    In this instance, as far as I can see, as i was updating slider revolution this morning the plugin would not have worked for the brief few minutes that the update was happening. This is hardly a ‘fatal error’ and not a reason to send this email to admin.

    So – my question is – how do i disable this function and have it stop scaring the life out of my lovely clients?

    Martin

    From: WordPress <[email protected]>
    Date: 17 March 2021 at 13:28:52 GMT+3
    To: [email protected]
    Subject: [Green Congress of Kenya] Your Site is Experiencing a Technical Issue
    
    Howdy!
    
    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
    
    In this case, WordPress caught an error with one of your plugins, Slider Revolution.
    
    First, visit your website (https://gck.or.ke/) and check for any visible issues. Next, visit the page where the error was caught (https://gck.or.ke/wp-admin/update.php?action=update-selected&plugins=revslider%2Frevslider.php&_wpnonce=d2e4b871b0) and check for any visible issues.
    
    Please contact your host for assistance with investigating this issue further.
    
    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
    
    https://gck.or.ke/wp-login.php?action=enter_recovery_mode&rm_token=gaWFAkRw8xi37yPHXqFAl8&rm_key=3ifM19qOwm3Dqx5gQmgx7x
    
    To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
    
    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.6.2
    Current theme: Groppe Child (version 1.0)
    Current plugin: Slider Revolution (version 6.4.4)
    PHP version 7.2.34
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 13 of the file /home2/gckorke/public_html/wp-content/plugins/revslider/admin/views/modals-copyright.php. Error message: Uncaught Error: Call to undefined method RevSliderGlobals::instance() in /home2/gckorke/public_html/wp-content/plugins/revslider/admin/views/modals-copyright.php:13
    Stack trace:
    #0 /home2/gckorke/public_html/wp-content/plugins/revslider/admin/includes/shortcode_generator/shortcode_generator.class.php(271): require_once()
    #1 /home2/gckorke/public_html/wp-includes/class-wp-hook.php(287): RevSliderShortcodeWizard::enqueue_files('update.php')
    #2 /home2/gckorke/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #3 /home2/gckorke/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #4 /home2/gckorke/public_html/wp-admin/includes/template.php(2109): do_action('admin_footer', 'update.php')
    #5 /home2/gckorke/public_html/wp-admin/update.php(53): iframe_footer()
    #6 {main}
     thrown
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Add this to wp-config.php: define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
    Be sure WP_DEBUG is defined as false. Also be sure the server is not configured to display errors on the site, that they are only logged. This does mean you need to regularly check for errors in the log files.

    Never the less, if a fatal error or whatever you prefer to call it occurs, the site will likely display the White Screen of Death or a generic 500 error. This may or may not be more disturbing to clients than the default behavior.

    FWIW, you can modify the error email to soften its impact through the ‘recovery_mode_email’ filter. Someone getting an email when there’s an error is not a bad thing. It’d save you from needing to check error logs so often ??

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal errors warning’ is closed to new replies.