Debug info: SELECT cm.*, m.name, md.name AS modname
FROM {course_modules} cm
JOIN {modules} md ON md.id = cm.module
JOIN {url} m ON m.id = cm.instance
WHERE cm.id = :cmid AND md.name = :modulename
[array (
'cmid' => 7742,
'modulename' => 'url',
)]
Error code: invalidrecordunknown
FROM {course_modules} cm
JOIN {modules} md ON md.id = cm.module
JOIN {url} m ON m.id = cm.instance
WHERE cm.id = :cmid AND md.name = :modulename
[array (
'cmid' => 7742,
'modulename' => 'url',
)]
Error code: invalidrecordunknown
Stack trace:
- line 1674 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
- line 1262 of /lib/datalib.php: call to moodle_database->get_record_sql()
- line 41 of /mod/url/view.php: call to get_coursemodule_from_id()