Enable errors PHP WordPress 5.2

Since WordPress 5.2 can not display errors on the site.
The constants “WP_DEBUG” et “WP_DEBUG_DISPLAY” doesn’t work.
The following message is always displayed : “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”

Have you solution?

3 Answers
3

You can disable this behaviour by setting WP_DISABLE_FATAL_ERROR_HANDLER to true:

define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );

This will stop the “The site is experiencing technical difficulties” message from appearing, so errors will appear as they did prior to this feature being added.

Leave a Comment