Error when using specific course grade item (1.9.5+)

Error when using specific course grade item (1.9.5+)

by Mark Gijtenbeek -
Number of replies: 8

Hello,

I'm getting the following error:

Fatal error: Call to undefined function: bounded_grade() in [moodle_root]/lib/gradelib.php on line 723

when requesting a certificate in which we have defined that the grade from a specific course item (a quiz)to be displayed.

(the review certificate button is not displayed)

The certificate is displayed properly when using the overall course grade.

We are using 1.9.5 build 20090520.

Help om the above issue will be appreciated!

regards
Mark

Average of ratings: -
In reply to Mark Gijtenbeek

Re: Error when using specific course grade item (1.9.5+)

by Chardelle Busch -
Picture of Core developers
I will look into it.
In reply to Chardelle Busch

Re: Error when using specific course grade item (1.9.5+)

by Mark Gijtenbeek -

thank you.

Dug into it this late last night and looks that bounded_grade() is new in 1.9.5? The similar section in 1.9.4. mentions bounded_number().

Couldn't find the reference to this module in the certificate module code, so my search ended there (not quite suprising as I'm just a humble user)

Mark

In reply to Chardelle Busch

Re: Error when using specific course grade item (1.9.5+)

by Paul Taylor -
One of my clients is getting the same error and it was all working in the latest 1.9.4+ version before going to 1.9.5+.

Paul
In reply to Paul Taylor

Re: Error when using specific course grade item (1.9.5+)

by Chardelle Busch -
Picture of Core developers
Fixed in cvs, or replace the lib file with attached.
In reply to Chardelle Busch

Re: Error when using specific course grade item (1.9.5+)

by Dave Balch -
Hi,

I'm trying to see exactly what changed, so I can fix this in my production Moodles with minimum disruption - please could you post a link to the CVS commit that fixes it.

Cheers,
Dave.
In reply to Dave Balch

Re: Error when using specific course grade item (1.9.5+)

by Chardelle Busch -
Picture of Core developers
See the lib file above, the hack to the certificate_print_mod_grade function. It is fixed in the 1.9 branch only.
In reply to Chardelle Busch

Re: Error when using specific course grade item (1.9.5+)

by Paul Taylor -
Just got round to doing this. I installed the new lib file, but it still does not print certificates for students, even though they have 100%.