ethz-let / moodle-qtype_freehanddrawing

Freehand Drawing is a question type for Moodle which allows examinees to draw their solution in a quiz.
5 stars 10 forks source link

When exporting and importing a course with a questiontype "Freehand Drawing" the image for the question disappears #7

Open isacsonk opened 10 years ago

isacsonk commented 10 years ago

how to reproduce:

requirement: image should come along

ghost commented 10 years ago

This is weird because I was sure I solved exactly this problem in this commit: https://github.com/ETHZLET/moodle-qtype_freehanddrawing/commit/a75144afb6c365910cb5f31e8bf5f349d9135349 I will try to reproduce it again and get back to you..

ghost commented 10 years ago

Despite my best efforts was not able to reproduce this error. I'd need access to a computer where this problem occurs to fix it.

isacsonk commented 10 years ago

I tried to test this on the testserver, where the newest code should be installed, but restoring using the option for the Destination "Delete the contents of this course and then restore" didn't work. The process froze at step 6 before it should be finished at step 7. This works on live and then the image is gone in the freehanddrawing question. If you use the option "Merge the backup course into this course" as destination the image is still there. restore6

isacsonk commented 10 years ago

It seems like the image gets lost in the export process, because when I export from the Live Server and import and merge it into an existing course on the test server the image is lost.

isacsonk commented 10 years ago

Today when I backup and restore the test into an existing course the image is lost.

isacsonk commented 10 years ago

I asked KR, the newest code is on the testserver, still, when I backup and restore a course with a test with a freehand drawing question, the image is gone. how to reproduce: 1) in a course add a quiz with a freehanddrawing picture 2) standing on the course, click "backup" in the left navigation 3) keep the default settings and click next and perform the backup 4) when the backup was successfully created, click continue 5) beneath the title "course backup area" there is the backupmoodle-file, click on restore to the right of the file to restore it 6) click continue without changing any settings 7) select "Delete the contents of this course and then restore" and click continue 8) don't change any settings click next and then perform restore 9) when the course was restored successfully click continue 10) go to the quiz with the freehand drawing question 11) click on preview --> instead of the image the text "Unable to fetch canvas background image file" is shown