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

Images not displaying in question previews

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.3
    • Filepicker, Quiz

    Description

      If you create a question in the question bank and put an image in the question text the image will not display correctly when you preview the question. It works fine in the editor but not in the preview window.

      I visited the image URL directly and the following error is displayed.

      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

      More information about this error

      Debug info: Argument 5 passed to send_stored_file() must be an array, object given, called in /home/andrew/Desktop/code/moodle/int/master/question/previewlib.php on line 259 and defined
      Error code: codingerror
      Stack trace:
      line 397 of /lib/setuplib.php: coding_exception thrown
      line 2272 of /lib/filelib.php: call to default_error_handler()
      line 259 of /question/previewlib.php: call to send_stored_file()
      line 1846 of /lib/questionlib.php: call to question_preview_question_pluginfile()
      line 4005 of /lib/filelib.php: call to question_pluginfile()
      line 38 of /pluginfile.php: call to file_pluginfile()

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              andyjdavis Andrew Davis
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12