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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.6
    • Fix Version/s: 2.2.7
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              nicus Lorenzo Nicora
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jan/13