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

Make reportsgraph.php invocation selectively

    XMLWordPrintable

    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)

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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