Bonjour,
Quand je veux copier un test (questions cloze) d'un cours vers un autre j'ai un message d'erreur. Le problème n'apparait que dans certains cours. Je peux copier le test dans un autre cours et je peux copier d'autres tests dans le cours qui pose problème.
Le rapport de débogage, que je suis malheureusement incapable de comprendre, me donne ça:
exception 'restore_step_exception' with message 'error/error_question_answers_missing_in_db' in [dirroot]/backup/moodle2/restore_qtype_plugin.class.php:185 Stack trace: #0 [dirroot]/backup/util/plan/restore_structure_step.class.php(131): restore_qtype_plugin->process_question_answer(Array) #1 [dirroot]/backup/util/helper/restore_structure_parser_processor.class.php(103): restore_structure_step->process(Array) #2 [dirroot]/backup/util/xml/parser/processors/grouped_parser_processor.class.php(151): restore_structure_parser_processor->dispatch_chunk(Array) #3 [dirroot]/backup/util/helper/restore_structure_parser_processor.class.php(91): grouped_parser_processor->postprocess_chunk(Array) #4 [dirroot]/backup/util/xml/parser/processors/simplified_parser_processor.class.php(148): restore_structure_parser_processor->postprocess_chunk(Array) #5 [dirroot]/backup/util/xml/parser/processors/progressive_parser_processor.class.php(92): simplified_parser_processor->process_chunk(Array) #6 [dirroot]/backup/util/xml/parser/progressive_parser.class.php(169): progressive_parser_processor->receive_chunk(Array) #7 [dirroot]/backup/util/xml/parser/progressive_parser.class.php(253): progressive_parser->publish(Array) #8 [internal function]: progressive_parser->end_tag(Resource id #572, 'answer') #9 [dirroot]/backup/util/xml/parser/progressive_parser.class.php(158): xml_parse(Resource id #572, '/shuffleanswers...', 0) #10 [dirroot]/backup/util/xml/parser/progressive_parser.class.php(137): progressive_parser->parse('/shuffleanswers...', false) #11 [dirroot]/backup/util/plan/restore_structure_step.class.php(105): progressive_parser->process() #12 [dirroot]/backup/util/plan/base_task.class.php(153): restore_structure_step->execute() #13 [dirroot]/backup/util/plan/base_plan.class.php(167): base_task->execute() #14 [dirroot]/backup/util/plan/restore_plan.class.php(157): base_plan->execute() #15 [dirroot]/backup/controller/restore_controller.class.php(315): restore_plan->execute() #16 [dirroot]/blocks/sharing_cart/classes/controller.php(256): restore_controller->execute_plan() #17 [dirroot]/blocks/sharing_cart/restore.php(21): sharing_cart\controller->restore(471, 180, 5) #18 {main}
Error code: notlocalisederrormessage
- line 476 of /lib/setuplib.php: moodle_exception thrown
- line 29 of /blocks/sharing_cart/restore.php: call to print_error()