-
Improvement
-
Resolution: Fixed
-
Minor
-
3.8.4, 3.9.1
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_311_STABLE
-
When upgrading via the web interface, if the source code directory contains files from previous versions you get the error "Mixed Moodle versions detected, upgrade cannot continue" (MDL-30929).
When upgrading using admin/cli/upgrade.php this check does not occur and the upgrade proceeds.
I suggest that the CLI script should also perform this check, exiting with an error if it fails. I think there are third party web platform managers (e.g. Softaculous) which are overwriting existing Moodle directories with later versions then running the CLI script. This apparently completes successfully but can result in a non-working site. E.g. upgrade Moodle 3.4 to 3.9 (via 3.5) overwriting the files there's a JavaScript exception:
TypeError: Cannot call a class as a function
This breaks navigation, e.g. the site administration page's tabs don't work.