Support » Fixing WordPress » How to disable the emails on errors

  • I have setup a seperate wordpress installation for deleveloping a plugin.
    But with the latest version of WP there is an annoying feature which I want to disable.

    If I make a syntax error (e.g. missing brackets) a wp_die message is shown.
    The text in german is “Die Website hat technische Schwierigkeiten. Bitte das E-Mail-Postfach des Website-Administrators prüfen, um dort weitere Anweisungen zu finden.”

    Then everytime I get a email.

    Because I have WP_DEBUG, WP_DEBUG_DISPLAY and WP_DEBUG_LOG set true there is no need for this mail. So I would appreticate if there is a way to disable this feature.

    I also noticed that a need page is available “wp-admin/site-health.php”.
    On this page I found a define which isn’t documented yet, so I don’t know what is does and what values it accept: WP_LOCAL_DEV. I have assumed that it is also a bool value and the page says that it is now enabled. But I don’t know what the benefit of the define is. So if anyone know it I would appreticat an explanation.

Viewing 1 replies (of 1 total)
  • Thread Starter mumbomedia


    I could figure out myself how to disable this feature.
    I looked into the language file of WP for “technische” and found that this sentence

    “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”

    is on wp-includes/class-wp-fatal-error-handler.php:173.
    So I looked into it and found a new define “WP_SANDBOX_SCRAPING”.
    As far as I could see from the source code, this should also be a boolean constant.
    I have setup these in the wp-config.php and placed a syntax error in my plugin (; instead of,) for testing.
    As expected, the result was an empty screen and no longer an e-mail.
    So my first question is solved but it would be nice if someone could explain these new constants or include them in the documentation so that other people could benefit from my investigation.

    • This reply was modified 3 years, 4 months ago by mumbomedia.
Viewing 1 replies (of 1 total)
  • The topic ‘How to disable the emails on errors’ is closed to new replies.