[freeside] Can't call method "table" on an undefined value at /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 1121

ivan ivan at 420.am
Tue Mar 22 12:23:15 PST 2005


The error seems to indicate $dbdef variable holding database 
schema information isn't defined.  No idea how the code manages to get 
there or why it would be an intermittant problem - the code should error 
out long before that if it can't load up the database definition.

What version of DBIx::DBSchema are you using?  If you're using
DBIx::DBSchema 0.24 or newer, what version of Storable do you have
installed?

-- 
_ivan


indicates 
Freeside wasn't able to load database schema 
information from the dbdef file.  

On Sun, Mar 20, 2005 at 01:04:23AM -0800, No Spam wrote:
> Hello,
> 
> I have just installed Freeside and I'm receiving the following error:
> 
> Can't call method "table" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 1121
> 
> Here is the complete error:
> 
> error:  Can't call method "table" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 1121.
>  
> context:  ...   
> 1117:  } else { 
> 1118:  $table = $something; 
> 1119:  } 
> 1120:  #croak "Usage: \@fields = fields(\$table)\n or: \@fields =
> \$record->fields" unless $table;
> 1121:  my($table_obj) = $dbdef->table($table); 
> 1122:  confess "Unknown table $table" unless $table_obj; 
> 1123:  $table_obj->columns; 
> 1124:  } 
> 1125:   
> ...   
>  
> code stack:  /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm:1121
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm:206
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm:344
> /usr/local/www/data/freeside-mason/view/cust_bill.cgi:10
>  
> And the raw log:
> 
> Can't call method "table" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 1121.
> 
> 
> Trace begun at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Exceptions.pm
> line 131
> HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "table"
> on an undefined value at
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 1121.^J')
> called at /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 1121
> FS::Record::fields('cust_bill') called at
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 206
> FS::Record::qsearch('cust_bill', 'HASH(0xb55062c)') called at
> /usr/local/lib/perl5/site_perl/5.8.5/FS/Record.pm line 344
> FS::Record::qsearchs('cust_bill', 'HASH(0xb55062c)') called at
> /usr/local/www/data/freeside-mason/view/cust_bill.cgi line 10
> HTML::Mason::Commands::__ANON__(1, '') called at
> /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 136
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xb550afc)',
> 1, '') called at
> /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1069
> eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm
> line 1068
> HTML::Mason::Request::comp(undef, undef, undef, 1, '') called at
> /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 338
> eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm
> line 338
> eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm
> line 297
> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xb3d4e98)')
> called at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm
> line 134
> eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm
> line 134
> HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xb3d4e98)')
> called at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm
> line 827
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xae46e2c)',
> 'Apache=SCALAR(0xb32ee44)') called at
> /usr/local/etc/freeside/handler.pl line 151
> HTML::Mason::handler('Apache=SCALAR(0xb32ee44)') called at /dev/null line 0
> eval {...} at /dev/null line 0
> 
> This is a fresh install on a FreeBSD box running Freeside 1.4.1,
> postgresql-server-7.4.7_2, HTML::Mason, apache+mod_ssl-1.3.33+2.8.22,
> p5-DBI-1.47 and p5-DBD-Pg-1.32_1.
> 
> This error has occured when adding a new customer, modifying an
> existing customer and editing invoice events... it seems completely
> random.  Sometimes the error occurs when trying to execute a certain
> task (new customer, edit invoice event, etc.) and then the error
> doesn't occur and I'm able to complete the task.
> 
> Thank you for your assistance.
> 
> Chris Joyce

-- 
_ivan



More information about the freeside-users mailing list