Hello,
I have just successfully upgraded from 2.0 to 2.2 via 2.1, and would now like to partially upgrade the quizzes still to be upgraded.
During the upgrade to 2.1 I used Tim Hunt's qeupgradehelper and the partialupgrade.php script to upgrade just some of the 600+ quizzes we have on our site. Having checked that the upgrade to 2.1 was OK, I then upgraded to version 2.2, and everything seems to be in order.
I now want to upgrade the remaining 500 or so quizzes (=39,311 attempts & 393,157 question sessions) that were not upgraded in the upgrade from 2 to 2.1. However, whenever the cron is run, the upgrade process seems to take an inordinately long time or even stall on the 90 or so quizzes that have > 1,000 question sessions. For example, a quiz with 53 attempts and 1060 question sessions took 40 minutes to update.
So, I have tried to use the partialupgrade.php script to upgrade only the 400+ quizzes that have < 1,000 question sessions. I have tried using this code in the partialupgrade.php script
function tool_qeupgradehelper_get_quizzes_to_upgrade() {
return array(54, ... here I list only quizzes to be updated);
}
but when the cron is run, it seems to ignore these partial upgrade 'instructions'. Using Terminal to run the cron I can see that it is attempting to upgrade even the 'large' quizzes.
So, is there a way to use partialupgrade.php after upgrading to 2.2?
Or, what could be the cause the upgrade failing on quizzes with > 1,000 question sessions?
I realise that I can manually upgrade each quiz via the Question engine upgrade helper in the Site Admin, but I'd like to avid this.
- now using moodle 2.2.1
- mysql 5.5.9
- php 5.3.3
- Apache 2.2.15