I upgraded a Moodle installation from 2.3.11 to 2.5.5 (unfortunately, skipped the step to 2.4). When I tried to upgrade the hotpot module subsequently to its latest version I got the following error message:
Cannot insert grade item without course id!
More information about this error
Error code: cannotinsertgrade
line 476 of /lib/setuplib.php: moodle_exception thrown
line 381 of /lib/grade/grade_item.php: call to print_error()
line 128 of /lib/gradelib.php: call to grade_item->insert()
line 1005 of /mod/hotpot/lib.php: call to grade_update()
line 1135 of /mod/hotpot/lib.php: call to hotpot_grade_item_update()
line 1050 of /mod/hotpot/lib.php: call to hotpot_update_grades()
line 805 of /mod/hotpot/db/upgrade.php: call to hotpot_update_grades()
line 683 of /lib/upgradelib.php: call to xmldb_hotpot_upgrade()
line 404 of /lib/upgradelib.php: call to upgrade_plugins_modules()
line 1607 of /lib/upgradelib.php: call to upgrade_plugins()
line 412 of /admin/index.php: call to upgrade_noncore()
I wonder if anyone got this before and if there is a solution for it. At the moment the hotpot version in the 2.5.5 Moodle installation remains as it was in 2.3.11 and it works.