by Ahsan Tejani.
×Debug info: Duplicate entry '0-mmkhan.15748' for key 'mdlxx_user_mneuse_uix'
INSERT INTO mdlxx_user (username,idnumber,email,phone1,phone2,institution,department,address,city,country,lastip,picture,description,descriptionformat,imagealt,auth,firstnamephonetic,lastnamephonetic,middlename,alternatename,firstname,lastname,confirmed,policyagreed,deleted,lang,theme,timezone,firstaccess,lastaccess,lastlogin,currentlogin,mailformat,maildigest,maildisplay,autosubscribe,trackforums,timecreated,timemodified,trustbitmask,password) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
-- line 1403 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
-- line 1246 of /backup/util/dbops/restore_dbops.class.php: call to mysqli_native_moodle_database->insert_record()
-- line 1145 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::create_included_users()
-- line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_create_included_users->define_execution()
-- line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
-- line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
-- line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
-- line 385 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()
[array (
0 => 'mmkhan.15748',
1 => '',
2 => '15748@bankalhabib.bah',
3 => '',
4 => '',
5 => '15748',
6 => 'Credit Division',
7 => '',
8 => '',
9 => '',
10 => '10.200.231.5',
11 => '0',
12 => '',
13 => '1',
14 => '',
15 => 'manual',
16 => '',
17 => '',
18 => '',
19 => '',
20 => 'Muhammad',
21 => 'Mufassir Khan',
22 => '1',
23 => 0,
24 => '0',
25 => 'en',
26 => '',
27 => '99',
28 => '1632464198',
29 => '1632467721',
30 => '0',
31 => '1632464198',
32 => '1',
33 => '0',
34 => '2',
35 => '1',
36 => '0',
37 => '1546001590',
38 => '1632465476',
39 => '0',
40 => 'restored',
)]
Error code: dmlwriteexception
INSERT INTO mdlxx_user (username,idnumber,email,phone1,phone2,institution,department,address,city,country,lastip,picture,description,descriptionformat,imagealt,auth,firstnamephonetic,lastnamephonetic,middlename,alternatename,firstname,lastname,confirmed,policyagreed,deleted,lang,theme,timezone,firstaccess,lastaccess,lastlogin,currentlogin,mailformat,maildigest,maildisplay,autosubscribe,trackforums,timecreated,timemodified,trustbitmask,password) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
-- line 1403 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
-- line 1246 of /backup/util/dbops/restore_dbops.class.php: call to mysqli_native_moodle_database->insert_record()
-- line 1145 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::create_included_users()
-- line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_create_included_users->define_execution()
-- line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
-- line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
-- line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
-- line 385 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()
[array (
0 => 'mmkhan.15748',
1 => '',
2 => '15748@bankalhabib.bah',
3 => '',
4 => '',
5 => '15748',
6 => 'Credit Division',
7 => '',
8 => '',
9 => '',
10 => '10.200.231.5',
11 => '0',
12 => '',
13 => '1',
14 => '',
15 => 'manual',
16 => '',
17 => '',
18 => '',
19 => '',
20 => 'Muhammad',
21 => 'Mufassir Khan',
22 => '1',
23 => 0,
24 => '0',
25 => 'en',
26 => '',
27 => '99',
28 => '1632464198',
29 => '1632467721',
30 => '0',
31 => '1632464198',
32 => '1',
33 => '0',
34 => '2',
35 => '1',
36 => '0',
37 => '1546001590',
38 => '1632465476',
39 => '0',
40 => 'restored',
)]
Error code: dmlwriteexception
×Stack trace:
- line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1357 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1403 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 1246 of /backup/util/dbops/restore_dbops.class.php: call to mysqli_native_moodle_database->insert_record()
- line 1145 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::create_included_users()
- line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_create_included_users->define_execution()
- line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
- line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
- line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
- line 385 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()