|
[
Permalink
| « Hide
]
Barry Oosthuizen added a comment - 08/Jan/09 12:58 AM
I tried reproducing from this error from scratch and it still happens. I attach an example backup file which fails to restore properly
Barry,
I have found an issue with this as well in the question/restorelib.php where function question_states_restore_mods fails (function which restores the question_states) Although at this point I do not know if your conditions were exactly as mine I did have more The patch I have created (question_restorelib.patch) addresses this issue .. After application I have was then able to recreate the course from restore and the questions and answers seemed to be intact. question_restorelib.patch implements additional checks during course question states restore.
Barry,
The question_restorelib.patch file I attached implements a few more checks and balances before inserting new states into question_states. Hi John,
Thanks for the patch, desperately needed. I'll try it out and let you know how it went. The attached zip file is a manual backup of a course which contains an attempted quiz with a matching question type which I was unable to restore with answers. Should be the same on any Moodle 1.9.3 installation (without your patch). Hi John,
I've applied your patch but I still have the same problem. The only difference now is that I DON'T get these kind of messages any more when restoring the backup file: "Could not recode answer in question_match_sub 191396361" This message actually helps to identify the bug so we still need it. The bug only seems to affect the "Matching" Question type. Other question types are restored without any missing answers in question_states. Were you able to reproduce this error with the description I gave? Assigning to Tim
Thanks Tim,
I upgraded and it works fine. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||