Fatal error: Call to undefined function gradebookapi_load_marks() in /home/transbib/public_html/modules/gradebook/gradebook_scal
idontunderstand - October 19, 2009 - 20:59
| Project: | Gradebook |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Fatal error: Call to undefined function gradebookapi_load_marks() in /home/transbib/public_html/modules/gradebook/gradebook_scales/gradebook_scales.module on line 354

#1
not sure what this is. I upgraded some modules and then tried to work my gradebook and now the scales module does not work, whenever I try to post some content and assign it a scale? Would appreciate any help on this, thanks....
#2
Do you recall what you upgraded, and from what version to what version?
Sorry if this is obvious, but I have to ask so we don't chase our tails. Sid you remember to run update.php?
#3
No, I just did the updates for all the modules that they said needed updating in the updates section, and now the main problem i am having is with the gradebook. The scales part of it does not work. I have tried uninstalling completely and installing different gradbook modules, but the only one that has the scales for grades with it is the development version which brings up this error. I have also done update php, clean up database and clear cache...
#4
When you uninstalled did you delete the gradebook directory and all its subdirectories before unpacking the new tar file?
gradebook scales is dependent on the gradebookapi module. This module contains the function gradebookapi_load_marks() (its the last function in the file). I've checked in CVS and its there....you might want to check the version number of you current gradebookapi.module file, and/or the function.
I've got the same code running on a both a live site and a test site and I can't reproduce that. I'll try a clean install of the lastest tarball on another test site and see if I can learn more....
#5
thanks for this, if you find out anything else let me know....
#6
Sorry. I can't seem to reproduce this error. Here is what I did:
* Download gradebook-6.x-2.x-dev
* Enable gradebook and gradebook api module
* created test gradebook
* Enable gradebook scales
* created a scale
* add assignment type at gradebook api configuration
...
Not sure what to try next...At what point are you seeing the error?
#7
the error happens when you try to create an actual node as an assignment by posting something and then submitting it. Thats when i get the error. If I dont use the scales part of gradebook then I dont get an error. I can use gradebook without the scales and it works ok when i submit something but that would mean I would not be able to use the grades system. As it is with the basic gradebook I can only assign percentages because i cant use the scales because it produces that error i spoke about
#8
So I went ahead and created an assignment using the scale that I made previously (described in #6), and I am not getting any error. When I assigned grades for the assignment, the scale worked correctly in the gradebook, displaying appropriate letter grades instead of numerical scores (in this case).
It sounds like you must have some old files from an older version of the gradebook package somewhere in the system. Perhaps when unpacking, old files were not deleted? I really can't think of another reason why you would be getting this error.
If uninstalling your current gradebook modules is not a problem, I would suggest that you do that. Then delete the entire gradebook directory. Go back to admin/build/modules/list and verify that the gradebook package is not listed. (If it is still showing up then you must have another copy somewhere (perhaps in a subdirectory) that Drupal is still able to find. If so, hunt this rogue copy down and delete it!) Then download a fresh copy of the gradebook-6.x-2.x-dev tarball, unpack it and enable it.
If that doesn't do it, I am afraid that I am out of ideas...
Let me know if this works.
#9
thanks for being so helpful, i will try and hunt down that rogue copy, i have tried deleting and uninstalling several times but perhaps i need to look again, thanks
#10
Not much luck with this. i searched around for any rogue modules and didnt find any so i uninstalled completely and then re-installed the developed version and this is what i got
Fatal error: Unsupported operand types in /home/transbib/public_html/modules/drupal-6.10/modules/system/system.module on line 626
Does this make any sense at all?
#11
Fatal error: Call to undefined function gradebookapi_load_marks() in /home/transbib/public_html/modules/gradebook/gradebook_scales/gradebook_scales.module on line 354
Any ideas what this could be would really help, thanks....
#12
I still can't reproduce the problem. Let's start with the most obvious.
Can you verify that the last function in your gradebookapi.module file is gradebookapi_load_marks() ?
If it is there then the question is why isn't it being found in your installation?
Are you still getting the unsupported operand types message? On what page does that occur?