Restore fails on Moodle 2.2 due to quiz questions

Restore fails on Moodle 2.2 due to quiz questions

by John Hennessy -
Number of replies: 1

Hello. 

To facilitate sharing of questions among a group of subject teachers we have questions in a question category within the subject question category. All subject teachers can access the questions in the subject category for their own quizzes. That works well.

However when we come to restore a course with questions from this subject category (or import a quiz containing these questions into another course)
We consistently get the error message


This could mean that you have a question in your quiz or dataset that is not restoring properly.

Possible solutions

1. Restore the questions manually into your course and recreate the quiz.

2. Try copying system level questions into the course. Use the edit button and then click the Make copy button at the bottom of the page. Then try moving it. If that triggers an error, then you know which question is causing the problem.

Other notes

The file that is throwing this error is /backup/moodle2/restore_qtype_plugin.class.php around line 159. ”

This is a problem for us as we have many questions and need to restore courses containing these without too much effort.

Any ideas welcome. Apologies if this is already dealt with elsewhere.

John H

Average of ratings: -
In reply to John Hennessy

Re: Restore fails on Moodle 2.2 due to quiz questions

by John Hennessy -

So I assume that this is a design feature and users should always copy a shared question to their own courses rather than using the original shared version? This is to prevent site wide change of shared questions with unknown consequences in other courses?