Can't call method "table" on an undefined value at /usr/lib/perl5/site_perl/5.005/FS/Record.pm line 721.

Ivan Kohler ivan at sisd.com
Sun Mar 28 17:28:22 PST 1999


On Fri, Mar 26, 1999 at 04:23:32PM -0500, Christopher S. Weimann wrote:
> 
> I am having a very similar problem.  It comes up when I try to add a 
> package to a customer.  The complete error from in the browser is..
> 
> -------------
> Software error:
> 
> Can't call method "table" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.005/FS/Record.pm line 721. 
> 
> For help, please send mail to the webmaster (cweimann at wallnet.com), giving this error message and the time and date of
> the error. ; 
> -------------
> 
> and the log shows
> 
> -------------
> [Fri Mar 26 15:57:38 1999] cust_main.cgi: Use of uninitialized value at /usr/local/lib/perl5/site_perl/5.005/FS/cust_main_invoice.pm line 137.
> [Fri Mar 26 15:57:38 1999] cust_main.cgi: Use of uninitialized value at /usr/local/lib/perl5/site_perl/5.005/FS/cust_main_invoice.pm line 137.
> [Fri Mar 26 15:58:08 1999] cust_pkg.cgi: Can't call method "table" on an undefined value at /usr/local/lib/perl5/site_perl/5.005/FS/Record.pm line 721.
> -------------
> 
> I think only the third line above relates but.....

The problem is that you don't have a configuration directory.  In
(the-soon-to-be) 1.2, the configuration directory has moved: see
htdocs/docs/upgrade3.html and htdocs/docs/config.html. 

The error message was completely uninformative.  Now you'll get a fatal
error instead (just commited the change).

> Also it seems to run REAL slow.  For example, if I click on New Customer
> from the main menu it takes 22 seconds for the page to come up.  During
> that time top shows perl5 running at over 90% of cpu time for about half
> the time as user nobody then as user freeside.  Is this a suid perl problem?
> Would I be better off running suExec from Apache?

I went and checked this out; on my P166 laptop the New Customer page takes
8-9 seconds to load as a CGI, but 2-3 seconds as a mod_perl script.  While
there are surely things to optimize, it seems the bulk of the performance
problem is from CGI overhead.  Check out mod_perl: http://perl.apache.org/

> Thanks in advance.
> 
> PS: I had been running with fs-current.tar.gz but have recently upgraded
> to the latest code via CVS in hopes of solving this.

Thanks for helping test the current tree.

-- 
Ivan Kohler <ivan at sisd.com> - finger for PGP key - <moc.dsis at navi> Relhok Navi
Open-source billing and administration for ISPs - http://www.sisd.com/freeside
20 4,16 * * * saytime # please don't be surprised if you find me dreaming too



More information about the freeside-users mailing list