SQL Error saving Tutor Grades

Issue #25 resolved
Jeremy Hopkins created an issue

When saving tutor grades I see an SQL error:

Debug info: 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 '* FROM mdl_peerwork_grades WHERE peerworkid = '1' AND submissionid = '2'' at line 1
SELECT userid AS idx, * FROM mdl_peerwork_grades WHERE peerworkid = ? AND submissionid = ?
[array (
0 => '1',
1 => '2',
)]
Error code: dmlreadexception

Stack trace:

  • line 486 of \lib\dml\moodle_database.php: dml_read_exception thrown
  • line 1247 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1416 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 1367 of \lib\dml\moodle_database.php: call to moodle_database->get_records_select()
  • line 549 of \mod\peerwork\locallib.php: call to moodle_database->get_records()
  • line 566 of \mod\peerwork\locallib.php: call to peerwork_get_local_grades()
  • line 179 of \mod\peerwork\details.php: call to peerwork_update_local_grades()

A screen recording of this can be seen below:

https://livecoventryac-my.sharepoint.com/:v:/g/personal/ac1216_coventry_ac_uk/EeEtf89J1CpPuNoXW8VGkW8BbF5BxXtqs5494_YCz-WIsg?e=2KYuTe

Comments (2)

  1. Log in to comment