-
Bug
-
Resolution: Fixed
-
Critical
-
3.11.6, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
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()
- has a non-specific relationship to
-
MDL-30668 Prevent the grader report from storing serialized data in the user_preferences table
- Closed