Moodle
  1. Moodle
  2. MDL-20260

Error when upgrading due to misnamed upgrade function

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Quiz
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      26233

      Description

      Error when upgrading due to misnamed upgrade function.

        Activity

        Hide
        Pierre Pichet added a comment -

        Uploading the HEAD version of yesterday I got the following
        Fatal error: Call to undefined function xmldb_quiz_overview_upgrade() in C:\moodle\moodle\site\moodle_head_exp\lib\upgradelib.php on line 378.
        The $component line 302 was quiz_overview
        The preceeding ones which were OK
        ....
        qtype_calculated

        qtype_essay

        qtype_match

        qtype_multianswer

        qtype_multichoice

        qtype_numerical

        qtype_randomsamatch

        qtype_shortanswer

        qtype_truefalse

        assignment_online

        Show
        Pierre Pichet added a comment - Uploading the HEAD version of yesterday I got the following Fatal error: Call to undefined function xmldb_quiz_overview_upgrade() in C:\moodle\moodle\site\moodle_head_exp\lib\upgradelib.php on line 378. The $component line 302 was quiz_overview The preceeding ones which were OK .... qtype_calculated qtype_essay qtype_match qtype_multianswer qtype_multichoice qtype_numerical qtype_randomsamatch qtype_shortanswer qtype_truefalse assignment_online
        Hide
        Pierre Pichet added a comment -

        More precisely
        plug

        Array
        (
        [grading] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/grading
        [overview] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/overview
        [responses] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/responses
        [statistics] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/statistics
        )

        quiz_overview
        then error message.
        This could related to the
        function xmldb_quizreport_overview_upgrade($oldversion) {
        of mod/quiz/report/overview/db/upgrade.php

        Show
        Pierre Pichet added a comment - More precisely plug Array ( [grading] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/grading [overview] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/overview [responses] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/responses [statistics] => C:\moodle\moodle\site\moodle_head_exp/mod/quiz/report/statistics ) quiz_overview then error message. This could related to the function xmldb_quizreport_overview_upgrade($oldversion) { of mod/quiz/report/overview/db/upgrade.php
        Hide
        Pierre Pichet added a comment -

        replacing by xmldb_quiz_overview_upgrade($oldversion) {
        solve apparently the problem but I let you see I something else is not missed as quiz db upgrade are complex...

        Show
        Pierre Pichet added a comment - replacing by xmldb_quiz_overview_upgrade($oldversion) { solve apparently the problem but I let you see I something else is not missed as quiz db upgrade are complex...
        Hide
        Sam Hemelryk added a comment -

        Moved this from sub issue of consistent navigation to its own issue as it really is a separate bug.
        Will commit a fix to this immediately.

        Problem found to be a misnamed upgrade function as uncovered by Pierre.
        Function name has been corrected and version numbers bummed to ensure that everyone who is running 2.0 already gets the update as well.

        Show
        Sam Hemelryk added a comment - Moved this from sub issue of consistent navigation to its own issue as it really is a separate bug. Will commit a fix to this immediately. Problem found to be a misnamed upgrade function as uncovered by Pierre. Function name has been corrected and version numbers bummed to ensure that everyone who is running 2.0 already gets the update as well.
        Hide
        Sam Hemelryk added a comment -

        Now fixed

        Show
        Sam Hemelryk added a comment - Now fixed

          People

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

            Dates

            • Created:
              Updated:
              Resolved: