Upgrading 1.9 to 2.4

Upgrading 1.9 to 2.4

Alan Robbins發表於
Number of replies: 9

Hello Everyone

Thanks for taking the time to read this.  I am new to Moodle, but experienced in php/linux/mysql and LMS systems.

We have a customer on Moodle 1.9 that wants to upgrade to 2.4  Here's what we did:

Installed 1.9 from the download page.  Easy as can be.

Backed up the existing site, restored it into the new site.  Went great.  Courses are in LAMS format, they play perfectly, users came over, without passwords which makes perfect sense.

Downloaded the 2.0 version from the download page.

Followed the instructions:

Copied config.php elsewhere.

Overwrote the source files.

Put the config.php back.

Ran the CLI upgrader in admin/cli/upgrade.php

Ran for a while and died with: 

Default exception handler: Plugin "mod_exercise" is defective or outdated, can not continue, sorry. Debug: Plugin is not compatible with Moodle 2.x or later.

This doesn't make any sense to us as we started with an out of the box 1.9 moodle.   Really not sure how to proceed - googled for answers, no luck.  I would think a plug in would be something that we would have had to install.


Thanks again for reading and offering help.

評比平均分數: -
In reply to Alan Robbins

Re: Upgrading 1.9 to 2.4

Alan Robbins發表於

It just gets better and better.


I thought OK, no problem I'll just delete the offensive module and redo the upgrade from scratch.

The following modules in a bone stock 1.9 refuse to upgrade: exercise, hotpot, journal, lams

And once you've gotten through that, /blocks/admin fails.

And now it just crashed on block/admin_tree


Silly me, but one would think this would all be documented somewhere, and I could simply delete all the stock components that won't upgrade and go on.  Think I'll start a moodle support company and charge for this 眨眼

In reply to Alan Robbins

Re: Upgrading 1.9 to 2.4

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 Plugin developers的相片

Overwrote the source files.

No, this is wrong. Don't overwrite.  Move the old Moodle folder out of the way, put the new one in its place, and then copy the config from the old folder to the new. Once you have updated core, then update 3rd-party (=non-core) plugins as needed, e.g. HotPot. See these docs:

  • Moodle docs: Upgrading
    Move your old Moodle software program files to another location.
    Do NOT copy new files over the old files.

Your upgrade path should be: 1.9 (-> 2.0) -> 2.2 -> 2.4

Probably you have your own reasons for stopping at 2.4, but I recommend going at least for 2.6 because it is more recent, so it will be supported for longer. Of course, the most recent stable version is 2.7, and I understand that 2.7 will be supported for a very long time.

I suggest you go back to your Moodle 1.9 backup of the database and files, and upgrade again following the intructions in the Moodle docs.

Your frustration is understandable, but the sarcasm evident in your previous message is not endearing.

評比平均分數:Useful (1)
In reply to Gordon Bateson

Re: Upgrading 1.9 to 2.4

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

As above, but just to reiterate that 2.4 will cease to be supported very soon so you are advised to go for something newer. 

In reply to Alan Robbins

Re: Upgrading 1.9 to 2.4

Robert Brenstein發表於
I concur with others that you should go from 1.9 to 2.2 then to 2.6, or 2.7 if your server allows for that, at the end. That is actually documented somewhere. I want to add that there is a known technological discontinuity when switching from 1.9 to 2.x, so your experience is not a surprise. A number of modules do not transfer cleanly at least for some people. Some modules can't transfer content at all and need to be basically recreated in 2.x. Some modules that were in core are no longer there. It is basically a trial-and-error game. A good backup is critical. It is usually a good idea to keep the 1.9 site running and get the 2.x running in parallel.
In reply to Robert Brenstein

Re: Upgrading 1.9 to 2.4

Alan Robbins發表於

Thanks for all the advice and counsel this is a great forum.

My comment about starting a moodle consulting company was not at all meant to be sarcastic, it was a joke as so many open source type deals have a family of consulting companies built around them.

I was able to run the upgrade as suggested and we have a 2.0 Moodle.  Just one problem... not a single person can log in.  It says the password is bad - and the forgot password functions no longer work either.  So we have a nice shiny 2.0... but no one can use it.

Trying to reverse engineer how the passwords are hashed so I can get the admin account back. MD5 maybe?



In reply to Alan Robbins

Re: Upgrading 1.9 to 2.4

Alan Robbins發表於

Cracked the admin account by updating it from mysql using MD5 hash....

So for now, we're good, looking on how to make the 800 users happy.



In reply to Alan Robbins

Re: Upgrading 1.9 to 2.4

jason everling發表於

Within the old config.php for 1.9 did you copy the same $CFG->passwordsaltmain = . If you do not have the same value as in 1.9 then this would cause the login issues.

Also during your upgrade you could have just got the 2.x compatible versions of those plugins like hotpot, journal and such from https://moodle.org/plugins/ and you would not have had to delete them.

JASON

In reply to jason everling

Re: Upgrading 1.9 to 2.4

Alan Robbins發表於

Thanks Jason.  I didn't know it had salting - good tip - no doubt the out of the box 1.9 moodle had a default salt value.


I don't think our client is using most of the features that are there, we're waiting for them to tell us we upgraded it right.


Thanks again (to everyone) for all the advice and support.