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

Problem upgrading multiple assignments after upgrading from 1.9 to 2.6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.6.1
    • Assignment (2.2)
    • None
    • MOODLE_26_STABLE

      I have a problem with the Assignment Upgrade Helper (Multiple assignments). It shows the following error.

      The Upgrade from 1.9 to 2.2 went fine, and from the latter to 2.6 was successful. But when trying to upgrade the assignments, I was shown the error.

      Would you mind telling me what to do?

      Upgrade multiple assignments

      Error writing to database

      More information about this error
      Debug info: Field 'delay' doesn't have a default value
      INSERT INTO mdl_course_modules (course,module,instance,visible,section,score,indent,groupmode,groupingid,groupmembersonly,completion,completiongradeitemnumber,completionview,completionexpected,availablefrom,availableuntil,showavailability,showdescription,added) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
      [array (
      0 => '7',
      1 => '39',
      2 => '8',
      3 => '1',
      4 => '58',
      5 => '0',
      6 => '1',
      7 => '0',
      8 => '0',
      9 => '0',
      10 => '0',
      11 => NULL,
      12 => '0',
      13 => '0',
      14 => '0',
      15 => '0',
      16 => '0',
      17 => '0',
      18 => 1386693712,
      )]
      Error code: dmlwriteexception
      Stack trace:

      line 444 of /lib/dml/moodle_database.php: dml_write_exception thrown
      line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      line 1122 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      line 1433 of /course/lib.php: call to mysqli_native_moodle_database->insert_record()
      line 400 of /mod/assign/upgradelib.php: call to add_course_module()
      line 118 of /mod/assign/upgradelib.php: call to assign_upgrade_manager->duplicate_course_module()
      line 209 of /admin/tool/assignmentupgrade/locallib.php: call to assign_upgrade_manager->upgrade_assignment()
      line 64 of /admin/tool/assignmentupgrade/batchupgrade.php: call to tool_assignmentupgrade_upgrade_assignment()

            Unassigned Unassigned
            mcog Claudia Otake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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