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

Broken graph displayed on quiz results page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • 2.2.5, 2.3.2
    • 2.3
    • Quiz
    • MOODLE_23_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • Hide

      0. You need a quiz in separate or visible groups mode, with some attempts.

      1. Go to Quiz -> Results -> Grades in the navigation. Make sure the graph at the bottom of the page appears.

      2. Select a group, and make sure there are now two graphs.

      3. Go to Quiz -> Results -> Statistics. Make sure there is a graph at the bottom of the page.

      4. If you can be bothered, disable the GD PHP extension, and make sure the graphs are replaced by a nice message saying that GD is required (rather than just being broken images).

      Show
      0. You need a quiz in separate or visible groups mode, with some attempts. 1. Go to Quiz -> Results -> Grades in the navigation. Make sure the graph at the bottom of the page appears. 2. Select a group, and make sure there are now two graphs. 3. Go to Quiz -> Results -> Statistics. Make sure there is a graph at the bottom of the page. 4. If you can be bothered, disable the GD PHP extension, and make sure the graphs are replaced by a nice message saying that GD is required (rather than just being broken images).

    Description

      On the quiz results page (/mod/quiz/report.php?id=60&mode=overview) I am seeing a broken image. The image URL is /mod/quiz/report/overview/overviewgraph.php?id=3 When I access that URL directly I get the error "Fatal error: Call to undefined function ImageCreate() in /home/andrew/Desktop/code/moodle/int/master/lib/graphlib.php on line 1420"

      The error is expected as I do not the the GD PHP extension installed. Its not installed by default on Ubuntu. However it would be nice if we could avoid displaying a broken image if its not installed on the server.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              andyjdavis Andrew Davis
              Dan Poltawski Dan Poltawski
              Michael de Raadt Michael de Raadt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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