I am not aware to upgrade from 2.4 to 3.6 in step by step but i was upgraded now issue was once upload the course with the user.then we have to create the quiz in that course it showing below error
Team please help me on this is issue.
Below issue was i am facing :
Invalid course module ID
More information about this error
Debug info: SELECT id,course FROM {course_modules} WHERE id IS NULL
[array (
)]
Error code: invalidcoursemodule
Stack trace:
- line 1546 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
- line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 7021 of /lib/accesslib.php: call to moodle_database->get_record()
- line 2503 of /lib/grade/grade_item.php: call to context_module::instance()
- line 1242 of /lib/grade/grade_grade.php: call to grade_item->get_context()
- line 1054 of /lib/grade/grade_grade.php: call to grade_grade->get_context()
- line 369 of /lib/grade/grade_object.php: call to grade_grade->add_feedback_files()
- line 1025 of /lib/grade/grade_grade.php: call to grade_object->insert()
- line 647 of /lib/grade/grade_category.php: call to grade_grade->insert()
- line 567 of /lib/grade/grade_category.php: call to grade_category->aggregate_grades()
- line 743 of /lib/grade/grade_item.php: call to grade_category->generate_grades()
- line 1272 of /lib/gradelib.php: call to grade_item->regrade_final_grades()
- line 2035 of /lib/grade/grade_item.php: call to grade_regrade_final_grades()
- line 290 of /lib/gradelib.php: call to grade_item->update_raw_grade()
- line 865 of /mod/quiz/lib.php: call to grade_update()
- line 751 of /mod/quiz/lib.php: call to quiz_grade_item_update()
- line 775 of /mod/quiz/locallib.php: call to quiz_update_grades()
- line 1968 of /mod/quiz/attemptlib.php: call to quiz_save_best_grade()
- line 1794 of /mod/quiz/attemptlib.php: call to quiz_attempt->process_finish()
- line 93 of /mod/quiz/view.php: call to quiz_attempt->handle_if_time_expired()