Error Update Moodle 3.1 to 4.2

Error Update Moodle 3.1 to 4.2

Daniel Paco -
回帖数:2
I get the following screen
附件 Screenshot 2023-05-10 at 18-31-33 Screenshot.png
回复Daniel Paco

Re: Error Update Moodle 3.1 to 4.2

Ken Task -
Particularly helpful Moodlers的头像
Cannot upgrade from 3.1 to 4.2 directly.
You must upgrade in hops ...
See:
https://moodledev.io/general/releases/4.2
and note that one also has to upgrade php

3.1 was long term support (LTS) so it is said that one
can hop from 3.1 -> 3.5 (is LTS also) -> 3.9 (is LTS also) -> 4.1

Check the versions mentioned above via

And after each successful hop, login as admin level user, Go to Server -> Environment  (update componet) as a reminder of what you might have to do before the next hop.

'SoS', Ken

回复Daniel Paco

Re: Error Update Moodle 3.1 to 4.2

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
How exactly did you upgrade? This is the official documentation: https://docs.moodle.org/402/en/Upgrading. Also read https://moodle.org/mod/forum/discuss.php?d=356184 to get an idea what information you need to provide for the others to be able to help.

As already pointed out, you can't do that in one step. The "LTS route" is a common one. All your alternatives and what dependent software you need on the way can be found in the chart http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases.