-
Bug
-
Resolution: Fixed
-
Critical
-
3.3.2
-
MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
After the last update from the weekly git, the following error is occurring and we can no longer review the attempts made by our students, nor delete any which need to be removed. The error from the debugging is here:
|
[Mon Oct 02 11:30:59.064677 2017] [:error] [pid 9130] [client 98.173.56.98:10432]
|
Default exception handler: Error reading from database
|
|
Debug: You have an error in your SQL syntax;
|
check the manual that corresponds to your MySQL server version
|
for the right syntax to use near
|
'AND firstname LIKE 'B%' ESCAPE '\\\\'' at line 21
|
|
SELECT COUNT(1) FROM (SELECT DISTINCT CONCAT(u.id, '#', COALESCE(quiza.attempt, 0)) AS uniqueid,
|
quiza.uniqueid AS usageid,
|
quiza.id AS attempt,
|
u.id AS userid,
|
u.idnumber, u.firstnamephonetic,u.lastnamephonetic,u.middlename,u.alternatename,u.firstname,u.lastname,
|
u.picture,
|
u.imagealt,
|
u.institution,
|
u.department,
|
u.email,
|
quiza.state,
|
quiza.sumgrades,
|
quiza.timefinish,
|
quiza.timestart,
|
CASE WHEN quiza.timefinish = 0 THEN null
|
WHEN quiza.timefinish > quiza.timestart THEN quiza.timefinish - quiza.timestart
|
ELSE 0 END AS duration
|
FROM mdl_user u
|
LEFT JOIN mdl_quiz_attempts quiza ON
|
quiza.userid = u.id AND quiza.quiz = ?
|
JOIN mdl_user_enrolments ej1_ue ON ej1_ue.userid = u.id
|
JOIN mdl_enrol ej1_e ON (ej1_e.id = ej1_ue.enrolid AND ej1_e.courseid = ?)
|
WHERE quiza.preview = 0
|
AND quiza.id IS NOT NULL
|
AND 1 = 1
|
AND u.deleted = 0
|
) temp
|
AND firstname LIKE ? ESCAPE '\\\\'
|
|
[array (
|
0 => '46',
|
1 => '44',
|
2 => 'B%',
|
)]
|
Error code: dmlreadexception
|
* line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
|
* line 1190 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
|
* line 1558 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
|
* line 1631 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
|
* line 1841 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
|
* line 1589 of /lib/tablelib.php: call to moodle_database->count_records_sql()
|
* line 542 of /mod/quiz/report/attemptsreport_table.php: call to table_sql->query_db()
|
* line 314 of /mod/quiz/report/overview/overview_table.php: call to quiz_attempts_report_table->query_db()
|
* line 1630 of /lib/tablelib.php: call to quiz_overview_table->query_db()
|
* line 244 of /mod/quiz/report/overview/report.php: call to table_sql->out()
|
* line 97 of /mod/quiz/report.php: call to quiz_overview_report->display()
|
, referer: https://acesp.brookshireinternational.academy/mod/quiz/view.php?id=8515
|