Grades missing for some users

Grades missing for some users

by Al Bay -
Number of replies: 10

Greetings,

I am using Moodle 2.1. I have noticed in a course that most students grades are added to the grader report but for some random unknown reason some students' grades are not added; it remains blank. Can someone point me how to investigate this problem or what might be happening to cause this random activity?

In reply to Al Bay

Re: Grades missing for some users

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

There is a php setting that is causing this.  You need to raise the number in max_input_vars in your php.ini file.

In reply to Emma Richardson

Re: Grades missing for some users

by Under Dog -

Is there a recommended level and do you know if this affects SCORM's as well?

 

Cheers,

Dave

In reply to Under Dog

Re: Grades missing for some users

by Al Bay -

Thanks Emma,

I checked my php.ini file and I don't see a line for max_input_vars. I'm using php 5.3.5. Is it something that needs to be added?

In reply to Al Bay

Re: Grades missing for some users

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

No, it should be in there because that is what is limiting it.  Are you on linux?  It should be in your php5/apache2 folder.  

In reply to Under Dog

Re: Grades missing for some users

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

I think you can set it as high as 20,000 without too much issue.  I just checked mine and it is at 5000 currently but I believe the issue did get resolved in a later release.

In reply to Emma Richardson

Re: Grades missing for some users

by Al Bay -

Hi Emma,

Thanks for the reply. I checked my php.ini file again and I am still not seeing the max_input_var variable in it. I can the variable; around which line should it be added?

I've a bit more investigation and I've noticed for the random persons whose grade does not show in the grader report that the grade is populated in the mdl_lesson_grades table but it is not populated in the mdl_grade_grades table. For everyone else whose grades displays in the grader report, both tables are populated.

My questions are:

Do you know of any reason why this would happen?

Can a query be used to populate missing grades in the mdl_grade_grades table without affecting the system?

Does anyone know of a solution to prevent this from happening in the future?

In reply to Al Bay

Re: Grades missing for some users

by Bob Puffer -

if max_input_vars is not in your ini file the default value will be used (1,000).  You can add the line anywhere you want.  Should read:

max_input_vars = 20000 

In reply to Bob Puffer

Re: Grades missing for some users

by Robert Russo -

Don't forget about if they're using suhosin.

[suhosin]

suhosin.post.max_vars = 20000

suhosin.request.max_vars = 20000

 

In reply to Emma Richardson

Re: Grades missing for some users

by Paul Nicholls -

From memory, an initial workaround was included in 2.3 which automatically decreases the number of students displayed per page, based on the number of grade items and your current max_input_vars setting.  That caused quite a bit of confusion, though, so a new workaround was included in 2.3.5 and 2.4.2 (MDL-35074) which no longer needs (and therefore removes) the automatic students-per-page limit, putting control of the page size back into the users' hands.

-Paul

In reply to Paul Nicholls

Re: Grades missing for some users

by SVI eSolutions -

Hi, I have a simular problem. (in moodle 2.0.3) I have set up a course where students have two attempts at a quiz to achieve more than 85% in order to pass. This has worked fine for a while, but recently some students' grades aren't being complied... There is no grade for them in the results table or in their own grades table. In their course they see 'course not yet started' yet if I check the quiz results they have completed the requiements and passed. The cron is running fine and I have even run it manually again a couple of times without any changes. I have added the line above in my php.ini file with no changes.

What is strange is that with some students all if but not with all...

Can anyone help? This is very frustrating.