WordPress error handling
Mark Howells-Mead edited this page Oct 9, 2019
·
1 revision
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);
Mark Howells-Mead | https://permanenttourist.ch and https://sayhello.ch/ | Wiki since 2016
Use this code freely, widely and for free. Provision of this code provides and implies no guarantee.
Please respect the GPL v3 licence, which is available via http://www.gnu.org/licenses/gpl-3.0.html