-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.1, 3.7.5, 3.8.2
-
MOODLE_24_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
Receiving the following dialogue when attempting to 'View course report' via the Course Completion Status block.
Notice: Trying to get property of non-object in /home/xyz/public_html/completion/criteria/completion_criteria_course.php on line 138
Can not find data record in database table course.
More information about this error
Debug info: SELECT id,category FROM
{course} WHERE id IS NULL
[array (
)]
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 6541 of /lib/accesslib.php: call to moodle_database->get_record()
line 138 of /completion/criteria/completion_criteria_course.php: call to context_course::instance()
line 417 of /report/completion/index.php: call to completion_criteria_course->get_title_detailed()
- is duplicated by
-
MDL-66798 Cannot find data record in database table course for course completion when the course required has been deleted
- Closed
- will help resolve
-
MDL-68005 'Complete another course' isn't performing enough sanity checks, resulting in broken database records and an inability to view the completion report.
- Closed