no roles defined in admin->appearance->graderoles

no roles defined in admin->appearance->graderoles

by Cary Clark -
Number of replies: 8

I'm a new user, setting up a course as a Teacher with editing rights. I don't have admin rights or any direct access to the server. I'm using Moodle 1.7 (I think - how can I find out?).

When I click on Grades in the Administration block I see the message:

no roles defined in admin->appearance->graderoles

and, in a pink box, 'No grades returned' although I have graded several students for an assignment. I've looked at the discussions but could not find anything relevant.

What do I need to do to see the grades? Any advice welcome - thanks.

Cary

In reply to Cary Clark

Re: no roles defined in admin->appearance->graderoles

by Cary Clark -
I've figured out that I have Moodle version 1.7 beta+ (2006101003).
Cary.
In reply to Cary Clark

Re: no roles defined in admin->appearance->graderoles

by Matt Campbell -
Your Moodle administrator needs to go to http://YOURSITE/admin/settings.php?section=gradebook, ensure that the students box is checked, and save it. Other roles may be shown if desired, but unless you have a reason to, I'd just use students.

Thanks,
Matt
In reply to Matt Campbell

Re: no roles defined in admin->appearance->graderoles

by Tyler McGill -
Hi,

I'm having the same problem in Moodle 1.7 - when I go to admin page described above and click anything (including the "student") I receive the following error:

Warning: Invalid argument supplied for foreach() in /home/*mysite*/public_html/lib/adminlib.php on line 2335

My student are getting quite frustrated at the lack of ability to see grades - please help!
In reply to Tyler McGill

Re: no roles defined in admin->appearance->graderoles

by Chris Myers -
You can fix this error by going to /grade/lib.php and change the following line ( line 3682 in lib.php v1.3):

$configvar = get_config('', 'gradebookroles');

to

$configvar->value = get_config('', 'gradebookroles');

Hope that helps!
Chris
In reply to Cary Clark

Re: no roles defined in admin->appearance->graderoles

by Douglas Ianitsky -
Do it

//if ($rolestoget = explode(',', $configvar)) {
if ($rolestoget = $configvar) {

in line 3016 in version 1.46.2.6

Thanks