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/index.html:445
/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__('magy', 'yes', 'eng', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd506a6c1f8)', 'magy', 'yes', 'eng', '') 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, 'magy', 'yes', 'eng', '') called at /www/data/prospero/www/katalogus/index.html line 445
HTML::Mason::Commands::__ANON__('magy', 'yes', 'magy', 'yes', 'eng', '') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd5068adc30)', 'magy', 'yes', 'magy', 'yes', 'eng', '') 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, 'magy', 'yes', 'magy', 'yes', 'eng', '') 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(0x7fd506af3390)', 'magy', 'yes', 'eng', '') called at /www/data/prospero/www/katalogus/autohandler line 2
HTML::Mason::Commands::__ANON__('magy', 'yes') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd506946390)', 'magy', 'yes') 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, 'magy', 'yes') 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(0x7fd506af3390)') called at /www/data/prospero/www/autohandler line 1
HTML::Mason::Commands::__ANON__('magy', 'yes') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd506584518)', 'magy', 'yes') 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, 'magy', 'yes') 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(0x7fd506af3390)') 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(0x7fd506af3390)') called at /usr/local/share/perl/5.14.2/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fd5068a6d10)', 'Apache2::RequestRec=SCALAR(0x7fd506677e68)') called at /www/data/prospero/progs/Prospero.pm line 141
Prospero::handler('Apache2::RequestRec=SCALAR(0x7fd506677e68)') called at -e line 0
eval {...} at -e line 0