Gradebook

 
 
Picture of Al Bay
Grades missing for some users
 

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?

Picture of Emma Richardson
Re: Grades missing for some users
Group Particularly helpful Moodlers

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

Underdog
Re: Grades missing for some users
 

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

 

Cheers,

Dave

Picture of Al Bay
Re: Grades missing for some users
 

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?

Picture of Emma Richardson
Re: Grades missing for some users
Group Particularly helpful Moodlers

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.  

Picture of Emma Richardson
Re: Grades missing for some users
Group Particularly helpful Moodlers

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.

Picture of Al Bay
Re: Grades missing for some users
 

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?

Picture of Bob Puffer
Re: Grades missing for some users
Group Particularly helpful Moodlers

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 

Picture of Robert Russo
Re: Grades missing for some users
Group Particularly helpful Moodlers

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

[suhosin]

suhosin.post.max_vars = 20000

suhosin.request.max_vars = 20000

 

Picture of Paul Nicholls
Re: Grades missing for some users
Group DevelopersGroup Particularly helpful Moodlers

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

Picture of SVI eSolutions
Re: Grades missing for some users
 

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.