Moodle 4.0 To Moodle 4.1 upgrade

Moodle 4.0 To Moodle 4.1 upgrade

by MSHP MATHURA -
Number of replies: 6
Hi,
Would you please assist here that how to upgrade moodle version. is there any option in moodle for auto upgrade moodle version or we have to follow these steps or is there any way.
1. Install fresh Moodle 4.1 version
2. Copy config file from old version to new Moodle 4.1 version
3. Follow system requirement of Moodle 4.1 version

One more things that our custom plugin will be auto install in new Moodle version or we have to copy code of custom plugin to new Moodle version. apart from this how to install third party plugin or all third pary plugins should be auto install in Moodle new version.

Thanks.
Average of ratings: -
In reply to MSHP MATHURA

Re: Moodle 4.0 To Moodle 4.1 upgrade

by Ken Task -
Picture of Particularly helpful Moodlers
Please see:

There is no 'auto'.  Nearest method to 'auto' upgrade is the git method referenced in link above.   Requires command line.

'SoS', Ken

In reply to Ken Task

Re: Moodle 4.0 To Moodle 4.1 upgrade

by MSHP MATHURA -
Hi Ken Task,
Thanks for share link.
We have tried to upgrade manually without command. and also followed steps as per sharing link.
1. Follow Moodle 4.1 system requirement
2. Backup important data
3. Check for plugin updates
5. Put site into maintenance mode
6. Install the new Moodle software
7. copy config file from old version into new Moodle version.
8. and also copy and move all custom plugins and theme to new Moodle version.
The upgrade has been successfully but in old moodle version was some core changes how to reflect in new version. apart from this my theme css has been changed in new Moodle version. some pages are taking padding and margin. would you please tell me that how to fix it issues , manually or is there any way.
In reply to MSHP MATHURA

Re: Moodle 4.0 To Moodle 4.1 upgrade

by Ken Task -
Picture of Particularly helpful Moodlers
I hope you are using a clone of your site and that you took a full site backup prior to upgrade!   You might need to restore the site to 4.0.

"in old moodle version was some core changes"

Does that mean core files from moodle were changed by a programmer?
If so, hopefully, programmer left comments in those files and documented the changes.   And, you, as admin, have a list of those files and where they are located.

What you could try - since the upgrade wasn't a big jump in versions of core code - knowing that it might not work - copy the core files that were changed into new code - replacing files that were acquired via moodle zip.   That's copy ... not move.  You need to retain the originals.   Not only the originals in old moodle, but the new core files (archive those outside of moodle code just in case this suggestion wrecks your moodle - you can put them back).

IF that doesn't work, contact the programmer (which is probably what you should have done prior to attempting upgrade).

You might have to restore the backup you took just prior to upgrade attempt.

Think I'd worry about core stuff first and appearance last.

When it comes to appearance (css) going wonky ... suggest purging the cache to see if that doesn't fix appearance.   That assumes that hacks to core code didn't involve appearance/theme.

'SoS', Ken

In reply to Ken Task

Re: Moodle 4.0 To Moodle 4.1 upgrade

by MSHP MATHURA -
Hi Ken Task,
Just one more things that in old Moodle 3.10 version has one plugin ( course > format > new plugin ). when we was upgrading Moodle 3.10 to Moodle 4.1 then we displayed that some plugins are missing from disk then we copied to new moodle version those displayed missing. but one plugin ( course > format > new plugin) is not looking misssing. Why didn't displayed missing plugin ( course > format > new plugin ). Would you please assist us.
In reply to MSHP MATHURA

Re: Moodle 4.0 To Moodle 4.1 upgrade

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Have you verified the folder is in the course/format folder? Have you checked permissions? You could also try installing through the web interface...
In reply to MSHP MATHURA

Re: Moodle 4.0 To Moodle 4.1 upgrade

by Ken Task -
Picture of Particularly helpful Moodlers
So, you stated earlier that in your step 2:
2. Copy config file from old version to new Moodle 4.1 version
but you did not find and copy all of the addons from moodle.old to moodle_new - that's why you got missing from disk.

Ok you fixed that (?), by copying those stock/standard formats to moodle_new, but now there is a course format that is claiming to be 'new plugin'.

In a stock, no addons, 3.11 code base, there are only weeks, topics, social, and singleactivity course formats (the names shared above are the folder names in /code/course/format/)

There is no 'new plugin' directory.

In 4.1 code (no addons) - course/format/ there are some new ones:
test, classes, templates, and amd.

Verify those subdirectories are there in addition to the ones that were present in the moodle_old.

Does the screen say 'missing from disk' for 'new plugin'?
Ignore it, update the DB.

DB query from mysql client:
mysql> select * from mdl_config_plugins where (plugin like 'format_%' and name like 'version');

Should list all the course formats.

'SoS', Ken