Good afternoon,
I Have Moodle 2.4+ running in CentOS. I have this challenge: Two teachers are using the same course with different groups according to the teacher's sections. Somehow, teachers failed to give clear instructions to students, who are all confused and ended completing activities for both teachers... a complete caos that I am trying to solve by creating two separate courses, one for each of the teachers, each with their own students. So I need to have a new course created with part of the enrolled students along wiht their data. I have created a full backup of the course and when I try to restore, I choose to include the user's data and to enroll user's as manual enrollments, but the process ends with the following error:
INSERT INTO mdl_log (time,userid,ip,module,action,url,info,course,cmid) VALUES(?,?,?,?,?,?,?,?,?)
[array (
0 => 1362353428,
1 => '1981',
2 => '186.65.91.37',
3 => 'forum',
4 => 'search',
5 => 'search.php?id=223&search=Role+of+libraries+in+literacy+development+forumid%3A516+user%3Ayesenia+us...',
6 => 'Role of libraries in literacy development forumid:516 user:yesenia user:Cruz +UB +Library -ago -whenever "move from the computers and video games" datefrom:946706400',
7 => 223,
8 => 0,
)]
Error code: dmlwriteexception
- line 429 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1107 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1149 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 2265 of /backup/moodle2/restore_stepslib.php: call to mysqli_native_moodle_database->insert_record()
- line 131 of /backup/util/plan/restore_structure_step.class.php: call to restore_course_logs_structure_step->process_log()
- line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process()
- line 125 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk()
- line 91 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 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 105 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process()
- line 153 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
- line 163 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
- line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
- line 315 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
- line 147 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
- line 46 of /backup/restore.php: call to restore_ui->execute()