Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5997

Errors when displaying a course page that has a progress bar on it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • 2.7.11
    • Block: Progress
    • None
    • 2015111600
    • MOODLE_27_STABLE

      FULL STEPS

      1) Log into Moodle as an Administrator
      2) Enable Moodle debugging. Set it to developer mode and to display.
      3) Create a course
      4) Add activities to the course. Do not attempt any of the activities.
      5) Install the Progress bar block plugin. Configure it to monitor some activities. I have it configured to monitor 4 activities (file in a repository, assignment, feedback, quiz) in Topic 5 of my course.
      6) Add a Progress bar to the course page.

      WHAT I EXPECTED

      When I view the course page containing the Progress Bar block, I expected the page to display without error messages, notices or warnings.

      WHAT ACTUALLY HAPPENS

      As A Student - When I view the course page containing the Progress Bar block, I see the following display on the screen:

      • Notice: Undefined index: data in /var/www/moodle/blocks/progress/lib.php on line 1366
      • Notice: Trying to get property of non-object in /var/www/moodle/blocks/progress/lib.php on line 839
      • Notice: Undefined index: in /var/www/moodle/blocks/progress/lib.php on line 839
      • Notice: Trying to get property of non-object in /var/www/moodle/blocks/progress/lib.php on line 839
      • Notice: Trying to get property of non-object in /var/www/moodle/blocks/progress/lib.php on line 840
      • Notice: Trying to get property of non-object in /var/www/moodle/blocks/progress/lib.php on line 840
      • Notice: Undefined index: in /var/www/moodle/blocks/progress/lib.php on line 840
      • Notice: Trying to get property of non-object in /var/www/moodle/blocks/progress/lib.php on line 840
      • Warning: array_search() expects parameter 2 to be array, null given in /var/www/moodle/blocks/progress/lib.php on line 840
      • Notice: Trying to get property of non-object in /var/www/moodle/blocks/progress/lib.php on line 1284

      One other observation, which may be related, is that only the first activity of the four reflects the actual status of the activity as seen in the attached screenshot.

      As An Administrator - If I try to access the page logged in as a Moodle administrator, the same errors appear followed by these errors:

      • Notice: Trying to get property of non-object in /var/www/amoodle27/blocks/progress/lib.php on line 933
      • Notice: Trying to get property of non-object in /var/www/amoodle27/blocks/progress/lib.php on line 933
      • Notice: Trying to get property of non-object in /var/www/amoodle27/blocks/progress/lib.php on line 1116
      • Notice: Trying to get property of non-object in /var/www/amoodle27/blocks/progress/lib.php on line 1174
      • Notice: Trying to get property of non-object in /var/www/amoodle27/blocks/progress/lib.php on line 1177
      • Fatal error: Call to a member function get_icon_url() on a non-object in /var/www/amoodle27/blocks/progress/lib.php on line 1179

      The page does not display, likely due to the Fatal error.

      ADDITIONAL INFORMATION

      In case this is relevant, please note that this is an upgrade from a previous version. However I did go through the process of updating the database through the notifications page.

      Let me know if you require any additional information.

      Best regards,

      Michael

            salvetore Michael de Raadt
            michael-milette Michael Milette
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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