Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.4.1, 3.7.5, 3.8.2
-
Component/s: Course completion
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_24_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
Fixed Branches:MOODLE_37_STABLE, MOODLE_38_STABLE
-
Pull from Repository:
-
Pull 3.8 Branch:
MDL-40081-38 -
Pull Master Branch:
-
Pull Master Diff URL:
Description
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()
Attachments
Issue Links
- 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.
-
- Open
-