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

Home page Combo List crashes after updating to version 2.2.6+ (Build: 20121220)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.7
    • 2.2.6
    • Course
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE
    • Hide

      1/ configura frontpage to display "combo" course info
      2/ verify there is no notice when viewing frontpage

      Show
      1/ configura frontpage to display "combo" course info 2/ verify there is no notice when viewing frontpage

      After updating to 2.2.6+ (Build: 20121220) the home page rendering crashes on rendering of Combo List.
      Enabling debug at DEVELOPER level will show:
      Fatal error: Class 'lang_string' not found in [...]/course/renderer.php on line 126

      Possible cause
      Line 126 of course/renderer.php is:

        
        $strinfo = new lang_string('info');

      It uses lang_string class not available in Moodle 2.2.x

      I guess it was introduced porting fix of MDL-25928 to MOODLE_22_STABLE

      Fix
      Change line 126 of course/renderer.php to:

        
        $strinfo = get_string('info');

            skodak Petr Skoda
            nicus Lorenzo Nicora (Inactive)
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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