|
Andrea, does it mean that the user 5709 is neither author nor the reviewer of the submission 694? Can you try to run the following two queries and report the results?
SELECT * FROM mdl_workshop_assessments WHERE submissionid=694 AND userid=5709 and SELECT * FROM mdl_workshop_submissions WHERE id=694 AND userid=5709 First query:
"id";"workshopid";"submissionid";"userid";"timecreated";"timegraded";"timeagreed";"grade";"gradinggrade";"teachergraded";"mailed";"resubmission";"donotuse";"generalcomment";"teachercomment" "1069";"152";"694";"5709";"1288311708";"0";"0";"-1";"0";"0";"0";"0";"0";; Second query: OK, so we know the user is reviewer of the submission - it was allocated to him to assess. Now please run the following and report the results please
SELECT * FROM mdl_workshop_submissions WHERE id=694 This third query returned no record.
OK, here we go. It is a known problem with inconsistent database state. The student experiencing the error message is expected to assess a submission that was deleted. This is obvious clone of
Closing this issue as duplicate of
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MDL-7218. Any chances the solution described there could help your issue?