php - Hide Fatal Error in Wordpress -
i need hiding fatal errors wordpress site display.
i tried using following in wp-config.php didn't work:
error_reporting(0); @ini_set('display_errors', 0); i still see fatal error being displayed.
i have in wp-config.php
define('wp_debug', false); currently have error_log in wordpress root. want know errors are, don't want them displayed end users, because expose cp username.
try inserting in index.php
error_reporting(0); ini_set('display_errors', 0); or in .htaccess
# supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_value docref_root 0 php_value docref_ext 0 or fix them :)
Comments
Post a Comment