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

Grader report throws PHP 8.0 exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.11.7
    • 3.11.6, 4.0
    • Gradebook

      As teacher, I go to my course homepage, click on grades. Since I have numerous groups of assignments, I use the toggles to collapse some of the assignments and shorten the range.

      The next time I return to the course and click on grades, I get the error shown below.

      My c oteacher and the admin do not get the same problem, but they have not contracted and expanded the grade display.

      I have tested this in Moodle 3.11.3, 5, and 6 on PHP 8.0.11, 8.0.13, and 8.0.16. There is no issue in PHP 7: this is a problem with PHP 8.0.

       

      Grader report
      Warning: Undefined array key "gradesonly" in /Users/christe/Sites/sodeveloper/public_html/ScholarsOnline/moodle/grade/report/grader/lib.php on line 1793
      Exception - array_intersect(: Argument #1 (Sarray) must be of type array, null given
      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:
      • line 1793 of / grade/ report / grader / lib.php: TypeError thrown
      • line 1793 of / grade/ report / grader / lib.php: call to array_intersectO
      • line 1815 of / grade/ report / grader / lib.php: call to grade_report_grader: filter_collapsed_ categories(
      • line 133 of / grade / report / grader /lib.php: call to grade_report grader: :get collapsed_ preferences(
      • line 140 of / grade / report / grader /index.php: call to grade _report grader->
      _construct()

            stronk7 Eloy Lafuente (stronk7)
            mycroftt Christe McMenomy
            Amaia Anabitarte Amaia Anabitarte
            Jun Pataleta Jun Pataleta
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 40 minutes
                6h 40m

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