This sounds like the input_vars setting in php. issue where, when this is set too low (which it is by default), only a certain number of grades are saved in the gradebook before hitting the setting and not saving anymore.
Anyone made a query to write grades to gradebook?
now that's interesting! On my 'to do' list is to check if my max_input_vars is too low as I had a warning.
... only interesting though I added a line to php.ini
nothing broke but it didn't help with writing the unwritten grades from the assignments to the gradebook (I read that they might be recovered by un-enrolling and re-enrolling students but this didn't work).
max_input_vars controls the number of fields that can be submitted in a form. The grader report has two fields per grade cell and two per feedback cell if you have quick feedback enabled. max_input_vars is not going to have ANY AFFECT on grades not transferring from the assignment grading interface into the gradebook.
Thanks Bob for clearing that up.
I think I understand my problem a little better now (but still no solution!). We have bought a block which interfaces with our school SIMS system timetable and allows us to enrol students in class groups. This block also seems to sometimes un-enrol students without an apparent reason. We had noticed this problem but not connected it with the problem of grades not appearing in the gradebook.
What we saw was that students had feedback on their assignments when they looked at the directly but the gradebook reports didn't show some or all grades. I now THINK that what has happened is students have become un-enrolled and then were re-enrolled. Later we noticed that the grades were not present in the gradebook.
So far as I know, recovery of grades on re-enrolment hasn't been fixed so I'd be really grateful for any suggestions on ways to get summary reports of grades for students and teachers.
Our teachers want to be able to show OFSTED their grading records using the moodle report so it's not very helpful when grades are missing!
Things are not as bleak as I thought after reading again I found the option 'recover grades if possible' in the 'enrol users' dialog going back at least to version 2.3. I tried manually re-enrolling a student who had become un-enrolled and the grades re-appeared! Our enrolment from the MIS doesn't have this ability but at least I can enrol using Moodle 'enrol users' and recover grades to the gradebook.
A colleague of mine has patched an issue with grades restoring (in core Moodle it only works if the users were enrolled manually) so you may want to take a look at this:
We've implemented it without errors and it has helped out immensely.