-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
4.3.8
-
None
-
MOODLE_403_STABLE
Hello,
I encounter a bug on moodle 4.3.8, maybe in other version cause this part of code is old
I try to duplicate a quizz activity and her eis the stack :
```
Error code: error_question_answers_missing_in_db * line 199 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 123 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process() * line 178 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk() * line 111 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 189 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk() * line 277 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish() * line ? of unknownfile: call to progressive_parser->end_tag() * line 178 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse() * line 157 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 186 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute() * line 191 of /backup/util/plan/base_plan.class.php: call to base_task->execute() * line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute() * line 411 of /backup/controller/restore_controller.class.php: call to restore_plan->execute() * line 3574 of /course/lib.php: call to restore_controller->execute_plan() * line 594 of /course/format/classes/stateactions.php: call to duplicate_module() * line 137 of /course/format/classes/external/update_course.php: call to core_courseformat\stateactions->cm_duplicate() * line ? of unknownfile: call to core_courseformat\external\update_course::execute() * line 253 of /lib/external/classes/external_api.php: call to call_user_func_array() * line 83 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()
```
With this error (in french) : Impossible de trouver une réponse correspondant à « <p dir="ltr" style="text-align: left;">.<br></p> » dans la table question_answers de la base de données.
Of course, in the DB, I've found it in good HTML format :
<p dir="ltr" style="text-align: left;">.<br></p>
So I think there is a problem in the XML parser with HTML formated text, and leads to a bad request in DB.
In addition, I'll open a second functional issue, I don't understand with moodle need to duplicate the entire question bank instead of just duplicate de questions of the quizz (or reference)
- duplicates
-
MDL-83541 error_question_answers_missing_in_db when duplicate or restore quiz
-
- Closed
-