Found the solution to my problem. I made changes to course/lib.php in version 1.1 which I copied across instead of customising the version 1.2 script. Duh..
Installing and upgrading help
Upgrade problem 1.1 to 1.2.1
This discussion has been locked so you can no longer reply to it.