by Geoffrey Rowland.
Hi folks
Am failing at the last step of restoring a course from a clean install of 2.3.1+ to an upgraded 2.3.1 (from 1.9, originally 1.6, 1.5...) with following error.
Debug info: Unknown column 't.intro' in 'field list'
SELECT t.id, t.intro
FROM mdl_book t
JOIN mdl_backup_ids_temp b ON b.newitemid = t.id
WHERE b.backupid = ?
AND b.itemname = ?
[array (
0 => '7322fc020187cfd8d29fe153d693f88f',
1 => 'book',
)]
Error code: dmlreadexception
SELECT t.id, t.intro
FROM mdl_book t
JOIN mdl_backup_ids_temp b ON b.newitemid = t.id
WHERE b.backupid = ?
AND b.itemname = ?
[array (
0 => '7322fc020187cfd8d29fe153d693f88f',
1 => 'book',
)]
Error code: dmlreadexception
Stack trace:
- line 407 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 822 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 103 of /backup/util/helper/restore_decode_content.class.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 72 of /backup/util/helper/restore_decode_content.class.php: call to restore_decode_content->get_iterator()
- line 81 of /backup/util/helper/restore_decode_processor.class.php: call to restore_decode_content->process()
- line 424 of /backup/moodle2/restore_stepslib.php: call to restore_decode_processor->execute()
- line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_decode_interlinks->define_execution()
- line 153 of /backup/util/plan/base_task.class.php: call to restore_execution_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()
Presumably a database inconsistency In mdl_book?) due to the upgrade route.
Any suggestions?