Error messages showing up to users
-
Hi,
I have enabled DEBUG on wp-config file as requested setting this line
define('WP_DEBUG', true)
and added the following lines to the end of my wp-config file as//Enable error logging.
@ini_set('log_errors', 'On');
@ini_set('error_log', '~/www/wp-content/elm-error-logs/php-errors.log');//Don't show errors to site visitors.
@ini_set('display_errors', 'Off');
if ( !defined('WP_DEBUG_DISPLAY') ) {
define('WP_DEBUG_DISPLAY', false);
}Despite the last 4 lines, errors are being displayed to my end users. For some reason, it seems to have a relation with the cache plugin. When I empty and reload cache, the errors go away. I’m using wp-rocket plugin.
Why can’t I set set
define('WP_DEBUG_DISPLAY', false);
outside of theif
statement ? This should prevent it, no ?What are your thoughts ?
Thanks in advance
Eduardo
- The topic ‘Error messages showing up to users’ is closed to new replies.