All Assignment Links Have Disappeared After Upgrade 2.6.1 to 2.9.4

All Assignment Links Have Disappeared After Upgrade 2.6.1 to 2.9.4

by Mark McNulty -
Number of replies: 2

Hi...

Would really appreciate any help or advice on a problem that's potentially something of a disaster for our school site...

So basically, our Moodle host has just upgraded our site from 2.6.1 to 2.9.4.

And all seems fine...except that ALL our old Assignment upload links have vanished. They simply do not appear on the updated pages! Totally disappeared!

Trouble is that we had a VERY large number of Assignments - and so it looks like we have lots a massive amount of files uploaded by students.

I am wondering if the 'old' version of Assignment is simply incompatible with the new version? But even so, would the old links really have been 'deleted' in the upgrade?

Looks like I should have done more research before we did this upgrade - but any insights/advice would be hugely appreciated.

Many thanks in advance,

Mark McNulty



Average of ratings: -
In reply to Mark McNulty

Re: All Assignment Links Have Disappeared After Upgrade 2.6.1 to 2.9.4

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

It sounds as if all your assignments were probably still using the old (2.2) assignment module.

I believe that is still available in a core install (and I'm quite sure it was in 2.9), but it is turned off (and therefore hidden) by default.

If you go to http://path/to/your/moodle/admin/modules.php and enable the Assignment (2.2) activity, do your assignments reappear?

If so, firstly, great you have them back, secondly, get them upgraded to the newer assignment style asap smile


A linked point on upgrade workflow in a high stakes environment such as this: what I do at least - in outline anyway... (doesn't help with the current situation, but maybe useful for others in the future)

1. On a test server (can be any computer so long as it has a LAMP/WAMP environment) copy your current moodle code and install it (don't worry about data at this stage, treat it as a fresh install)

2. Perform an upgrade as planned, including all your plugins to make sure everything still works as planned - this is just testing compatability of plugins in your combination, ensuring your theme works etc.

3. Clone your live site to the test server (this can be more complex and may need more than a localhost test set up if you are a large institution - but in that instance, I would also recommend this is done on as close to a mirror of your live setup as possible, server setup, php.ini etc)

4. Do the same kind of upgrade test on this clone as a test environment and make sure everything works as expected (e.g. your assignments are still there)

5. Backup your live site fully - codebase, moodledata & moodle database - allowing you the ability to rollback in the drastic case that something goes wrong despite your advance testing

6. Upgrade your live site

In reply to Mark McNulty

Re: All Assignment Links Have Disappeared After Upgrade 2.6.1 to 2.9.4

by Ken Task -
Picture of Particularly helpful Moodlers

@Richard's response is safest, but ... check something before you begin ...

Strange that all links to assignments would disappear like that ... bet the data is still in the DB (for your sake, am hoping).  

Before the upgrade took place, did you do a full site backup? ... that included a DB dump.

Before doing the following, strongly suggest making a DB dump and make sure the name of the dump indicates in it's name something like '...p2upassign...' (prior 2 upgrading assignments) and the Moodle's current version (so we don't get confused when/if having to use those dumps to restore to a 'state').

Is there an 'upgrade assignments' link in the site admin menu?   I have gained admin levels to sites that did not convert old assignments to new assignments back when the change took place ... around version 2.3.x or so ... and had to convert old assignments to new.  

The menu link will provide a page that has a link to list all assignments that need converting.   Click it.  It will present links to old assignments ... something like 20 at a time with page links (in your case a bunch of them).   Should have a drop down to select the number of assignments to convert at one time.   Suggest you might have to set to the lowest (not highest) and step through many similar pages to get them all converted.   Had one site that literally took 3 hours ... lots of clicking on next page of assignments to be converted .. 10 at a time.   Anything else, however, would fail ... just too much processing for server to do.

Oh, yeah, might be a good idea to put the site in the maintenance mode while you are doing the above - however long it takes. 

Once all assignments have been converted, go to the modules and hide the old assignment mod leaving only the new assignment mod to be used when/if new assignments are created.

'spirit of sharing', Ken