WeBWorK Main Forum

WeBWorK::ContentGenerator::Home

WeBWorK::ContentGenerator::Home

by Paul Bolton -
Number of replies: 2
I'm getting an error message

Can't locate object method "new" via package "WeBWorK::ContentGenerator::Home" at /opt/webwork/webwork2/lib/WeBWorK.pm line 333.

when I point my browser at my WeBWorK home page or course home pages.

There have been no changes to my files /opt/webwork/webwork2/lib/WeBWorK.pm and /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Home.pm

Just prior to seeing these error messages I'd been installing some problem libraries and copying .pl files from these libraries to my /opt/webwork/pg/macros directory.

I've restarted Apache but it's not solved my problem.

Dr Paul Bolton
School of Mathematics
University of Manchester
UK
In reply to Paul Bolton

Re: WeBWorK::ContentGenerator::Home

by Gavin LaRose -
Hi Paul,

I'm shooting in the dark here: I assume you've checked the permissions on the files and directories in the /opt/webwork tree? If it can't find WeBWorK::ContentGenerator::Home->new(), it seems to met that either that file got messed up somehow, or apache isn't able to read it.

Gavin
In reply to Paul Bolton

Re: WeBWorK::ContentGenerator::Home

by Davide Cervone -
There may also be some useful information in the web server log. Some messages are not displayed on screen, but only appear there. Check to see if there is anything in the log that might indicate difficulty opening files or finding modules.

Davide