[18-Feb-2025 02:19:53 Australia/Melbourne] Default exception handler: Can't find data record in database. Debug: SELECT cm.*, m.name, md.name AS modname , cw.section AS sectionnum
              FROM {course_modules} cm
                   JOIN {modules} md ON md.id = cm.module
                   JOIN {folder} m ON m.id = cm.instance
                   LEFT JOIN {course_sections} cw ON cw.id = cm.section
             WHERE cm.id = :cmid AND md.name = :modulename
                   
[array (
  'cmid' => 0,
  'modulename' => 'folder',
)]
Error code: invalidrecordunknown
* line 1686 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
* line 1283 of /lib/datalib.php: call to moodle_database->get_record_sql()
* line 39 of /mod/folder/view.php: call to get_coursemodule_from_id()

