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

When upgrading Moodle and plugins at the same time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.6, 3.5.3, 3.6.1
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      Typical steps to reproduce:

      You need to find a plugin with an old version that supports Moodle 3.3, an a more recent veresion that supports Moodle 3.3

      1. Install Moodle 3.3.x.
      2. Install Version 2.2 of https://moodle.org/plugins/pluginversions.php?plugin=qtype_pmatch
      3. Use the admin UI to start upgrading Moodle to 3.6.1 (or whatever the lates stable is).
      4. During the process, run the check to look for newer versions of installed plugins.
      5. Use the option to upgrade the plugins to the latest version (qtype_pmatch has Wersion 2.3 which supports Moodle 3.6, but not 3.3)

      Expected result: that works, and you can continue on through the upgrade.

      Acutal results: After downloading the new version of the plugin, it validates the zip, and fails because Wersion 2.3 of qtype_pmatch does not support Moodle 3.3.x. That is, the plugin upgrader is checking the version from the DB (which we are about to move away from), not the version from the code (to which we are about to upgrade).

      Work-around: if you upgrade Moodle core first, then the admin UI will happily upgrade the plugin.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              timhunt Tim Hunt
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Matteo Scaramuccia, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: