Upgrade from version 23 to 28

Upgrade from version 23 to 28

by Alberto Montoto -
Number of replies: 9

I'm trying to upgrade a really old installation (23) and must do several upgrades, before reaching the last Moodle version due to upgrades requirements.

When tried to do the first upgrade from version 23 to 28, I found the following issue, preventing me to move forward.

Would you have an advice?

Plugin dependencies check

Dependencies check failed for block_feedback, block_glossary_random, block_news_items, block_quiz_results, block_search_forums, filter_data, filter_glossary, tool_assignmentupgrade, theme_afterburner, theme_anomaly, theme_arialist, theme_decaf, theme_magazine, theme_overlay, theme_serenity, theme_splash, theme_standard
Plugin nameDirectorySourceCurrent versionNew versionRequiresStatus
Blocks
 Feedback/blocks/feedbackStandard20120617002014111000
  • Moodle 2014110400
  • mod_feedback (2014110400)
To be upgraded
 Random glossary entry/blocks/glossary_randomStandard20120617002014111000
  • Moodle 2014110400
  • mod_glossary (2014110400)
To be upgraded
 Latest news/blocks/news_itemsStandard20120617002014111000
  • Moodle 2014110400
  • mod_forum (2014110400)
To be upgraded
 Quiz results/blocks/quiz_resultsStandard20120617002014111000
  • Moodle 2014110400
  • mod_quiz (2014110400)
To be upgraded
 Search forums/blocks/search_forumsStandard20120617002014111000
  • Moodle 2014110400
  • mod_forum (2014110400)
To be upgraded
Text filters
 Database auto-linking/filter/dataStandard20120617002014111000
  • Moodle 2014110400
  • mod_data (2014110400)
To be upgraded
 Glossary auto-linking/filter/glossaryStandard20120617012014111000
  • Moodle 2014110400
  • mod_glossary (2014110400)
To be upgraded
Admin tools
 Assignment upgrade helper/admin/tool/assignmentupgradeStandard20120617002014111000
  • Moodle 2014110400
  • mod_assign (2014110400)
To be upgraded
Themes
 Afterburner/theme/afterburnerAdditional20120617002014041400
  • Moodle 2014041101
  • theme_base (2013110500)
To be upgraded
 Anomaly/theme/anomalyAdditional20120617002014041400
  • Moodle 2014041101
  • theme_base (2013110500)
To be upgraded
 Arialist/theme/arialistAdditional20120617002014041400
  • Moodle 2014041101
  • theme_canvas (2013110500)
To be upgraded
 Decaf/theme/decafAdditional20120531002015103001
  • Moodle 2013110500
  • theme_bootstrapbase (2013110500)
To be upgraded
 Magazine/theme/magazineAdditional20120617002014041400
  • Moodle 2014041101
  • theme_canvas (2013110500)
To be upgraded
 Overlay/theme/overlayAdditional20120617002014041400
  • Moodle 2014041101
  • theme_canvas (2013110500)
To be upgraded
 Serenity/theme/serenityAdditional20120617002014041400
  • Moodle 2014041101
  • theme_canvas (2013110500)
To be upgraded
 Splash/theme/splashAdditional20120617002014041400
  • Moodle 2014041101
  • theme_canvas (2013110500)
To be upgraded
 Standard/theme/standardAdditional20120617002014041400
  • Moodle 2014041101
  • theme_base (2013110500)
To be upgraded
You must solve all the plugin requirements before proceeding to install this Moodle version!

Looking forward to receiving your advice.

Average of ratings: -
In reply to Alberto Montoto

Re: Upgrade from version 23 to 28

by Alberto Montoto -
Can anybody help?
In reply to Alberto Montoto

Re: Upgrade from version 23 to 28

by Ken Task -
Picture of Particularly helpful Moodlers

Hope you started by making a backup of the 23 ... code + DB dump (sql).

Reason ... not sure you can hyperjump from 23 to 28.   Don't have a version 2.x to look at anymore it's so old, but ... as part of planning, once the 23 is restored go to Site Admin Server Environment check.   Update the component.   Then use the drop down list of moodle versions above current version to see what Moodle says about environment and things like PHP version as well as MySQL version.   Reds mean must do prior to the next version upwards with Moodle.

