Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5463

Error with Importing Courses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.3
    • Fix Version/s: None
    • Component/s: Module: Game
    • Labels:
      None
    • Plugin Version:
      0.0
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      Hello!

      We found an error in Moodle.
      We receive following error message when Importing Courses:

      Error writing to database

      More information about this error

      Debug info: Field 'id' doesn't have a default value
      INSERT INTO mdl_game_export_html (filename,title,checkbutton,printbutton,inputsize,maxpicturewidth,maxpictureheight) VALUES(?,?,?,?,?,?,?)
      [array (
      0 => NULL,
      1 => NULL,
      2 => '1',
      3 => '1',
      4 => NULL,
      5 => NULL,
      6 => NULL,
      )]
      Error code: dmlwriteexception
      Stack trace:
      line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown
      line 1146 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      line 1188 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      line 84 of /mod/game/backup/moodle2/restore_game_stepslib.php: call to mysqli_native_moodle_database->insert_record()
      line 137 of /backup/util/plan/restore_structure_step.class.php: call to restore_game_activity_structure_step->process_game_export_html()
      line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process()
      line 151 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk()
      line 91 of /backup/util/helper/restore_structure_parser_processor.class.php: call to grouped_parser_processor->postprocess_chunk()
      line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to restore_structure_parser_processor->postprocess_chunk()
      line 92 of /backup/util/xml/parser/processors/progressive_parser_processor.class.php: call to simplified_parser_processor->process_chunk()
      line 186 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
      line 274 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()
      line ? of unknownfile: call to progressive_parser->end_tag()
      line 175 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
      line 154 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
      line 110 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process()
      line 181 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
      line 192 of /backup/moodle2/restore_activity_task.class.php: call to base_task->execute()
      line 177 of /backup/util/plan/base_plan.class.php: call to restore_activity_task->execute()
      line 167 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
      line 333 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
      line 163 of /backup/import.php: call to restore_controller->execute_plan()

        Attachments

          Activity

            People

            Assignee:
            bdaloukas Vasilis Daloukas
            Reporter:
            ylukin Yelysei Lukin
            Participants:
            Component watchers:
            Vasilis Daloukas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: