HELP>>>database error in checking the submitted assignments!!!

HELP>>>database error in checking the submitted assignments!!!

by Prathamesh Murkute -
Number of replies: 4

Uuntill recently it was working fine but since last week it's giving me the error as listed below, when i try to access the projects submitted by the students who are enrolled in. when i click on "view submitted assignments" it gives me an error message which is mentioned below. What does it mean?  How to resolve it...

 

The error message is:

Warning:  mysqli::query() [mysqli.query]: (22003/1690): BIGINT UNSIGNED value is out of range in '(`lqskh9c7`.`s`.`timemarked` - `lqskh9c7`.`s`.`timemodified`)' in /var/www/ktm/moodle/lib/dml/mysqli_native_moodle_database.php on line 789

Error reading from database

More information about this error

Debug info: BIGINT UNSIGNED value is out of range in '(`lqskh9c7`.`s`.`timemarked` - `lqskh9c7`.`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 = 6 WHERE s.timemarked < s.timemodified AND u.id IN (98,172)  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 369 of /mod/assignment/type/upload/assignment.class.php: call to assignment_base->submissions()
  • line 57 of /mod/assignment/submissions.php: call to assignment_upload->submissions()
Average of ratings: -
In reply to Prathamesh Murkute

Re: HELP>>>database error in checking the submitted assignments!!!

by Itamar Tzadok -

This is the database activity module forum. Although the databases gurus may detect your query here, you should have better prospects if you post it in the databases forum. smile

In reply to Prathamesh Murkute

Re: HELP>>>database error in checking the submitted assignments!!!

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This problem is caused by MySQL 5.5+, and has been fixed in the latest version of Moodle on each stable branch, so upgrade to 1.9.12+ or similar.

In reply to Tim Hunt

Re: HELP>>>database error in checking the submitted assignments!!!

by Prathamesh Murkute -

thanks Tim...

But can you guide on how to do this upgrade? I am hosting my moodle online at a server from keytoschool.com

How do i upgrade the moodle with least damage to the data?

Any guidance...