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

Make reportsgraph.php invocation selectively

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7
    • Fix Version/s: 1.6.4, 1.7
    • Component/s: Unknown
    • Labels:
      None
    • Environment:
      Any, GD not installed
    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE

      Description

      When viewing some reports (stats based) there are some invocations to reportsgraph.php that, produce the error:

      Fatal error: Call to undefined function: imagecreate() in moodle_17_stable/lib/graphlib.php on line 1415

      I think it will be smarter to check for GD availability, just like some activity logs page are doing currently, showing the message:

      (GD must be installed to see this graph)

        Gliffy Diagrams

          Activity

          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Done in 1.6, 1.7 and HEAD. Now course overview reports check for GD before invoking any reportsgraph.php call

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Done in 1.6, 1.7 and HEAD. Now course overview reports check for GD before invoking any reportsgraph.php call

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                7/Nov/06