Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Unknown method 'load' called at...

Quote Reply
Unknown method 'load' called at...
Hi,

I am trying to get this forum to work but I keep getting the below error in my log when trying to go to the admin area or the forum. I am using mod_perl and I have other mod_perl scritps running without problems. I installed the script successfully from the command line and all the scripts seem to load successfully upon server reset. My web browser shows a Internal Server Error.


Unknown method 'load' called at D:/server/Apache/perl/forum/admin/GForum/Config.pm line 40.


Any ideas?



Quote Reply
Re: [xev] Unknown method 'load' called at... In reply to
It looks perhaps like the modules haven't loaded into mod_perl properly.

Did you follow the mod_perl readme?
Quote Reply
Re: [Paul] Unknown method 'load' called at... In reply to
Yes. I also got the same error when trying to run the install script without mod_perl (in the cgi-bin)

Plus this was in my error log when starting up the server:

Preloading Gossamer Forum modules into mod_perl: . . . . . . . . . . .All modules loaded ok! Compiling all functions ... All modules compiled and loaded ok!

Last edited by:

xev: Jan 19, 2003, 5:36 PM
Quote Reply
Re: [xev] Unknown method 'load' called at... In reply to
There is also a little more to the other error:

[Tue Jan 21 04:35:56 2003] [error] GForum::Config (304, GT::AutoLoader): Unknown method 'load' called at d:/server/apache/perl/forum/admin/GForum/Config.pm line 40.

Last edited by:

xev: Jan 21, 2003, 1:34 AM
Quote Reply
Re: [xev] Unknown method 'load' called at... In reply to
Can you check the admin/GT/Config.pm file exists? It sounds as though that file is not installed properly, or has somehow become corrupted.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Unknown method 'load' called at... In reply to
Yes, it exists. I reinstalled the script and actually got the web based installer to work. I still get the original error when trying to use the forum though.
Quote Reply
Re: [xev] Unknown method 'load' called at... In reply to
Have you tried restarting the mod_perl server? That may fix the problem, in case the running mod_perl server somehow has a broken GT::Config library loaded.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Unknown method 'load' called at... In reply to
It's a devel server so it is restarted constantly.

Do you think I could be missing a certain module in my perl installation? Or is everything needed included with the script?

If I can't get it to work I may just wait to try again when I get the production server set up.
Quote Reply
Re: [xev] Unknown method 'load' called at... In reply to
I found the problem. My other script had a module named the exact same thing as one of the forums modules and they were getting mixed up Tongue
Quote Reply
Re: [Paul] Unknown method 'load' called at... In reply to
I am switching to mod_perl. I have installed it on the server, and I have changed the httpd.conf file.

There was no perl startup file, so I created one with this in it:

use lib '/usr/local/etc/httpd/cgi-bin/links/admin';
use Links::mod_perl;
use lib '/usr/local/etc/httpd/cgi-bin/gforum/admin';
use GForum::mod_perl;

I included reference to it in the httpd.conf file, just after the line about mod_perl

PerlRequire /usr/local/etc/httpd/conf/startup.pl

I got this error, so I have commented out that line in the httpd.conf file:

Server Configuration Error

Syntax error on line 37 of /usr/local/etc/httpd/conf/httpd.conf: Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/5.6.1/i386-freebsd /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl . /usr/local/etc/httpd/ /usr/local/etc/httpd/lib/perl) at /usr/local/etc/httpd/cgi-bin/links/admin/Links/mod_perl.pm line 21. BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/Links/mod_perl.pm line 21. Compilation failed in require at /usr/local/etc/httpd/conf/startup.pl line 4. BEGIN failed--compilation aborted at /usr/local/etc/httpd/conf/startup.pl line 4. Compilation failed in require at (eval 2) line 1.

Any ideas how I can get mod_perl working properly?
Quote Reply
Re: [tora] Unknown method 'load' called at... In reply to
You need to install a perl module called Apache::DBI. Ask your hosting company to install it for you, or, if you have root access to your system, just type (as root) in a shell (i.e. through telnet/ssh):

perl -MCPAN -e 'install Apache::DBI'

That will install the necessary module for you.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Unknown method 'load' called at... In reply to
Thanks. So I tried it, and got:

cyberinstitute% perl -MCPAN -e 'install Apache::DBI'
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
http://cpan.llarian.net/authors/01mailrc.txt.gz
Going to read /usr/home/cyber/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
http://cpan.llarian.net/...kages.details.txt.gz
Going to read /usr/home/cyber/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Thu, 30 Oct 2003 10:47:05 GMT

There's a new CPAN.pm version (v1.76) available!
[Current version is v1.59_54]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...

Fetching with LWP:
http://cpan.llarian.net/...es/03modlist.data.gz
Going to read /usr/home/cyber/.cpan/sources/modules/03modlist.data.gz
Out of memory!

What do you suggest I do?
Quote Reply
Re: [tora] Unknown method 'load' called at... In reply to
Ask your ISP to increase your memory limit. =)

Cheers,

Alex
--
Gossamer Threads Inc.