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

Exception when duplicating course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.6.3
    • Fix Version/s: BACKEND
    • Component/s: Backup, Questions
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      When trying to duplicate a course, we receive this error: error_question_answers_missing_in_db

      The procedure we have followed is:

      1. Migrate some courses from 1.9 to 2.6.3. Successful.
      2. Import a course from a template. Failed with the error:

      Default exception handler: error/error_question_answers_missing_in_db Debug:
      Error code: error_question_answers_missing_in_db
      $a contents: stdClass Object
      (
      [filequestionid] => 64168
      [dbquestionid] => 122541
      [answer] => xxxxxxxx
      )

      • line 185 of /backup/moodle2/restore_qtype_plugin.class.php: restore_step_exception thrown
      • line 137 of /backup/util/plan/restore_structure_step.class.php: call to restore_qtype_plugin->process_question_answer()
      • 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 177 of /backup/util/plan/base_plan.class.php: call to base_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 71 of /local/restore/importfx.php: call to restore_controller->execute_plan()
      • line 34 of /local/restore/restorelib.php: call to local_import()

      [27-Oct-2014 20:28:58] Potential coding error - existing temptables found when disposing database. Must be dropped!

      However, if we try another time, the course is imported without any problem.

      Our environment:

      • Moodle 2.6.3+ (Build: 20140619)
      • PHP 5.3.3
      • MySQL 5.6.10, CHARACTER SET: UTF8, COLLATION: utf8_general_ci

      We are investigating the problem in deep, but any comments would be really appreciated.

      Regards

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                damartinez Diego Álvarez
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: