QuizExport
Maintained by
Renaud Lemaire, C Blue, Olivier Piton
This is a quiz report plugin to export quiz attempts as pdf
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
When attempting to export multiple Quiz attempts, I am receive error message above.
Moodle 4.3.4+ (Build: 20240530) | main moodle-quiz_export branch.
When attempting to export Quiz attempt (single or multiple), I am presented with a confirmation window asking if I want to export selected attempts.
When I click on Yes, I see this error message:
Attempt to access the step user before it was initialised. Did you forget to call question_usage_by_activity::preload_all_step_users() or similar?
line 204 of /question/engine/questionattemptstep.php: call to debugging()
line 215 of /question/engine/questionattemptstep.php: call to question_attempt_step->get_user()
line 524 of /question/engine/renderer.php: call to question_attempt_step->get_user_fullname()
line 495 of /question/engine/renderer.php: call to core_question_renderer->action_author()
line 120 of /question/engine/renderer.php: call to core_question_renderer->response_history()
line 113 of /question/behaviour/behaviourbase.php: call to core_question_renderer->question()
line 912 of /question/engine/questionattempt.php: call to question_behaviour->render()
line 483 of /question/engine/questionusage.php: call to question_attempt->render()
line 1345 of /mod/quiz/classes/quiz_attempt.php: call to question_usage_by_activity->render_question()
line 1307 of /mod/quiz/classes/quiz_attempt.php: call to mod_quiz\quiz_attempt->render_question_helper()
line 199 of /mod/quiz/classes/output/renderer.php: call to mod_quiz\quiz_attempt->render_question()
line 67 of /mod/quiz/classes/output/renderer.php: call to mod_quiz\output\renderer->questions()
line 314 of /mod/quiz/report/export/export.php: call to mod_quiz\output\renderer->review_page()
line 270 of /mod/quiz/report/export/export.php: call to quiz_export_engine->render()
line 250 of /mod/quiz/report/export/export.php: call to quiz_export_engine->get_review_html()
line 107 of /mod/quiz/report/export/export.php: call to quiz_export_engine->all_questions()
line 198 of /mod/quiz/report/export/report.php: call to quiz_export_engine->a2pdf()
line 164 of /mod/quiz/report/export/report.php: call to quiz_export_report->export_attempts()
line 86 of /mod/quiz/report/export/report.php: call to quiz_export_report->process_actions()
line 83 of /mod/quiz/report.php: call to quiz_export_report->display()
Don't forget to make a "composer install" in the plugins folder.
Julien
So it doesn't have to do with your installation method, would you care to try and give us more details about how you're getting this unexpected behavior ?
Amaury.
When exporting a Maths Quiz including LateX formulas the formulas are replaced by a red x image placeholder
Validating quiz_export ... Error
[Error] Extracted file not found [{"file":"export\/vendor\/mpdf\/mpdf\/tmp\/"}]
Installation aborted due to validation failure.
Исключение - Failed opening required '[dirroot]/mod/quiz/report/export/vendor/autoload.php' (include_path='[dirroot]/lib/pear:.:/usr/local/zend-8.0/share/pear')