System error

error:  Can't call method "prepare" on an undefined value at /www/data/prospero/progs/WISHLIST.pm line 20.
context: 
... 
16: 
17:  sub sql {
18:  my $query = shift;
19:  my @params = @_;
20:  my $sth = $PROSPERO_TOOLS::dbh->prepare($query);
21:  $sth->execute(@params);
22:  if ($sth->err || $DEBUG){
23:  warn "SQL: $query (".join(',',@params).')';
24:  }
... 
code stack:  /www/data/prospero/progs/WISHLIST.pm:20
/www/data/prospero/progs/WISHLIST.pm:84
/www/data/prospero/progs/WISHLIST.pm:31
/www/data/prospero/www/katalogus/header.mc:477
/www/data/prospero/www/katalogus/eelerhetoseg.html:1
/www/data/prospero/www/katalogus/autohandler:2
/www/data/prospero/www/autohandler:1
raw error






























Can't call method "prepare" on an undefined value at /www/data/prospero/progs/WISHLIST.pm line 20.


Trace begun at /usr/local/share/perl/5.14.2/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "prepare" on an undefined value at /www/data/prospero/progs/WISHLIST.pm line 20.^J') called at /www/data/prospero/progs/WISHLIST.pm line 20
WISHLIST::sql('SELECT felhasznalo_azonosito, internetes_azonosito from felhasznalo where username=?', undef) called at /www/data/prospero/progs/WISHLIST.pm line 84
WISHLIST::get_azonositok(undef) called at /www/data/prospero/progs/WISHLIST.pm line 31
WISHLIST::get_items_by_username(undef, undef, 1) called at /www/data/prospero/www/katalogus/header.mc line 477
HTML::Mason::Commands::__ANON__('statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f601e5a73e8)', 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'statisztika_id', '') called at /www/data/prospero/www/katalogus/eelerhetoseg.html line 1
HTML::Mason::Commands::__ANON__('statisztika_id', '', 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f601e510838)', 'statisztika_id', '', 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'statisztika_id', '', 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f601e587808)', 'statisztika_id', '') called at /www/data/prospero/www/katalogus/autohandler line 2
HTML::Mason::Commands::__ANON__('statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f601e57a390)', 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f601e587808)') called at /www/data/prospero/www/autohandler line 1
HTML::Mason::Commands::__ANON__('statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f601e4c15d8)', 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'statisztika_id', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f601e587808)') called at /usr/local/share/perl/5.14.2/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f601e587808)') called at /usr/local/share/perl/5.14.2/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f601e5c8f28)', 'Apache2::RequestRec=SCALAR(0x7f601b8e6290)') called at /www/data/prospero/progs/Prospero.pm line 141
Prospero::handler('Apache2::RequestRec=SCALAR(0x7f601b8e6290)') called at -e line 0
eval {...} at -e line 0