Calendário
Debug info: MySQL server has gone away
SELECT e.*
FROM mdl_event e
INNER JOIN (SELECT ev.modulename,
ev.instance,
ev.eventtype,
MIN(ev.priority) as priority
FROM mdl_event ev
WHERE (ev.groupid = 0 AND ev.courseid = ?)
GROUP BY ev.modulename, ev.instance, ev.eventtype) fe
ON e.modulename = fe.modulename
AND e.instance = fe.instance
AND e.eventtype = fe.eventtype
AND (e.priority = fe.priority OR (e.priority IS NULL AND fe.priority IS NULL))
LEFT JOIN mdl_modules m
ON e.modulename = m.name
WHERE (m.visible = 1 OR m.visible IS NULL) AND (timestart >= ? OR timestart + timeduration > ?) AND timestart <= ? AND ((e.groupid = 0 AND e.courseid = ?)) AND (e.visible = 1)
ORDER BY COALESCE(e.timesort, e.timestart) ASC, e.id ASC LIMIT 0, 40
[array (
0 => '1',
1 => 1435719600,
2 => 1435719600,
3 => 1438397999,
4 => '1',
)]
Error code: dmlreadexception
SELECT e.*
FROM mdl_event e
INNER JOIN (SELECT ev.modulename,
ev.instance,
ev.eventtype,
MIN(ev.priority) as priority
FROM mdl_event ev
WHERE (ev.groupid = 0 AND ev.courseid = ?)
GROUP BY ev.modulename, ev.instance, ev.eventtype) fe
ON e.modulename = fe.modulename
AND e.instance = fe.instance
AND e.eventtype = fe.eventtype
AND (e.priority = fe.priority OR (e.priority IS NULL AND fe.priority IS NULL))
LEFT JOIN mdl_modules m
ON e.modulename = m.name
WHERE (m.visible = 1 OR m.visible IS NULL) AND (timestart >= ? OR timestart + timeduration > ?) AND timestart <= ? AND ((e.groupid = 0 AND e.courseid = ?)) AND (e.visible = 1)
ORDER BY COALESCE(e.timesort, e.timestart) ASC, e.id ASC LIMIT 0, 40
[array (
0 => '1',
1 => 1435719600,
2 => 1435719600,
3 => 1438397999,
4 => '1',
)]
Error code: dmlreadexception
Stack trace:
- line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1175 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 253 of /calendar/classes/local/event/strategies/raw_event_retrieval_strategy.php: call to mysqli_native_moodle_database->get_records_sql()
- line 59 of /calendar/classes/local/event/strategies/raw_event_retrieval_strategy.php: call to core_calendar\local\event\strategies\raw_event_retrieval_strategy->get_raw_events_legacy_implementation()
- line 170 of /calendar/classes/local/event/data_access/event_vault.php: call to core_calendar\local\event\strategies\raw_event_retrieval_strategy->get_raw_events()
- line 103 of /calendar/classes/local/api.php: call to core_calendar\local\event\data_access\event_vault->get_events()
- line 3326 of /calendar/lib.php: call to core_calendar\local\api::get_events()
- line 379 of /calendar/renderer.php: call to calendar_get_legacy_events()
- line 139 of /calendar/view.php: call to core_calendar_renderer->show_month_detailed()