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

Graph of Report "Course Overview" is not show

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      Linux/Windows
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      The graph of "Course Overview" report is not show.

      With the Debug enabled, the following message is show:

      <br />
      <b>Notice</b>: Undefined variable: course in <b>.../moodle/admin/report/courseoverview/reportsgraph.php</b> on line <b>15</b><br />
      <br />
      <b>Notice</b>: Trying to get property of non-object in <b>.../moodle/admin/report/courseoverview/reportsgraph.php</b> on line <b>15</b><br />

      Solution:

      Before the code on the line 15 of this file, include this code:

      $course = get_site();

      And graphs works fine!

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            progdan Daniel Arndt Alves
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07