Well, the first message is pretty strange, because the
context() method is defined in the same file as the
Parser::Context package, so what it looks like is that that file is not being loaded at all. The loading of the Parser (i.e., MathObjects) files is controlled by the
${pg}{modules} array at the bottom of webwork2/config/global.conf. There should be two entries near the bottom of that list:
[qw(Parser Value)] and
[qw(Parser::Legacy)]. Are they there and not commented out?
If they are there, then I don't see why you would be getting this message. You might want to try putting a warning message into pg/lib/Parser/Context.pm to see if it is actually being loaded. (The message may not appear on screen, but should be in the error log, at last.) For example:
warn "In Parser::Context";
If not, try putting a
die statement rather than a
warn just to be sure. Of course, remember to restart the server after you edit the file.
If you don't see the message, then the file isn't being loaded. Check the $pg_dir variable in webwork2/conf/global.dist so that you are sure you are using the correct PG directory. Also, make sure you go over the changes you made to global.conf.dist carefully (you did make a new global.conf file from the global.conf.dist file and edited it to suit your local configuration, right? You can't just use your old one from an earlier version of WeBWorK.) Make sure the changes you have made are all correct.
If you do see the message, then check to be sure the file is complete (perhaps it didn't transfer correctly when you downloaded it, or it got corrupted on your disk somehow). I know I'm grasping at straws, here, but if that file is getting loaded, I don't see how it could be producing the error you are reporting.
Are you running Apache2 or Apache1.3? Also, what version of Perl are you using? What OS?
As for the error about no path module found, that is probably because you are trying to run the library browser from the admin course. That course is a very specialized one, and is really just for administrative work. You should not run the Library Browser there. Make an actual course (even just a test one) to run the Library Browser. I think you will find that you don't get that message then.
Davide