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

Make reportsgraph.php invocation selectively

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.6.4, 1.7
    • 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7
    • None
    • None
    • Any, GD not installed
    • Any
    • MOODLE_16_STABLE, MOODLE_17_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE

      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)

            dougiamas Martin Dougiamas
            stronk7 Eloy Lafuente (stronk7)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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