throw restore_step_exception('error_question_answers_missing_in_db', $info);
Error when importing quiz with system level questions from Moodle 2.0 course (which was imported from 1.9) to another Moodle 2.0 course on the same site
The file "moodle/backup/moodle2/restore_qtype_plugin.class.php" is missing "new" to instantiate the "restore_step_exception" class
Marking as fixed (PULL request created).
I've been investigating why Helen was getting that error @ qa.moodle.net and concluded it was caused because yesterday I was preparing various backup files for help testing different pull requests, and I ended borking them.
Today I've re-attached double-verified backup files to all those requests.
So this is simple: Just add the missing "new" keyword.
Take two. Finally I've been able to reproduce the problem happening @ qa.moodle.net in my dev environment and, after a bit more of debugging, I've found the cause and, hopefully, the fix.
So I've created PULL-319 to get this addressed ASAP. To reproduce the problem simply get any backup file containing questions and, on restore, uncheck the "activities" setting.
Before the patch it was breaking badly, after the patch it should finish smoothly!
Raising to critical as far as it causes any backup to be, depending of the settings, unrestorable.