Details
- 
        Type:
 Task
            
         - 
        Status: Closed
 - 
            Priority:
 Major
                
             - 
            Resolution: Fixed
 - 
            Affects Version/s: 5.11.0
 - 
            Fix Version/s: 5.12.0-b2
 - 
            Component/s: None
 - 
            Labels:None
 
Description
People frequently enable errorReporting and debugging in /config/blesta.php, causing things to not work correctly (deprecated/warning/etc errors output) then assume there's a problem with Blesta and open a ticket or DM me, etc.
The top debugging section in /config/blesta.php looks like this:
//////////////////////////////////////////////////////////////////////////////// // Debugging //////////////////////////////////////////////////////////////////////////////// // PHP error_reporting. 0 to disable error reporting, -1 to to show all errors // Consult php's documentation for additional options Configure::errorReporting(0); // Override minPHP's debugging setting. true to enable debugging, false to disable it Configure::set('System.debug', false);
Update it to the following, adding the 1 new line starting with WARNING:
//////////////////////////////////////////////////////////////////////////////// // Debugging //////////////////////////////////////////////////////////////////////////////// // PHP error_reporting. 0 to disable error reporting, -1 to to show all errors // Consult php's documentation for additional options // WARNING: Enabling these can cause issues. Check ../logs_blesta/ logs instead Configure::errorReporting(0); // Override minPHP's debugging setting. true to enable debugging, false to disable it Configure::set('System.debug', false);