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

Update /config/blesta.php to add a comment warning about enabling debugging or error reporting

    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);
      

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 15 minutes
              15m