System error

error:  Can't call method "Fetchall_hashref" on an undefined value at /var/www/newTurizm/turizm.ru/Libs/Country/Country.pm line 544.
context: 
... 
540: 
541:  unless ($list) {
542: 
543:  my $db_b = $self->{db}->{BINDEX};
544:  my $list_ban = $db_b->Fetchall_hashref(qq~select bi.bgroupId from asosBanners b, asosBannerIds bi where b.banId=bi.banId and b.bposId='newtur_brend' and b.banState='on'~);
545: 
546:  foreach my $l (@{$list_ban}){
547:  $l->{bgroupId}=~s/newtur_//g;
548:  $ban{$l->{bgroupId}} = 1;
... 
code stack:  /var/www/newTurizm/turizm.ru/Libs/Country/Country.pm:544
/var/www/newTurizm/turizm.ru/html/Comp/header.msn:266
/var/www/newTurizm/turizm.ru/html/Comp/index.msn:4
/var/www/newTurizm/turizm.ru/html/Comp/index/railway_index.msn:1
/var/www/newTurizm/turizm.ru/html/dhandler:2
/var/www/newTurizm/turizm.ru/html/Comp/out_filter.msn:8
/var/www/newTurizm/turizm.ru/html/dhandler:4
raw error






























Can't call method "Fetchall_hashref" on an undefined value at /var/www/newTurizm/turizm.ru/Libs/Country/Country.pm line 544.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "Fetchall_hashref" on an undefined value at /var/www/newTurizm/turizm.ru/Libs/Country/Country.pm line 544.^J') called at /var/www/newTurizm/turizm.ru/Libs/Country/Country.pm line 544
Country::Country::check_br_hat('Country::Country=HASH(0x7fd1fe5616a8)') called at /var/www/newTurizm/turizm.ru/html/Comp/header.msn line 266
HTML::Mason::Commands::__ANON__('clear_banner', 1, 'BASE_PATH', 'RAILWAY', 'station_code', 'moskva_kazanskaya', 'comp', '/Comp/domain/RAILWAY/station_center.msn', 'path', '/Comp/domain/RAILWAY/station_center.msn') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd1ff06ca50)', 'clear_banner', 1, 'BASE_PATH', 'RAILWAY', 'station_code', 'moskva_kazanskaya', 'comp', '/Comp/domain/RAILWAY/station_center.msn', 'path', '/Comp/domain/RAILWAY/station_center.msn') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'clear_banner', 1, 'BASE_PATH', 'RAILWAY', 'station_code', 'moskva_kazanskaya', 'comp', '/Comp/domain/RAILWAY/station_center.msn', 'path', '/Comp/domain/RAILWAY/station_center.msn') called at /var/www/newTurizm/turizm.ru/html/Comp/index.msn line 4
HTML::Mason::Commands::__ANON__('clear_banner', 1, 'BASE_PATH', 'RAILWAY', 'station_code', 'moskva_kazanskaya', 'comp', '/Comp/domain/RAILWAY/station_center.msn') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd1fed6fe50)', 'clear_banner', 1, 'BASE_PATH', 'RAILWAY', 'station_code', 'moskva_kazanskaya', 'comp', '/Comp/domain/RAILWAY/station_center.msn') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'clear_banner', 1, 'BASE_PATH', 'RAILWAY', 'station_code', 'moskva_kazanskaya', 'comp', '/Comp/domain/RAILWAY/station_center.msn') called at /var/www/newTurizm/turizm.ru/html/Comp/index/railway_index.msn line 1
HTML::Mason::Commands::__ANON__('BASE_PATH', 'RAILWAY') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd1ff3acf00)', 'BASE_PATH', 'RAILWAY') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'BASE_PATH', 'RAILWAY') called at /var/www/newTurizm/turizm.ru/html/dhandler line 2
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Request.pm line 1380
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1380
HTML::Mason::Request::content('HTML::Mason::Request::ApacheHandler=HASH(0x7fd1ff7466c0)') called at /var/www/newTurizm/turizm.ru/html/Comp/out_filter.msn line 8
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd1fee27cc8)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /var/www/newTurizm/turizm.ru/html/dhandler line 4
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fd1fee0e000)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fd1ff7466c0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fd1ff7466c0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fd1fe9ee650)', 'Apache2::RequestRec=SCALAR(0x7fd1ff6c4338)') called at /etc/apache2/handler.pl line 43
Turizm::Mason::handler('Apache2::RequestRec=SCALAR(0x7fd1ff6c4338)') called at -e line 0
eval {...} at -e line 0