Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26848

Error from the statistics report

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • Quiz
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      See http://moodle.org/mod/forum/discuss.php?d=171108

      Error writing to database

      More information about this error
      Debug info: Out of range value adjusted for column 'credit' at row 1
      INSERT INTO mdl_quiz_question_response_stats (subqid,response,aid,credit,questionid,rcount,quizstatisticsid) VALUES(?,?,?,?,?,?,?)
      [array (
      0 => 291697,
      1 => 'A mixture',
      2 => 710911,
      3 => '-0.5000000',
      4 => '291697',
      5 => 1,
      6 => 24,
      )]
      Stack trace:

      • line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
      • line 874 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      • line 916 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      • line 615 of /mod/quiz/report/statistics/report.php: call to mysqli_native_moodle_database->insert_record()
      • line 97 of /mod/quiz/report/statistics/report.php: call to quiz_statistics_report->quiz_questions_stats()
      • line 90 of /mod/quiz/report.php: call to quiz_statistics_report->display()

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Helen Foster Helen Foster
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5/May/11