Installing and upgrading help

Upgrading from 2.8.5 to 3.4

 
Picture of TGS School
Upgrading from 2.8.5 to 3.4
 

Hi,

Our school is running moodle ver 2.8.5 and we are looking at upgrading to the latest version.  Is it possible to build a new instance of moodle (3.4) and just import the data from 2.8 or do I need to follow the upgrade path.  2.8 to 3 to 3.4?


 
Average of ratings: -
Picture of Howard Miller
Re: Upgrading from 2.8.5 to 3.4
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

If you only have a few courses, you can use backup and restore to import the courses into a new, empty site. Other than that, "importing the data" doesn't make much sense. There's no option for that. 

You can upgrade from 2.8 to 3.4 in one step. I know others (ken!) disagree but using the latest code gives you the advantage of having any bug fixes in the upgrade code. 

However, before you do anything, ***make sure you have good backups***

If your site is large and/or complicated it's a very good idea to clone the site and do a test upgrade. 

 
Average of ratings: -
Picture of Paul Holden
Re: Upgrading from 2.8.5 to 3.4
Core developersParticularly helpful MoodlersPlugin developers

You can upgrade from 2.8 to 3.4 in one step.

Please see 3.4 upgrading section of docs, you must upgrade to 3.0 as an intermediate step wink

Simplest way confirm requirements prior to an upgrade is via you site environment page.

 
Average of ratings: Useful (3)
Picture of Howard Miller
Re: Upgrading from 2.8.5 to 3.4
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

*cough* blush

Glad somebody read the instructions. 

 
Average of ratings: -
Picture of Ken Task
Re: Upgrading from 2.8.5 to 3.4
Particularly helpful Moodlers

Well, Howard rattled my tree smile ... sooo ... first +1 to Howard's advice and to Paul's ... just one note since going from 2.8 to 3.4 ... pulling the trigger on upgrading PHP during the upgrade plan.   Must have at least 3.0.x before PHP 7.0 is supported and think higher when using PHP 7.1.

Research additional plugins (of which themes are now considered plugins) especially the addons currently running in the 2.8.x to see if there is a compat version in the destination version.  In the past, have had an addon stop an upgrade dead in it's tracks. :\

Hate to mention it but due to a recent experience, any special setup of blocks ... important core blocks ... like the admin block (which in newer versions seems to have 'merged' into course admin blocks as well).

Also knowing (to a lesser extent but still important), when to pull the trigger on converting DB from Antelope to Barracuda + new character set/collation for DB) - if MySQL/MariaDB.

In whatever plan you execute, stop at each upgraded version, check environment again.   Also check if there are updates to any addons and apply them before the next step/hop.

It's for those reasons ... major changes of the known and the 'unknown' ... that I prefer a 'march' - full site backups along the way.   The 'march' much eaiser if using git and the CLI scripts in admin/cli/.  And, as of recent, one can skip every version in between current and destination while 'marching'.

'spirit of sharing', Ken



 
Average of ratings: -
Picture of Howard Miller
Re: Upgrading from 2.8.5 to 3.4
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Yes indeed... there have been quite a lot of critical changes in requirements over the last few versions and some are not backwards compatible. You need to read the release notes carefully (of all the major versions you will be upgrading through) and to make a plan. 

Of course, the easiest thing is to (more or less) try to keep up with upgrades. 

 
Average of ratings: -