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

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

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

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            skodak Petr Skoda added a comment -

            Thanks a lot for the report.

            Show
            skodak Petr Skoda added a comment - Thanks a lot for the report.
            Hide
            samhemelryk Sam Hemelryk added a comment -

            Thanks Petr - this has been integrated now

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

            Tested during integration review.

            Show
            samhemelryk Sam Hemelryk added a comment - Tested during integration review.
            Hide
            stronk7 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
            stronk7 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:
                  Fix Release Date:
                  14/Jan/13