Hi all,
We are still running trial conversions of copies of our entire dataset (db, and all files) from version 1.9.12 to 2.0.4. We've even fixed (I hope) faults with the wiki conversion (but only from ewiki to nwiki in Moodle 2). BUT I have a bug! With debug still switched on in config.
After the conversion I created a new course, just an empty dummy course, no users (except those who enherited a role from the category), and no content. IT ALL WORKED FINE! Then I deleted the course. A load of errors as follows...
INSERT INTO mdl_grade_items_history (courseid,categoryid,itemname,itemtype,itemmodule,iteminstance,itemnumber,iteminfo,
array (
0 => '1139',
1 => NULL,
2 => NULL,
3 => 'course',
4 => NULL,
5 => '1005',
6 => NULL,
7 => NULL,
8 => NULL,
9 => NULL,
10 => '1',
11 => '100.00000',
12 => '0.00000',
13 => NULL,
14 => NULL,
15 => '0.00000',
16 => '1.00000',
17 => '0.00000',
18 => '0.00000',
19 => '1',
20 => '0',
21 => NULL,
22 => '0',
23 => '0',
24 => '1',
25 => 1312922136,
26 => '0',
27 => 1,
28 => '5016',
29 => 'system',
30 => '4309',
)]
line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 878 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 920 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 319 of /lib/grade/grade_object.php: call to mysqli_native_moodle_database->insert_record()
line 403 of /lib/grade/grade_item.php: call to grade_object->insert()
line 1268 of /lib/grade/grade_category.php: call to grade_item->insert()
line 1241 of /lib/grade/grade_category.php: call to grade_category->get_grade_item()
line 212 of /lib/grade/grade_category.php: call to grade_category->load_grade_item()
line 380 of /lib/grade/grade_category.php: call to grade_category->update()
line 1454 of /lib/grade/grade_category.php: call to grade_category->insert_course_category()
line 1224 of /lib/gradelib.php: call to grade_category::fetch_course_category()
line 4032 of /lib/moodlelib.php: call to remove_course_grades()
line 3964 of /lib/moodlelib.php: call to remove_course_contents()
line 73 of /course/delete.php: call to delete_course()