If you have addons/plugins check moodle's plugins online to see if there is a compatible version of those with version you are upgrading to ... current upgrade as well as future upgrades and destination version.  Some 2 plugins didn't make the trip ... so those will have to go.

Best if the 23 site had been installed via git and you have commandline access to server.  One could perform the 'moodle march' via commandline ... paying attention to 'Reds' in environment checks and performing php/mysql upgrades prior to the next hop (but not before).   If site not under git now, one could side load git acquired code and with some work could eventually get the site under git to the highest 2.3.x before using git to 'march' the moodle through versions to destination version.

If I re-call correctly around version 2.6 major change to theme ... all those you see listed in your check (cept default themes of moodle) had to be removed ... not only the foldlers in themes but from the mdl_config_plugins table (manually - bug never fixed).

Consult Moodle versions for mapping out what you need to do at what version and how far one can hop.

https://docs.moodle.org/dev/Releases

https://docs.moodle.org/24/en/Upgrading

change the number above ... the 24 to see next version upwards.

And for every version gain you are able to do, make sure you backup code + DB dump before the next hop ... don't wanna loose what you've gained.

To be honest, if you can login to the 23, might be better off (path of least resistance) standing up a fresh version 3.x of Moodle, and try restoring individual course backups to the 3.   That depending upon number of courses, but ... even if you had a bunch, one could use CLI moosh to restore courses to a pre-exisiting category in the 3 moodle.   Did that once ... took all day! :|

If you install the 3.9.x via git you won't have the issues you have now ... pain in the arse upgrading and thus putting it off until gotta ... thus situation site is in now. sad

https://docs.moodle.org/39/en/Git_for_Administrators

'SoS', Ken


In reply to Alberto Montoto

Re: Upgrade from version 23 to 28

by Ken Task -
Picture of Particularly helpful Moodlers

Somewhere along the march, Moodle updated assignments.   Old assignment plugin now called assign.

If you see a link in site admin menu for 'Assignment Upgrade Helper' use it.

In versions 3.x, that disappeared from admin menus.

Same goes for 'Quiz Upgrade Helper' ... if I re-call correctly.

'SoS', Ken


In reply to Alberto Montoto

Re: Upgrade from version 23 to 28

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

Is there a specific reason why you need release 2.8? If your aim is to march your site to the latest release, then many routes are possible. I prefer the LTS route, 2.7 -> 3.1 -> 3.5 -> 3.9. Due to longer use the LTS are more polished.

About the themes: You can delete all of them. Moodle took all these themes out and made Clean and More the standard themes (to be replaced later by Boost and so on).
In reply to Visvanath Ratnaweera

Re: Upgrade from version 23 to 28

by Alberto Montoto -
Hi Visvanath, there is no specific reason; I thought the jump should be from 2.3 to 2.8, but thank you for your advice.

I will avoid copying the "theme" and "mod" backups, as suggested in all migration references, and will use those ones in new Moodle versions.

If that doesn't work; I will follow @Ken advice to try restoring individual course backups to the 3x version, starting with a fresh install.

Thank you both
In reply to Alberto Montoto

Re: Upgrade from version 23 to 28

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

Older the release is, it gets more difficult to march forward. Moodle 2.3 was supported during 2012/13 https://docs.moodle.org/dev/Releases#Moodle_2.3. It is quite possible that course-wise backup and restore of the content is a better solution. If you want to try the side-upgrade route, you can take a copy to a staging server https://docs.moodle.org/23/en/Moodle_migration and try.

In fact, I see that you've tried once: https://moodle.org/mod/forum/discuss.php?d=409111. Why didn't you follow up?

Keep in mind that each Moodle release is bound to a range of system software. They are documented in the series of https://docs.moodle.org/dev/Moodle_3.1_release_notes under Server_requirements, for eg. There's summary here: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases.
In reply to Visvanath Ratnaweera

Re: Upgrade from version 23 to 28

by Alberto Montoto -
Hi,
I came back from vacation and found a response from Ken saying: "You are 100% correct in suggesting cloning and on the clone step through an upgrade to the 2's prior to migrating to new CentOS 7 hosting."
I was doing that, in the old server, and found the issues leading to this new topic.
I'll keep you updated on both topics.