Skip to content

WordPress error handling

Mark Howells-Mead edited this page Oct 9, 2019 · 1 revision

Hiding errors and warnings

Some shared hosts force PHP error messages and warnings, so if define('WP_DEBUG', false); doesn't work, use the following in wp-config.php instead

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
Clone this wiki locally