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

Make reportsgraph.php invocation selectively

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7
    • 1.6.4, 1.7
    • Unknown
    • None
    • Any, GD not installed
    • Any
    • MOODLE_16_STABLE, MOODLE_17_STABLE
    • 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

            dougiamas Martin Dougiamas
            stronk7 Eloy Lafuente (stronk7)
            Nobody Nobody
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7/Nov/06