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

Undefined property: stdClass::$lang in lib/weblib.php on line 2221

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77735-401
    • MDL-77735-master
    • Hide
      1. In a working Moodle instance, edit config.php and set $CFG->dbname to a wrong value (for instance, add "xxx" at the end).
      2. Enable debugging for developers.
      3. Access the Moodle site.
      4. Check the Database connection failed error is displayed.
      5. Check no Notice: Undefined property: stdClass::$lang in lib/weblib.php on line XXXX" message is displayed.
      6. Access to the error logs for Apache: 

        tail -f /var/log/apache2/error.log

      7. Check no "PHP Warning:  Undefined property: stdClass::$lang in moodle/lib/weblib.php on line XXXX" is displayed.
      Show
      In a working Moodle instance, edit config.php and set $CFG->dbname to a wrong value (for instance, add "xxx" at the end). Enable debugging for developers. Access the Moodle site. Check the Database connection failed error is displayed. Check no Notice: Undefined property: stdClass::$lang in lib/weblib.php on line XXXX" message is displayed. Access to the error logs for Apache:  tail -f /var/log/apache2/error.log Check no "PHP Warning:  Undefined property: stdClass::$lang in moodle/lib/weblib.php on line XXXX" is displayed.
    • HQ 2023 Sprint i1.3 Moppies

      While testing MDL-77669 I faced this issue: the "Notice: Undefined property: stdClass::$lang in /var/www/html/lib/weblib.php on line 2221" is displayed when the database connection fails. 

      Looking at the code I've seen it's a regression from MDL-72882 which should be easy to fix

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Paul Holden Paul Holden
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 12 minutes
                1h 12m

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