Moodle Version: 3.2
Hi,
This is happening on both of our Moodles, so it's not confined to one Moodle instance.
Steps:
1) Add/Edit a question on the questionnaire
2) Using the moodle text editor add an image -> browse repositories -> Upload a file -> Pick the image from my PC
3) Save the question
When editing the question, the image appears fine in the text editor, e.g.
But then viewing the actual question, the image is broken:
On viewing the image URL inside the text editor, it is:
https://moodleserver/draftfile.php/362278/user/draft/108372349/cat.gif
On viewing the broken image URL when viewing the question, it is:
https://moodleserver/pluginfile.php/426106/mod_questionnaire/question/173/cat.gif
Which ends up with the error message:
Sorry, the requested file could not be found
Error code: filenotfound
- line 496 of /lib/setuplib.php: moodle_exception thrown
- line 1803 of /lib/filelib.php: call to print_error()
- line 4621 of /lib/filelib.php: call to send_file_not_found()
- line 37 of /pluginfile.php: call to file_pluginfile()
I have tested adding an image through the moodle text editor in other areas, such as a label on a course, and that works fine.
Does anyone have any idea why those draft images aren't saving for the questionnaire questions?
Thanks.