Enable or Disable Error Reporting TYPO3

You can enable error reporting in TYPO3 by setting configurations. There are two ways as per below:


1. Using localconf.php

There is a file localconf.php in typo3conf folder. You can add below line in that file.
           
            $TYPO3_CONF_VARS['SYS']['displayErrors'] = '1';                   

Other options :

      1. Do not display PHP errors :

            $TYPO3_CONF_VARS['SYS']['displayErrors'] = '0';     
   
      2. Display errors only if client matches :

            $TYPO3_CONF_VARS['SYS']['displayErrors'] = '2';        

      3. Default setting:

            $TYPO3_CONF_VARS['SYS']['displayErrors'] = '-1';       
 

2. Using .htaccess

 You can add below few lines to enable PHP error reporting.

php_flag display_errors on
php_flag log_errors on
php_value error_log /path/to/php_error.log

1 comments:

awesome thank you

Reply

Post a Comment

Thanks for your comment.