Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81697

In ordering questions, images render in the editor but not in the preview or the quiz

XMLWordPrintable

      Summary

      In the quiz question editor, I'm able to add images to the ordering type question but I'm unable to see the image both in preview & in the regular quiz. I'm able to upload and embed images fine with other question types.

      The URL loaded into the editor seems to be a draft/preview URL that is not valid outside of a draft view. The quiz and question are all published and out of draft stage to the extent that I'm aware.

      Reproduction steps

      • Create quiz
      • Create Ordering type question + answers
      • Add some text to the question editor
      • Add the image to the end of the question text editor:
        • Click Insert > Image
        • Upload an image
          • via the DnD preview
          • via Browse Repositories > Upload File
          • or via Browse Repositories > Recent Files
          • Haven't tested server files, was trying to add through editor*
      • The image should be visible in the quiz question editor
      • Click the Preview button at the bottom of the editor
      • The quiz question preview should display without the image
      • If you save the question, exit the configuration, and attempt the quiz, the image won't be visible either
      • Firefox: If you right-click the alt text & try to open the image in a new tab, the URL that is used is a draft one and it causes an error

      Server files note: I've tried adding the image from the quiz editor all the different ways I can but not from Server files - that might be a good workaround if this happens to be an Azure related issue.

      Environment

      Moodle 4.2 was originally deployed via Azure/Moodle's Minimal profile & I followed the upgrade steps on the controller to upgrade to 4.4 to use the new Ordering question type & ran the update_last_modified_time.moodle_on_azure script to propagate changes. The upgrade worked, then I ran into this issue when I started adding questions to a quiz.

            pholden Paul Holden
            fortiphyd Fortiphyd
            Tim Hunt Tim Hunt
            Ilya Tregubov Ilya Tregubov
            Mikel Martín Corrales Mikel Martín Corrales
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.