Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 3.5.1
-
Component/s: Calendar
Description
Error in
File: /calendar/lib.php
Line: 3799
Content: FROM {course}
BugFix: FROM {course} c
Errormessage befor fixed:
Unknown column 'c.id' in 'field list'
SELECT
c.id, c.visible, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance
FROM mdl_course
JOIN mdl_context ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = ?)
[array (
0 => 50,
)]
Error code: dmlreadexception
- line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1184 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 3804 of /calendar/lib.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 71 of /calendar/classes/local/event/forms/create.php: call to calendar_get_allowed_event_types()
- line 204 of /lib/formslib.php: call to core_calendar\local\event\forms\create->definition()
- line 3607 of /calendar/lib.php: call to moodleform->__construct()
- line 7698 of /lib/moodlelib.php: call to calendar_output_fragment_event_form()
- line 415 of /lib/external/externallib.php: call to component_callback()
- line 228 of /lib/externallib.php: call to core_external::get_fragment()
- line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
Unknown column 'c.id' in 'field list'
SELECT
c.id, c.visible, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance
FROM mdl_course
JOIN mdl_context ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = ?)
[array (
0 => 50,
)]
Error code: dmlreadexception - line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1184 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 3804 of /calendar/lib.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 71 of /calendar/classes/local/event/forms/create.php: call to calendar_get_allowed_event_types()
- line 204 of /lib/formslib.php: call to core_calendar\local\event\forms\create->definition()
- line 3607 of /calendar/lib.php: call to moodleform->__construct()
- line 7698 of /lib/moodlelib.php: call to calendar_output_fragment_event_form()
- line 415 of /lib/external/externallib.php: call to component_callback()
- line 228 of /lib/externallib.php: call to core_external::get_fragment()
- line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
Unknown column 'c.id' in 'field list'
SELECT
c.id, c.visible, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance
FROM mdl_course
JOIN mdl_context ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = ?)
[array (
0 => 50,
)]
Error code: dmlreadexception - line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1184 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 3804 of /calendar/lib.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 71 of /calendar/classes/local/event/forms/create.php: call to calendar_get_allowed_event_types()
- line 204 of /lib/formslib.php: call to core_calendar\local\event\forms\create->definition()
- line 3607 of /calendar/lib.php: call to moodleform->__construct()
- line 7698 of /lib/moodlelib.php: call to calendar_output_fragment_event_form()
- line 415 of /lib/external/externallib.php: call to component_callback()
- line 228 of /lib/externallib.php: call to core_external::get_fragment()
- line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
Unknown column 'c.id' in 'field list'
SELECT
c.id, c.visible, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance
FROM mdl_course
JOIN mdl_context ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = ?)
[array (
0 => 50,
)]
Error code: dmlreadexception - line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1184 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 3804 of /calendar/lib.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 71 of /calendar/classes/local/event/forms/create.php: call to calendar_get_allowed_event_types()
- line 204 of /lib/formslib.php: call to core_calendar\local\event\forms\create->definition()
- line 3607 of /calendar/lib.php: call to moodleform->__construct()
- line 7698 of /lib/moodlelib.php: call to calendar_output_fragment_event_form()
- line 415 of /lib/external/externallib.php: call to component_callback()
- line 228 of /lib/externallib.php: call to core_external::get_fragment()
- line 59 of /lib/ajax/service.php: call to external_api::call_external_function()