by Karl Brooker.
Hi all, when trying to upgrade from 2.2 to 2.4 I'm receiving the following error each time I 'continue' from the Plugin Upgrade page, with the duplicate entry ID incrementing by 2 each time. Is there any way around this?
Debug info: Duplicate entry '70-1955' for key 'mdl_cont_conins_uix'
INSERT INTO mdl_context (contextlevel,instanceid,depth,path) VALUES(?,?,?,?)
[array (
0 => 70,
1 => '1955',
2 => 0,
3 => NULL,
)]
Error code: dmlwriteexception
INSERT INTO mdl_context (contextlevel,instanceid,depth,path) VALUES(?,?,?,?)
[array (
0 => 70,
1 => '1955',
2 => 0,
3 => NULL,
)]
Error code: dmlwriteexception
Stack trace:
- 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 5293 of /lib/accesslib.php: call to mysqli_native_moodle_database->insert_record()
- line 6801 of /lib/accesslib.php: call to context::insert_context_record()
- line 117 of /mod/book/db/upgradelib.php: call to context_module::instance()
- line 172 of /mod/book/db/upgrade.php: call to mod_book_migrate_all_areas()
- line 629 of /lib/upgradelib.php: call to xmldb_book_upgrade()
- line 360 of /lib/upgradelib.php: call to upgrade_plugins_modules()
- line 1544 of /lib/upgradelib.php: call to upgrade_plugins()
- line 349 of /admin/index.php: call to upgrade_noncore()