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

Exception during restore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Backup
    • Labels:
      None
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      On the stage: Settings

      Error writing to database

      More information about this error
      Debug info: Field 'idnumber' doesn't have a default value
      INSERT INTO mdl_course (fullname,shortname,category,sortorder,timecreated,timemodified,visible) VALUES(?,?,?,?,?,?,?)
      [array (
      0 => 'Course restoration in progress copy 3',
      1 => 'restoring_3',
      2 => '1',
      3 => 0,
      4 => 1290061795,
      5 => 1290061795,
      6 => '1',
      )]
      Stack trace:

      • line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
      • line 843 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      • line 885 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      • line 1345 of /backup/util/dbops/restore_dbops.class.php: call to mysqli_native_moodle_database->insert_record()
      • line 227 of /backup/util/ui/restore_ui_stage.class.php: call to restore_dbops::create_new_course()
      • line 27 of /backup/restore.php: call to restore_ui_stage_destination->process()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              jerome Jérôme Mouneyrac
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10