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

Chart image generation fails in Participant - All logs activity report

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 2.1.1
    • Component/s: Course
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      Hide

      1. Log in as an administrator or teacher
      2. Go to a course that has students enrolled
      3. Go to the participants page and pick one user
      4. In the navigation block, select the All logs activity report (Course -> Participants -> (picked user) -> Activity Reports -> All logs
      5. Check that a chart image appears above the table of activity.
      6. repeat for Today's logs

      Show
      1. Log in as an administrator or teacher 2. Go to a course that has students enrolled 3. Go to the participants page and pick one user 4. In the navigation block, select the All logs activity report (Course -> Participants -> (picked user) -> Activity Reports -> All logs 5. Check that a chart image appears above the table of activity. 6. repeat for Today's logs
    • Workaround:
      Hide

      Apply provided patches

      or

      Identify named parameters separately in get_logs_usercourse() in /lib/datalib.php and add an array called $days before the while loop in /course/report/log/graph.php

      Show
      Apply provided patches or Identify named parameters separately in get_logs_usercourse() in /lib/datalib.php and add an array called $days before the while loop in /course/report/log/graph.php
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull Master Branch:
      wip-MDL-27696-master

      Description

      When attempting to view the All logs report under Course -> Participants -> (chosen participant) -> Activity reports -> All logs, the chart image is broken.

      This appears to be started in the call to get_logs_usercourse() at line 114 in /course/report/log/graph.php.

      Replication instructions:

      1. Log in as an administrator or teacher
      2. Go to a course that has students enrolled
      3. Go to the participants page and pick one user
      4. In the navigation block, select the All logs activity report (Course -> Participants -> (picked user) -> Activity Reports -> All logs

      The chart image appears broken (or hidden because it is broken). Viewing just the image displays the error which occurs when the image is being produced.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    1/Aug/11