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

Moodle upgrade fails because of undefined constant SCORM_TOC_DISABLED

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.0.5
    • 2.0.4
    • SCORM
    • RedHat
    • PostgreSQL
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Hide

      The attached patch provides a quick fix for the problem.

      Show
      The attached patch provides a quick fix for the problem.
    • Hide

      After this issue has been fixed an upgrade from a Moodle version previous to 13 Jul to a current Moodle version should run through without problems.

      Show
      After this issue has been fixed an upgrade from a Moodle version previous to 13 Jul to a current Moodle version should run through without problems.

    Description

      An upgrade to the latest Moodle version fails because the constant SCORM_TOC_DISABLED in mod/scorm/db/upgrade.php is not defined.
      Reproduce:
      The change in upgrade.php has been introduced on Jul 13th so you need an older Moodle version than that to reproduce

      • add some scorm content
      • upgrade to the latest Moodle code
      • run the Moodle upgrade
      • you will get the following error: ERROR: invalid input syntax for integer: "SCORM_TOC_DISABLED"

      Results:
      Due to this error the upgrade can't finish and Moodle keeps trying to upgrade but fails.

      Expected:
      The upgrade should run through without and error.

      Attachments

        Issue Links

          Activity

            People

              danmarsden Dan Marsden
              adisch Adrian Schlegel
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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