by Simon Brock.
we are experiencing a similar error but in the course_modules :
Can not find data record in database table course_modules.
Debug info: SELECT id,course FROM {course_modules} WHERE id = ? [array ( 0 => '39683', )]
Error code: invalidrecord Stack trace:
- line 1357 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
- line 1333 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 6799 of /lib/accesslib.php: call to moodle_database->get_record()
- line 1029 of /lib/modinfolib.php: call to context_module::instance()
- line 310 of /lib/modinfolib.php: call to cm_info->__construct()
- line 1341 of /lib/modinfolib.php: call to course_modinfo->__construct()
- line 1000 of /lib/completionlib.php: call to get_fast_modinfo()
- line 47 of /report/progress/lib.php: call to completion_info->get_activities()
- line 2459 of /lib/navigationlib.php: call to report_progress_extend_navigation_course()
- line 1133 of /lib/navigationlib.php: call to global_navigation->add_course_essentials()
- line 2920 of /lib/navigationlib.php: call to global_navigation->initialise()
- line 766 of /lib/pagelib.php: call to navbar->has_items()
- line 4 of /theme/canvas/layout/general.php: call to moodle_page->has_navbar()
- line 804 of /lib/outputrenderers.php: call to include()
- line 734 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
- line 230 of /course/view.php: call to core_renderer->header()
we have run the cron script several times but has not fixed the error, also tried moving the course to another category