Need to find Moodle 3.6.1

Need to find Moodle 3.6.1

by Margarita Morozova -
Number of replies: 9
Hi all!

I failed to upgrade Moodle from 3.6 to 4.3. I think it is because many core files have been customized in my Moodle version.

Is it possible to find exactly Moodle 3.6.1 https://moodledev.io/general/releases/3.6/3.6.1

$release  = '3.6.1 (Build: 20181205)'; // Human-friendly version name
I want to compare my version with official to identify what has been changed. 
On Moodle GitHub unfortunately another release

https://github.com/moodle/moodle/blob/MOODLE_36_STABLE/version.php
$release  = '3.6.10 (Build: 20200511)'; // Human-friendly version name



Average of ratings: -
In reply to Margarita Morozova

Re: Need to find Moodle 3.6.1

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
You cannot upgrade from 3.6 to 4.3, you have to jump through at least one interim step. You need to read the release notes...I hope you have a backup - just restoring the 3.6.1 folder will not work unless you have the database and moodledata folder versions from before the upgrade...just download the latest 3.6 version if you have those - it will prompt an upgrade but will not be anything major because it is still the same 3.6 version.
Average of ratings: Useful (1)
In reply to Emma Richardson

Re: Need to find Moodle 3.6.1

by Margarita Morozova -
Thank you for helping!

Sure, I read the documentation. But I can't finish interim step (upgrade to v 3.11 or at least to v.3.6.10) I think because previously core files have been customized.
In reply to Margarita Morozova

Re: Need to find Moodle 3.6.1

by Ken Task -
Picture of Particularly helpful Moodlers
"think because previously core files have been customized."

That hints that you yourself didn't do any customizations!

In that case, hope you are working with a clone of your site to practice the 'march'.
With a clone of just the code directory, if the site was installed via git originally, a simple
git pull should show all the files that have been modified.

Depending upon how hosted, etc., might be a good idea to inspect those modified files ... at least their headers - top 20 lines - to see if there has been a php injection into them.

Better safe than sorry! My 2 cents, of course.

'SoS', Ken

Average of ratings: Useful (1)
In reply to Margarita Morozova

Re: Need to find Moodle 3.6.1

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

I think you want commit d09dc52.

Since your version is a minor release (3.6.1) not a weekly release (for example, 3.6.1+) you can use the tag v3.6.1 in Git to switch to that commit, for example:

$ git clone https://github.com/moodle/moodle.git
$ cd moodle
$ git checkout v3.6.1
Average of ratings: Useful (2)
In reply to Margarita Morozova

Re: Need to find Moodle 3.6.1

by Ken Task -
Picture of Particularly helpful Moodlers
A native Git way ...

git clone git://git.moodle.org/moodle.git moodle361
cd moodle361
git branch --track MOODLE_36_STABLE origin/MOODLE_36_STABLE
git checkout MOODLE_36_STABLE
fgrep '$release' version.php
git log --oneline
use space bar to page through until you see release 3.6.1
d09dc52b0a9 (tag: v3.6.1) Moodle release 3.6.1
The first column of info is the actual release version
git checkout d09dc52b0a9
fgrep '$release' version.php to check

'SoS', Ken

Average of ratings: Useful (2)