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

"Error writing to database" Problems with grader view Aggregate only

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.0.3
    • Gradebook
    • None
    • MOODLE_20_STABLE

      Gives a database error when Aggregates only minus sign is clicked, Several courses affected.

      Debug info: Data too long for column 'value' at row 1
      UPDATE mdl_user_preferences SET value = ? WHERE id = ?
      [array (
      0 => 'a:2:{s:14:"aggregatesonly";a:8:

      {i:0;s:2:"31";i:4;s:4:"1363";i:8;s:4:"1369";i:9;s:4:"1372";i:10;s:4:"1534";i:11;s:4:"1634";i:12;s:4:"1636";i:13;s:4:"1604";}

      s:10:"gradesonly";a:6:{i:2;s:4:"1371";i:3;s:4:"1370";i:4;s:4:"1368";i:5;s:4:"1367";i:6;s:4:"1360";i:7;s:4:"1635";}}',
      1 => '4949',
      )]
      Stack trace:
      line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
      line 1056 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      line 1450 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->set_field_select()
      line 1418 of /lib/moodlelib.php: call to moodle_database->set_field()
      line 1540 of /grade/report/grader/lib.php: call to set_user_preference()
      line 104 of /grade/report/grader/index.php: call to grade_report_grader::process_action()

        1. DMTC.png
          78 kB
          Salvador Meneses

            andyjdavis Andrew Davis
            smeneses Salvador Meneses
            Votes:
            15 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.