Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)

Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)

by Jayasanka Chulabhaya -
Number of replies: 6

I currently have Moodle version 3.11+ (Build: 20210611) installed. Recently, I downloaded the latest Moodle 4.3.3 package and copied it to my server. Upon accessing the Moodle instance via the browser and navigating to index.php, I encountered a prompt stating, "Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)." I proceeded by clicking on the "Confirm" button.

Subsequently, the system initiated server checks, during which an issue was encountered, as depicted in the attached screenshot.

https://moodle.org/pluginfile.php/133/mod_forum/post/1829299/serverchecks.png

Would appreciate any guidance or insights on how to resolve this issue.


How do i download moodle version 3.11.8?
Average of ratings: -
In reply to Jayasanka Chulabhaya

Ri: Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)

by Sergio Rabellino -
Picture of Particularly helpful Moodlers Picture of Plugin developers
First of all, 3.11+ it s not a valid release, it must be composed by three numbers, e.g. 3.11.0(+) (the plus could be present or not, if you got a "intra release" zip.): did you installed it with some one-click installers??
Then, before upgrading to 4.x.y, it's useful to update to the latest release in your 3.11.x version, so 3.11.18.
The problems you got, anyway, are not directly related to Moodle, but they are related to your PHP environment which is not enough for the new Moodle requirements, so you have to install the extension required before trying to update.
In reply to Sergio Rabellino

Re: Ri: Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Sergio wrote:
> 3.11+ it s not a valid release, it must be composed by three numbers, e.g. 3.11.0(+)

That was my first thought too. But considering its timestamp (Build: 20210611) and the release dates of 3.11(.0) 17 May 2021 and of 3.11.1 (12 July 2021), and the anomaly we discussed here, I fear 3.11+ was indeed a tag in the Moodle repo as a Git artist can easily verify?
In reply to Jayasanka Chulabhaya

Re: Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I hope that 3.11+ is a 3.11.8 or higher. Otherwise you can't jump straight to 4.3. For details see the chart http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases.

And the screen-shot shows three missing php modules, zip, gd and intl. I wonder how you ran 3.11 without them? These modules are needed since a long time.

The guide, is here Upgrading.

BTW, you know that the only recovery of a borked upgrade is Site_recovery? So far the upgrade script hasn't done anything because of the missing php modules. There is still time for a Site_backup if you haven't done it.

In reply to Jayasanka Chulabhaya

Re: Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)

by Ken Task -
Picture of Particularly helpful Moodlers
See Sergio has already responded ... so I'll add 2 cents ...

Appears you have fallen victim to the mis-information/understanding of
what you saw on notifications screen. sad

You can acquire the highest 3.11.x:
under Legacy releases:
https://download.moodle.org/releases/legacy/

Once you get the highest 3.11.x back up and running, plan your upgrade path:
https://moodledev.io/general/releases

For example: 4.0.x
https://moodledev.io/general/releases/4.0
Server requirements

These are just the minimum supported versions. We recommend keeping all of your software and operating systems up-to-date.

    Moodle upgrade: Moodle 3.6 or later
    PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x and 8.0.x are supported too. See PHP for details.
    PHP extension sodium is recommended. It will be required in Moodle 4.2. For further details, see Environment - PHP extension sodium.
    PHP extension exif is recommended.
    PHP setting max_input_vars is recommended to be >= 5000 for PHP 7.x installations. It's a requirement for PHP 8.x installations. For further details, see Environment - max input vars.


The easiest way for you to plan your upgrades is to access:
Site Admin Environment check - update the component and then use the moodle version
drop down list checking each version above 3.11.x to see what you might need to do
prior to upgrading to the version chosen in the pick list.

Your screen shot shows your site is missing php extensions for zip, gd, and intl.
You must acquire those prior to upgrading.

If you have additonal plugins installed, you should also check to see if those plugins have a compatible version for your destination version of moodle.   

Theme's are important .... suggest adding a line to your config.php file to force the use of boost theme while you are marching your moodle to highest you can reach:
$CFG->theme='boost';
an incompatible theme will render the dreaded 'white screen of death' or other errors. sad

'SoS', Ken

In reply to Ken Task

Re: Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00)

by Jayasanka Chulabhaya -
Thank you all of you. I have sorted out the problem. smile
In reply to Jayasanka Chulabhaya

Re: Moodle Upgrading help Upgrading Moodle database from version 3.11+ (Build: 20210611) (2021051700.06) to 4.3.3 (Build: 20240212) (2023100903.00) [SOLVED]

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
How?

Once your problem is solved, reply to the thread, adding [Solved] to the subject line of your post and providing links to the documentation, discussion or tracker issue that helped you.

Ref. Site policy
sad