Hi
I am getting the following error when trying to access the QA site:
OK. All back up now!
Now when entering the course 101 I get the following errors:
Error: could not insert new context level "70", instance "59". cm with id 59 does not exist
Error: could not insert new context level "70", instance "59". cm with id 59 does not exist
- line 1812 of /lib/accesslib.php: call to debugging()
- line 2138 of /lib/accesslib.php: call to create_context()
- line 3005 of /lib/moodlelib.php: call to get_context_instance()
- line 1304 of /lib/navigationlib.php: call to get_fast_modinfo()
- line 47 of /course/format/weeks/lib.php: call to global_navigation->load_generic_course_sections()
- line 1277 of /lib/navigationlib.php: call to callback_weeks_load_content()
- line 972 of /lib/navigationlib.php: call to global_navigation->load_course_sections()
- line 2105 of /lib/navigationlib.php: call to global_navigation->initialise()
- line 610 of /lib/pagelib.php: call to navbar->has_items()
- line 4 of /theme/binarius/layout/general.php: call to moodle_page->has_navbar()
- line 615 of /lib/outputrenderers.php: call to include()
- line 573 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
- line 200 of /course/view.php: call to core_renderer->header()
Error: could not insert new context level "70", instance "59". cm with id 59 does not exist
- line 1812 of /lib/accesslib.php: call to debugging()
- line 2138 of /lib/accesslib.php: call to create_context()
- line 1340 of /course/lib.php: call to get_context_instance()
- line 110 of /course/format/weeks/format.php: call to print_section()
- line 241 of /course/view.php: call to require()
Incorrect context specified
- line 476 of /lib/accesslib.php: call to debugging()
- line 1340 of /course/lib.php: call to has_capability()
- line 110 of /course/format/weeks/format.php: call to print_section()
- line 241 of /course/view.php: call to require()
I'm getting a similar error everytime I try to add a new activity (Both SCORM and Glossary):
Debug info: Table 'mdl_grade_items' is marked as crashed and should be repaired
SELECT * FROM mdl_grade_items WHERE itemtype = ? AND itemmodule = ? AND iteminstance = ? AND courseid = ?
[array (
0 => 'mod',
1 => 'scorm',
2 => '2',
3 => '3',
)]
Stack trace:
line 378 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 632 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1048 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 182 of /lib/grade/grade_object.php: call to moodle_database->get_records_select()
line 326 of /lib/grade/grade_item.php: call to grade_object::fetch_all_helper()
line 148 of /course/modedit.php: call to grade_item::fetch_all()
Output buffer:
Warning: mysqli::query() [mysqli.query]: (HY000/1194): Table 'mdl_grade_items' is marked as crashed and should be repaired in /html/lib/dml/mysqli_native_moodle_database.php on line 631
AND_________________________
Debug info: Table 'mdl_grade_items' is marked as crashed and should be repaired
SELECT * FROM mdl_grade_items WHERE itemtype = ? AND itemmodule = ? AND iteminstance = ? AND itemnumber = ? AND courseid = ?
[array (
0 => 'mod',
1 => 'glossary',
2 => 0,
3 => 0,
4 => '3',
)]
Stack trace:
line 378 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 632 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1048 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 182 of /lib/grade/grade_object.php: call to moodle_database->get_records_select()
line 138 of /lib/grade/grade_object.php: call to grade_object::fetch_all_helper()
line 315 of /lib/grade/grade_item.php: call to grade_object::fetch_helper()
line 273 of /course/moodleform_mod.php: call to grade_item::fetch()
line 434 of /lib/formslib.php: call to moodleform_mod->validation()
line 393 of /lib/formslib.php: call to moodleform->validate_defined_fields()
line 480 of /lib/formslib.php: call to moodleform->is_validated()
line 225 of /course/modedit.php: call to moodleform->get_data()
Output buffer:
Warning: mysqli::query() [mysqli.query]: (HY000/1194): Table 'mdl_grade_items' is marked as crashed and should be repaired in /html/lib/dml/mysqli_native_moodle_database.php on line 631
Debug info: Table 'mdl_grade_items' is marked as crashed and should be repaired
SELECT * FROM mdl_grade_items WHERE itemtype = ? AND itemmodule = ? AND iteminstance = ? AND courseid = ?
[array (
0 => 'mod',
1 => 'scorm',
2 => '2',
3 => '3',
)]
Stack trace:
line 378 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 632 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1048 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 182 of /lib/grade/grade_object.php: call to moodle_database->get_records_select()
line 326 of /lib/grade/grade_item.php: call to grade_object::fetch_all_helper()
line 148 of /course/modedit.php: call to grade_item::fetch_all()
Output buffer:
Warning: mysqli::query() [mysqli.query]: (HY000/1194): Table 'mdl_grade_items' is marked as crashed and should be repaired in /html/lib/dml/mysqli_native_moodle_database.php on line 631
AND_________________________
Debug info: Table 'mdl_grade_items' is marked as crashed and should be repaired
SELECT * FROM mdl_grade_items WHERE itemtype = ? AND itemmodule = ? AND iteminstance = ? AND itemnumber = ? AND courseid = ?
[array (
0 => 'mod',
1 => 'glossary',
2 => 0,
3 => 0,
4 => '3',
)]
Stack trace:
line 378 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 632 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1048 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 182 of /lib/grade/grade_object.php: call to moodle_database->get_records_select()
line 138 of /lib/grade/grade_object.php: call to grade_object::fetch_all_helper()
line 315 of /lib/grade/grade_item.php: call to grade_object::fetch_helper()
line 273 of /course/moodleform_mod.php: call to grade_item::fetch()
line 434 of /lib/formslib.php: call to moodleform_mod->validation()
line 393 of /lib/formslib.php: call to moodleform->validate_defined_fields()
line 480 of /lib/formslib.php: call to moodleform->is_validated()
line 225 of /course/modedit.php: call to moodleform->get_data()
Output buffer:
Warning: mysqli::query() [mysqli.query]: (HY000/1194): Table 'mdl_grade_items' is marked as crashed and should be repaired in /html/lib/dml/mysqli_native_moodle_database.php on line 631
Thanks, Jordan! Will resume with some testing and will let you know.
Cheers,
Joe
Cheers,
Joe