Moodle
  1. Moodle
  2. MDL-37280

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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:
    • Rank:
      46883

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

        Issue Links

          Activity

          Hide
          Petr Škoda added a comment -

          Thanks a lot for the report.

          Show
          Petr Škoda added a comment - Thanks a lot for the report.
          Hide
          Sam Hemelryk added a comment -

          Thanks Petr - this has been integrated now

          Show
          Sam Hemelryk added a comment - Thanks Petr - this has been integrated now
          Hide
          Sam Hemelryk added a comment -

          Tested during integration review.

          Show
          Sam Hemelryk added a comment - Tested during integration review.
          Hide
          Eloy Lafuente (stronk7) added a comment -

          And your fantastic code has met core, hope they become good friends for a long period.

          Closing, thanks!

          Show
          Eloy Lafuente (stronk7) added a comment - And your fantastic code has met core, hope they become good friends for a long period. Closing, thanks!

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: