System error

error:  Can't call method "prepare" on an undefined value at /export/home/Webfin/Prod/mod-bin/Webfin/FundLib.pm line 91.
context: 
... 
87: 
88:  my $dbh = DBI->connect(BD_SID, BD_USERNAME, BD_PASSWORD);
89: 
90:  $sql = q{ select * from INOFUNDS_FAMILIES where id=? };
91:  $sth=$dbh->prepare($sql);
92:  $sth->execute($family_code) or die "Database error occured: $DBI::errstr\n\n $sql";
93:  $row = $sth->fetchrow_hashref;
94:  $sth->finish;
95: 
... 
code stack:  /export/home/Webfin/Prod/mod-bin/Webfin/FundLib.pm:91
/export/home/Webfin/Prod/mod-bin/Webfin/FundLib.pm:525
/export/home/Webfin/Prod/mbin/fonds/details.html:18
/export/home/Webfin/Prod/mbin/fonds/autohandler:10
/export/home/Webfin/Prod/mbin/autohandler:4
raw error






























Can't call method "prepare" on an undefined value at /export/home/Webfin/Prod/mod-bin/Webfin/FundLib.pm line 91.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "prepare" on an undefined value at /export/home/Webfin/Prod/mod-bin/Webfin/FundLib.pm line 91.^J') called at /export/home/Webfin/Prod/mod-bin/Webfin/FundLib.pm line 91
Webfin::FundLib::getfamily(1458, 'fr') called at /export/home/Webfin/Prod/mod-bin/Webfin/FundLib.pm line 525
Webfin::FundLib::getFundDetail('CIG8041', 'fr') called at /export/home/Webfin/Prod/mbin/fonds/details.html line 18
HTML::Mason::Commands::__ANON__('codefonds', 'CIG8041', 'lang', 'fr', 'server_images', 'http://argent.canoe.com') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x2e9c790)', 'codefonds', 'CIG8041', 'lang', 'fr', 'server_images', 'http://argent.canoe.com') called at /usr/share/perl5/HTML/Mason/Request.pm line 1246
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, 'codefonds', 'CIG8041', 'lang', 'fr', 'server_images', 'http://argent.canoe.com') called at /usr/share/perl5/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x32046a0)') called at /export/home/Webfin/Prod/mbin/fonds/autohandler line 10
HTML::Mason::Commands::__ANON__('codefonds', 'CIG8041', 'lang', 'fr', 'server_images', 'http://argent.canoe.com') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x2e9cdb0)', 'codefonds', 'CIG8041', 'lang', 'fr', 'server_images', 'http://argent.canoe.com') called at /usr/share/perl5/HTML/Mason/Request.pm line 1246
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, 'codefonds', 'CIG8041', 'lang', 'fr', 'server_images', 'http://argent.canoe.com') called at /usr/share/perl5/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x32046a0)', 'lang', 'fr', 'server_images', 'http://argent.canoe.com') called at /export/home/Webfin/Prod/mbin/autohandler line 4
HTML::Mason::Commands::__ANON__('codefonds', 'CIG8041') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x2964760)', 'codefonds', 'CIG8041') called at /usr/share/perl5/HTML/Mason/Request.pm line 1246
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, undef, 'codefonds', 'CIG8041') called at /usr/share/perl5/HTML/Mason/Request.pm line 459
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 459
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 411
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x32046a0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x32046a0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 832
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x2939380)', 'Apache=SCALAR(0x3209b40)') called at (eval 292) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache=SCALAR(0x3209b40)') called at /dev/null line 0
eval {...} at /dev/null line 0