Curso introductorio a las prácticas de formación profesional
Información de depuración: Index for table 'mdl_files' is corrupt; try to repair it
SELECT cm.id AS cmid, MAX(f.sortorder) AS sortorder
FROM mdl_course_modules cm
JOIN mdl_modules m ON m.id = cm.module and m.name = 'resource'
JOIN mdl_resource r ON cm.instance = r.id
JOIN mdl_context ctx ON ctx.contextlevel = ? AND ctx.instanceid = cm.id
JOIN mdl_files f ON f.component = 'mod_resource' AND f.filearea = 'content' AND f.contextid = ctx.id
AND f.itemid = 0 AND f.filesize > 0 and f.filename != '.'
WHERE cm.course = ? AND cm.deletioninprogress = 0 AND r.display NOT IN (?,?,?) GROUP BY cm.id
[array (
0 => 70,
1 => 921,
2 => 6,
3 => 3,
4 => 4,
)]
Error code: dmlreadexception
SELECT cm.id AS cmid, MAX(f.sortorder) AS sortorder
FROM mdl_course_modules cm
JOIN mdl_modules m ON m.id = cm.module and m.name = 'resource'
JOIN mdl_resource r ON cm.instance = r.id
JOIN mdl_context ctx ON ctx.contextlevel = ? AND ctx.instanceid = cm.id
JOIN mdl_files f ON f.component = 'mod_resource' AND f.filearea = 'content' AND f.contextid = ctx.id
AND f.itemid = 0 AND f.filesize > 0 and f.filename != '.'
WHERE cm.course = ? AND cm.deletioninprogress = 0 AND r.display NOT IN (?,?,?) GROUP BY cm.id
[array (
0 => 70,
1 => 921,
2 => 6,
3 => 3,
4 => 4,
)]
Error code: dmlreadexception
Trazado de la pila (stack):
- line 497 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 346 of /lib/dml/moodle_read_replica_trait.php: call to moodle_database->query_end()
- line 1364 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
- line 107 of /course/format/tiles/classes/local/modal_helper.php: call to mysqli_native_moodle_database->get_records_sql()
- line 218 of /course/format/tiles/classes/local/modal_helper.php: call to format_tiles\local\modal_helper::get_resource_modal_cmids()
- line 265 of /course/format/tiles/classes/local/modal_helper.php: call to format_tiles\local\modal_helper::get_modal_allowed_cm_ids()
- line 153 of /course/format/tiles/classes/output/course_output.php: call to format_tiles\local\modal_helper::get_modal_allowed_cm_ids_integer_list()
- line 55 of /course/format/tiles/classes/output/renderer.php: call to format_tiles\output\course_output->__construct()
- line 84 of /course/format/classes/output/section_renderer.php: call to format_tiles\output\renderer->render_content()
- line 58 of /course/format/tiles/format.php: call to core_courseformat\output\section_renderer->render()
- line 366 of /course/view.php: call to require()