Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5338

Update /config/blesta.php config file to discourage enabling errorReporting and debugging

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.11.0-b3
    • Fix Version/s: 5.14.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      People turn on errorReporting and debugging and leave it on and it causes all kinds of problems. Currently the config/blesta.php file contains the following:

      ////////////////////////////////////////////////////////////////////////////////
      // 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 the comments so it reads like the following:

      ////////////////////////////////////////////////////////////////////////////////
      // Debugging
      // NEVER LEAVE THESE OPTIONS ENABLED. MAY CAUSE ISSUES.
      // CHECK THE LOG DIRECTORY FOR ERRORS INSTEAD.
      ////////////////////////////////////////////////////////////////////////////////
      // 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);
      
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: