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

Error importing quizzes with grid course format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5.1
    • 2.3.4
    • None
    • MOODLE_23_STABLE
    • MOODLE_25_STABLE

      1. Create two courses with quizzes
      2. Switch one course to the grid format
      3. Import quiz from the other course into this one

      Expected result:
      Quiz imports sucessfully

      Actual result:
      Import fails with a database error...

      Default exception handler: Error writing to database Debug: ERROR: duplicate
      key value violates unique constraint "mdl_formgridicon_sec_uix"
      INSERT INTO
      mdl_format_grid_icon (imagepath,courseid,sectionid) VALUES($1,$2,$3) RETURNING
      id
      [array (
      'imagepath' => 'Cell.jpg',
      'courseid' => '27591',
      'sectionid' => '153780',
      )]

      Error code: dmlwriteexception

      • line 410 of /lib/dml/moodle_database.php: dml_write_exception thrown
      • line 244 of /lib/dml/pgsql_native_moodle_database.php: call to
        moodle_database->query_end()
      • line 812 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
      • line 864 of /lib/dml/pgsql_native_moodle_database.php: call to
        pgsql_native_moodle_database->insert_record_raw()
      • line 127 of /course/format/grid/backup/moodle2/restore_format_grid_plugin.class.php: call
        to pgsql_native_moodle_database->insert_record()
      • line 131 of /backup/util/plan/restore_structure_step.class.php: call to
        restore_format_grid_plugin->process_gridsection()
      • line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to
        restore_structure_step->process()
      • line 139 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: cal

            gb2048 Gareth J Barnard
            marcusboon Marcus Boon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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