Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images not displaying #205

Open
maodoanminnh opened this issue Oct 30, 2021 · 1 comment
Open

Images not displaying #205

maodoanminnh opened this issue Oct 30, 2021 · 1 comment
Labels
bug Something isn't working to be confirmed

Comments

@maodoanminnh
Copy link

maodoanminnh commented Oct 30, 2021

Describe the bug
I installed Capquiz on Moodle 3.10 and 3.11, the same problem happened: images in questions are not displayed.
To Reproduce
Steps to reproduce the behavior:

  1. Add a question to the question bank, MC or embedded cloze, with images UPLOADED to the question, not with URLs linked to a public source.
  2. Preview the questions to make sure everything is good.
  3. Create a Capquiz activity.
  4. Add the questions to the quiz and publish it and log in as a student to do it.

Expected behavior

All images are not loaded. Some have symbols of broken images, others disappearing completely.

Screenshots
image

@maodoanminnh maodoanminnh added the bug Something isn't working label Oct 30, 2021
@hgeorgsch
Copy link
Contributor

Thanks a lot for the import @maodoanminnh
I have reproduced and can confirm the bug.

I tried to import the question both in Quiz and in CAPQuiz.
The question is displayed with different image URLs in the two quizzes, and only the URL used in Quiz works. The URL used in CAPQuiz gives a 404 (file not found).

I get the same error when the question is created from the CAPQuiz interface and used in CAPQuiz.

We need to figure out why the URL can change differently in CAPQuiz.

Note. Using an image by URL results in a «Cross-Origin Read Blocking» error (consistently).
Note 2. Exporting the question as XML embeds the image file in base64 encoding. I have not tried to reimport this to see what happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants