catalyst / moodle-fileconverter_librelambda

A Libre Office document converter for Moodle leveraging AWS Lambda
https://moodle.org/plugins/fileconverter_librelambda
Other
23 stars 18 forks source link

Event "fileconverter_librelambda\event\start_document_conversion" has not implemented mapping for backup/restore. #54

Open andrewmadden opened 3 years ago

andrewmadden commented 3 years ago

Error caught during a course restore on a Moodle 3.9 site. Still need to test if it is happening in vanilla Moodle and which versions. Dropping the stack trace here so it doesn't get lost.

In order to restore course logs accurately the event "fileconverter_librelambda\event\start_document_conversion" must define the function get_other_mapping().

    line 591 of /lib/classes/event/base.php: call to debugging()
    line 122 of /admin/tool/log/backup/moodle2/restore_tool_log_logstore_subplugin.class.php: call to core\event\base::get_other_mapping()
    line 63 of /admin/tool/log/store/standard/backup/moodle2/restore_logstore_standard_subplugin.class.php: call to restore_tool_log_logstore_subplugin->process_log()
    line 137 of /backup/util/plan/restore_structure_step.class.php: call to restore_logstore_standard_subplugin->process_logstore_standard_log()
    line 121 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 109 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 190 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
    line 278 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()
    line ? of unknownfile: call to progressive_parser->end_tag()
    line 179 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
    line 158 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 210 of /backup/moodle2/restore_activity_task.class.php: call to base_task->execute()
    line 191 of /backup/util/plan/base_plan.class.php: call to restore_activity_task->execute()
    line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
    line 394 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
    line 219 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
    line 143 of /backup/restore.php: call to restore_ui->execute()
mdjnelson commented 3 years ago

Heh. I wrote that error code in core and the following docs https://docs.moodle.org/dev/Events_API#Backup.2Frestore :)