Moodle 3.2.1
In the quiz 'Combined feedback', upload image with text. Text are showing but image not showing ( see the attachment ).
Anybody has idea, what could be the reason?
How did you add the image? Did you add it using the Add image button in the editor toolbar?
Also, right-click on the image, and do Open in new tab. Try looking at the URL there, and whether any errors are displayed (possibly only in the server PHP logs - temporily increase the Debugging setting to see if that shows more info.)
Hi Tim,
Thanks for quick reply. Yes, I use insert/edit image button from TinyMce editor.
In the editor image url:
https://beta3.dvm.iktsenteret.no/draftfile.php/8287/user/draft/99879200/DVM-BROK-1-8.jpg-
Where image is missing, I inspect and found : https://beta3.dvm.iktsenteret.no/pluginfile.php/7216/question/correctfeedback/14231/6/4312/DVM-BROK-1-8.jpg-
When I copy & paste the url with new tap( pluginfile.php), I found error ( see the attachment , point with red arrow)
Why this error? Thank you.
Note: ignore (-) after jpg. Its just add here to show the url otherwise image showing/or blank space showing
The error message tells us that the error is coming from here in the code: https://github.com/moodle/moodle/blob/v3.2.1/mod/quiz/lib.php#L1849
That is not unexpected, knowing how the code works. Is this a standard multiple-choice question?
The key question is, what happened inside the call to check_file_access? Sadly the stack trace does not tell us. This code normally works (you can make a test question on qa.moodle.net to verify it). I can't see why it is not working in your case. Very odd.
Hi,
File permission is ok. Yes, Multiple choice question.
Is there any configuration or moodle restriction for 'Combined feedback' portion?
How to moodle.net verify? Download course and when trying to import course from moodle.net , showing csv file error?
Thank you
To verify on moodle.net, I would just make a new question from scratch, to prove that the code works in general.
Then, you need to identify what is happening to stop it working for your question.
Hi,
In moodle.net don't find any place to make question.
For example:
https://moodle.net/ -> quiz questions then where to go?
Hi Tim,
Yes, image showing in qa.moodle.net, but not in my project.
What to test where is the problem in my project? Is it better idea to turned off filters and check..... or any idea?
Thanks for informed me about qa.moodle.net.
I think the next test is to work out if it is all questions on your system, or just this one. Can you try making a completely new question with images, and see if that works.
Also, is it only in the combined feedback? What happens if you add an image to a different part of the question?
Hi Tim,
Made new quiz and inserted image in diff portion :
Question text : image showing
General feedback : image showing
Answers : image showing
Combined feedback : image not showing. After inspecting... copy image url then past to new tab. Found error: Sorry, the requested file could not be found. Any idea? Thank you.
It's working for me:
That equation is an image I added in the 'Feedback for any correct response' for this multiple choice question.
Hi Tim,
Changed to boost theme to see if our custom theme is responsible? Still image does not showing. Then where could be wrong, any guess? Do you using Moodle 3.2.1? Thank you.
Same problem.
is there any idea how to fix this?
thanks