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

Chart image generation fails in Participant - All logs activity report

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3
    • 2.0.4, 2.1.1
    • Course
    • Any
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • wip-MDL-27696-master
    • 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
    • Easy
    • 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

    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.

      Attachments

        1. All logs chart image patch.patch
          1 kB
        2. BrokenChart.png
          BrokenChart.png
          94 kB
        3. Error.png
          Error.png
          88 kB
        4. Graph fix patch.patch
          0.5 kB

        Issue Links

          Activity

            People

              samhemelryk Sam Hemelryk
              salvetore Michael de Raadt
              Petr Skoda Petr Skoda
              David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1/Aug/11