by Susana L..
Hi,
I am trying to restore a course from moodle 2.7.9 (mysql) to moodle 2.7.14 (pgsql) and I am getting the following error:
Debug info: ERROR: invalid input syntax for integer: ""
SELECT * FROM mdl_backup_ids_temp WHERE backupid = $1 AND itemname = $2 AND itemid = $3
[array (
0 => 'b47e144638631b17e742cd6562ecd31a',
1 => 'question',
2 => '',
)]
Error code: dmlreadexception
Stack trace:
line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 244 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 764 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1476 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql()
line 1448 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 238 of /backup/util/dbops/restore_dbops.class.php: call to moodle_database->get_record()
line 1640 of /backup/util/dbops/restore_dbops.class.php: call to restore_dbops::get_backup_ids_cached()
line 219 of /backup/util/plan/restore_structure_step.class.php: call to restore_dbops::get_backup_ids_record()
line 211 of /backup/util/plan/restore_structure_step.class.php: call to restore_structure_step->get_mapping()
line 204 of /backup/moodle2/restore_plugin.class.php: call to restore_structure_step->get_mappingid()
line 107 of /question/type/multianswer/backup/moodle2/restore_qtype_multianswer_plugin.class.php: call to restore_plugin->get_mappingid()
line 84 of /backup/moodle2/restore_plugin.class.php: call to restore_qtype_multianswer_plugin->after_execute_question()
line 332 of /backup/util/plan/restore_structure_step.class.php: call to restore_plugin->launch_after_execute_methods()
line 113 of /backup/util/plan/restore_structure_step.class.php: call to restore_structure_step->launch_after_execute_methods()
line 181 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
line 177 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
line 167 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
line 333 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
line 184 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
line 111 of /backup/restore.php: call to restore_ui->execute()
This course has several questions and a bunch of cloze questions (in the default quiz (ativity) category)
I wonder if anyone had the same problem.
Thank you,
susana