Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82540

Undefined $CFG->debugdisplay when displaying an error page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.4.2
    • 4.4.1
    • General

      I'm getting the following warning when I'm on an error page:

      Warning: Undefined property: stdClass::$debugdisplay in /Users/jun/Work/moodles/stable_main/moodle/lib/setuplib.php on line 74
      

      To reproduce:

      1. Edit config.php and change the value for any of the database config values (e.g. $CFG->dbhost) that will cause the Moodle instance's connection to the database to fail.
      2. Expected: You should only see the "Database connection failed" error message.
      3. Actual: There's also a warning about the undefined $CFG->debugdisplay.

            jpataleta Jun Pataleta
            jpataleta Jun Pataleta
            Raquel Ortega Raquel Ortega
            Shamim Rezaie Shamim Rezaie
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.