Weitere Informationen über diesen Fehler
Debug-Info: Duplicate entry '122-0-16783' for key 'mdl_studprog_stustuuse_uix'
INSERT INTO mdl_studentquiz_progress (studentquizquestionid,userid,lastanswercorrect,attempts,correctattempts,lastreadprivatecomment,lastreadpubliccomment,studentquizid) VALUES(?,?,?,?,?,?,?,?)
[array (
0 => 0,
1 => '16783',
2 => '1',
3 => '3',
4 => '3',
5 => '1652947312',
6 => '1652947312',
7 => 122,
)]
Error code: dmlwriteexception
Stack trace:
line 497 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
line 1366 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
line 1412 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 187 of /mod/studentquiz/backup/moodle2/restore_studentquiz_stepslib.php: call to mysqli_native_moodle_database->insert_record()
line 137 of /backup/util/plan/restore_structure_step.class.php: call to restore_studentquiz_activity_structure_step->process_progress()
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 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 219 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 408 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 146 of /backup/restore.php: call to restore_ui->execute()
xxxxxxxxxxxxxxxxxx
Notwendiger Parameter "contextid" fehlt
Weitere Informationen über diesen Fehler
Debug-Info:
Error code: missingparam
Stack trace:
line 610 of /lib/moodlelib.php: moodle_exception thrown
line 35 of /backup/restore.php: call to required_param()
Moodle 4.1.9 PHP 7.4.3.3 mariadb (5.5.5-10.4.28-MariaDB-1:10.4.28+maria~ubu2004)
See https://moodle.org/mod/forum/discuss.php?d=457377
Fehler beim Schreiben der Datenbank
Weitere Informationen über diesen Fehler Debug-Info: Duplicate entry '122-0-16783' for key 'mdl_studprog_stustuuse_uix' INSERT INTO mdl_studentquiz_progress (studentquizquestionid,userid,lastanswercorrect,attempts,correctattempts,lastreadprivatecomment,lastreadpubliccomment,studentquizid) VALUES(?,?,?,?,?,?,?,?) [array ( 0 => 0, 1 => '16783', 2 => '1', 3 => '3', 4 => '3', 5 => '1652947312', 6 => '1652947312', 7 => 122, )] Error code: dmlwriteexception Stack trace:
Weitere Informationen über diesen Fehler Debug-Info: Error code: missingparam Stack trace:
Greets Andy