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

Restoring flexsections course fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.4.1
    • None

      Flexsections 2013040400
      Moodle 2.4.1+ (Build: 20130118)

      When trying to restore a flexsections course into an existing flexsections course, or importing activities/resources I get the following error:

      Debug info: Duplicate entry '28-flexsections-458-collapsed' for key 'mdl_courformopti_couforsec_uix'
      INSERT INTO mdl_course_format_options (format,name,value,sectionid,courseid) VALUES(?,?,?,?,?)
      [array (
      0 => 'flexsections',
      1 => 'collapsed',
      2 => '1',
      3 => '458',
      4 => '28',
      )]
      Error code: dmlwriteexception
      Stack trace:

      line 429 of \lib\dml\moodle_database.php: dml_write_exception thrown
      line 1107 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
      line 1149 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      line 1253 of \backup\moodle2\restore_stepslib.php: call to mysqli_native_moodle_database->insert_record()
      line 131 of \backup\util\plan\restore_structure_step.class.php: call to restore_section_structure_step->process_course_format_options()
      line 103 of \backup\util\helper\restore_structure_parser_processor.class.php: call to restore_structure_step->process()
      line 125 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 169 of \backup\util\xml\parser\progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
      line 253 of \backup\util\xml\parser\progressive_parser.class.php: call to progressive_parser->publish()
      line ? of unknownfile: call to progressive_parser->end_tag()
      line 158 of \backup\util\xml\parser\progressive_parser.class.php: call to xml_parse()
      line 137 of \backup\util\xml\parser\progressive_parser.class.php: call to progressive_parser->parse()
      line 105 of \backup\util\plan\restore_structure_step.class.php: call to progressive_parser->process()
      line 153 of \backup\util\plan\base_task.class.php: call to restore_structure_step->execute()
      line 98 of \backup\moodle2\restore_section_task.class.php: call to base_task->execute()
      line 163 of \backup\util\plan\base_plan.class.php: call to restore_section_task->execute()
      line 157 of \backup\util\plan\restore_plan.class.php: call to base_plan->execute()
      line 315 of \backup\controller\restore_controller.class.php: call to restore_plan->execute()
      line 130 of \backup\import.php: call to restore_controller->execute_plan()

            marina Marina Glancy
            mvdn Mart van der Niet
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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