"Edit Grades" fails on large courses

G. Grow
"Edit Grades" fails on large courses

I am using the latest Moodle 1.9, mostly with Hot Potatoes quizzes delivered through Quizport.

I can edit grades manually on smaller courses, and in the first rows of the gradebook for large courses.

But in a course with around 50 students, I cannot enter grades for students below about the 25th row of the gradebook.

When I try, everything looks normal, but the changed (or new) grade does not record. After "Update," the grade I entered disappears from the gradebook.This affects only students in the bottom half of the gradebook.

I speculate that the large number of students, combined with a large number of exercises, overrides some limit.

Any ideas?



Picture of Paul Nicholls
Re: "Edit Grades" fails on large courses
Core developersPlugin developersTesters

Hi Gerald,

This is a known issue - large gradebooks hit PHP's "max_input_vars" limit (which defaults to 1000), with subsequent fields simply not being passed on to the Moodle code by PHP.  The quickest and easiest way to deal with it is to increase max_input_vars in your PHP configuration (assuming that you, or your administrator if that's not you, have access to do so; this may not be possible on shared hosting environments).

Recent Moodle 2 builds have various workarounds for the issue (with 2.3.5 and 2.4.2 being the most user-friendly so far: MDL-35074 ).  If you're stuck on 1.9 and unable (or not willing) to increase max_input_vars, let me know and I'll provide you with a patch to implement that workaround on 1.9 (we're approaching the final stages of moving to Moodle 2 at the moment, so I had to implement it on our 1.9 site).