Error when viewing submitted assignments

Error when viewing submitted assignments

by Javier Baca -
Number of replies: 0

We recently intalled a Moodle 2.0.2 server. When trying to view a submitted assignment within a course we get the following error (debugging developer):

 

Error reading from database

Debug info: BIGINT UNSIGNED value is out of range in '(`moodle`.`s`.`timemarked` - `moodle`.`s`.`timemodified`)'
SELECT u.id,u.picture,u.firstname,u.lastname,u.imagealt,u.email,
s.id AS submissionid, s.grade, s.submissioncomment,
s.timemodified, s.timemarked,
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status FROM mdl_user u LEFT JOIN mdl_assignment_submissions s ON u.id = s.userid
AND s.assignment = 10 WHERE u.id IN (112,113) ORDER BY lastname ASC
[array (
)]
Stack trace:
  • line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 790 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1303 of /mod/assignment/lib.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 642 of /mod/assignment/lib.php: call to assignment_base->display_submissions()
  • line 57 of /mod/assignment/submissions.php: call to assignment_base->submissions()

 

Curiously if we select the "Download all assignments as a zip" we are able to see the assignment normally.

 

Any assistance greatly appreciated. Thanks in advance.

Javier

Average of ratings: -