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

Broken graph displayed on quiz results page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      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).
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

              Assignee:
              timhunt Tim Hunt
              Reporter:
              andyjdavis Andrew Davis
              Integrator:
              Dan Poltawski
              Tester:
              Michael de Raadt
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/12