MainWP Community

Disable Fatal Error Handler

Use this code snippet to disable the fatal error handler on your child sites.

Snippet Type

Save to wp-config.php

Snippet

define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
3 Likes

@sebastian-moran can you explain in which case you want to hide this error? It can be helpful to debug, no?

3 Likes

Because the fatal error handler displays no error messages. You get more information by enabling debugging.

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

3 Likes

Oh! make sense. Thank you for the clarification.