Have version 1.9.4 in production, wanted to try out 2.0. IT person (who originally set up 1.8.3 later upgrading it to the 1.9.4) backed everything up, set up 2.0.2 with a copy of the database from the older running version (1.9.4) My initial quick look at 2.0 saw the courses were there, cool, I'll play with it later. About this same time our IT group upgraded PHP to 5.2.17 (I don't know what the original version of PHP was, maybe 5.2.1) Shortly after this I get reports of teachers being able to see their courses but if they go in to edit anything all they get is a white screen.
After Googling and searching forums I go and turn on debugging. Now I see the following errors:
Warning: require_once(fcFPP.php) [function.require-once]: failed to open stream: No such file or directory in �1��evweb/moodle/1.9.4/admin/fcFPP.php on line 20
Fatal error: require_once() [function.require]: Failed opening required 'fcFPP.php' (include_path='/a/devweb/moodle/1.9.4/lib/pear:.:/usr/csite/pubtools/php/5.2.17/lib/php') in �1��evweb/moodle/1.9.4/admin/fcFPP.php on line 20
Thinking it was looking for the fcFPP.php file in the admin directory and couldn't find it and that things might have gotten moved or deleted when they were messing with the servers I went and found it in the fc directory and copied it over to the admin directory. That fixed the problem with the teachers not being able to make edits. However, now I find if I go to certain Admin areas such as Notifications I get the same type of error except now it's looking for the grade_object.php file. I also find that the error is somewhat random. Sometimes it worked, sometimes it didn't. I copied grade_object.php from lib/grade to the lib/pear directory and that fixed that. Or so I thought.
Now I start playing around with 2.0.2 and everything looks ok until I go into the Admin sections. Just about any admin link results in the following error:
Warning: require_once(grade_object.php): failed to open stream: No such file or directory in ���evweb/moodle/2.0.2/lib/pear/grade_object.php on line 28
Fatal error: require_once(): Failed opening required 'grade_object.php' (include_path='/a/devweb/moodle/2.0.2/lib/zend:/a/devweb/moodle/2.0.2/lib/pear:.:/usr/csite/pubtools/php/5.2.17/lib/php') in on line 28
Again it is not consistant. At first I was getting the blank pages when I went to turn on debugging but after several attempts including logging out and back in I was finally able to turn on debugging to get the above error. It is quite repeatable on most links from site admin. Now I have this same type of error from two different versions of Moodle, something ain't right.
There are only four files that have require_once(grade_object.php) on line 28 they are grade_scale.php, grade_category.php, grade_grade.php and grade_outcome.php. grade_item.php hasit on line 27 and I have seen that error pop up on occasion. But why would any of that be called for admin actions?
I don't know where to go at this point. I'm pretty sure it's not a problem with files being moved. We're on an intranet with no outside access, it's a small user group and we're still only writing the material for the production version it's not really in use yet so I doubt we've been hacked.
Any ideas on what to look at? I'm thinking it has to do with the PHP upgrade. I looked at the PHPInfo (strangly that link doesn't error out) and I see nothing unusual but I am in no way knowledgeable in this area. Server -> Enviroment shows everything OK except for the php_extension and php_check_php533 which show as check but don't sound likely to be problems. Why would grade* be causing problems in admin functions? Unfortunately I don't have write permissions on the 2.0.2 files so I can't place an echo statement before line 28 of these files to see which one is pulling the error. Again, any ideas on which direction to go with this?