-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.2, 2.4.5, 2.5.1
-
MOODLE_22_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-32690_restoreMissingAssignment_master -
Steps to reproduce:
- Backup a 1.9 course that has an assignment type that doesn't exist in 2.X (EG: some third party plugin)
- Restore that backup into 2.X
- Here is the error:
error/unsupported_subplugin
More information about this error
Stack trace:
line 197 of /mod/assignment/backup/moodle1/lib.php: moodle1_convert_exception thrown
line 132 of /mod/assignment/backup/moodle1/lib.php: call to moodle1_mod_assignment_handler->get_subplugin_handler()
line 111 of /mod/assignment/backup/moodle1/lib.php: call to moodle1_mod_assignment_handler->handle_assignment_subplugin()
line 299 of /backup/converter/moodle1/lib.php: call to moodle1_mod_assignment_handler->process_assignment()
line 737 of /backup/converter/moodle1/lib.php: call to moodle1_converter->process_chunk()
line 125 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to moodle1_parser_processor->dispatch_chunk()
line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to grouped_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: call to progressive_parser->end_tag()
line 158 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
line 137 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
line 150 of /backup/converter/moodle1/lib.php: call to progressive_parser->process()
line 128 of /backup/converter/convertlib.php: call to moodle1_converter->execute()
line 215 of /backup/util/helper/convert_helper.class.php: call to base_converter->convert()
line 408 of /backup/controller/restore_controller.class.php: call to convert_helper::to_moodle2_format()
line 35 of /backup/restore.php: call to restore_controller->convert()
Ideally, the moodle1 conversion process would just skip the unknown assignment type, but I haven't found a straight forward way to accomplish this.