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

Exception when duplicating course



    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.3
    • Backup, Questions


      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.



        Issue Links



              Unassigned Unassigned
              damartinez Diego Álvarez
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
              0 Vote for this issue
              3 Start watching this issue