Last active
August 29, 2015 13:56
-
-
Save theodorocaliari/8914769 to your computer and use it in GitHub Desktop.
Wordpress Error Reporting. Source: http://wordpress.org/support/topic/how-to-set-a-php-error-log-file-for-wp || http://digwp.com/2009/07/monitor-php-errors-wordpress/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('WP_DEBUG', false); | |
@ini_set('log_errors', 1); | |
@ini_set('display_errors', 0); /* enable or disable public display of errors (use 'On' or 'Off') */ | |
@ini_set('error_log', dirname(__FILE__) . '/wp-content/logs/php-errors.log'); /* path to server-writable log file */ | |
@ini_set( 'error_reporting', E_ALL ^ E_NOTICE ); /* the php parser to all errors, excreportept notices. */ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment