System error

error:  Can't call method "select_value_hash" on unblessed reference at /var/www/newTurizm/turizm.ru/Libs/Weather/Weather.pm line 313.
context: 
... 
309: 
310:  unless ($ref) {
311: 
312:  my $db=$self->{db}->{TURIZM};
313:  $ref = $db->select_value_hash(qq~select wc.id, wc.country, wc.name as wname, hc.name, hc.name_rod, hc.name_dat, hc.name_vin, hc.name_tvor, hc.name_pred, TRIM(LEADING 'в:' FROM hc.predlog) as predlog ,cn.countryCode, wc.city, hc.id AS city_id, hc.name_translit as cityCode, cn.countryName, wc.gismeteo_city_id from weatherCity as wc left join hotelsCity as hc on wc.city=hc.id left join allCountry as cn on wc.country=cn.countryid where wc.id=? or hc.name_translit=?~,$city_id,$city_id);
314: 
315:  $ref->{name}=$ref->{name2} unless $ref->{name};
316:  $list_cache->set($key, $ref);
317:  }
... 
code stack:  /var/www/newTurizm/turizm.ru/Libs/Weather/Weather.pm:313
/var/www/newTurizm/turizm.ru/html/Comp/index/pogoda_index.msn:46
/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 "select_value_hash" on unblessed reference at /var/www/newTurizm/turizm.ru/Libs/Weather/Weather.pm line 313.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "select_value_hash" on unblessed reference at /var/www/newTurizm/turizm.ru/Libs/Weather/Weather.pm line 313.^J') called at /var/www/newTurizm/turizm.ru/Libs/Weather/Weather.pm line 313
Weather::Weather::get_city_info_by_weather_city('Weather::Weather=HASH(0x7fc4b22b5370)', 4127) called at /var/www/newTurizm/turizm.ru/html/Comp/index/pogoda_index.msn line 46
HTML::Mason::Commands::__ANON__('BASE_PATH', 'POGODA') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fc4b2fb57e8)', 'BASE_PATH', 'POGODA') 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', 'POGODA') 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(0x7fc4b31152a8)') 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(0x7fc4b2b96348)') 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(0x7fc4b2b07468)') 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(0x7fc4b31152a8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fc4b31152a8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fc4b2740188)', 'Apache2::RequestRec=SCALAR(0x7fc4b25ab468)') called at /etc/apache2/handler.pl line 43
Turizm::Mason::handler('Apache2::RequestRec=SCALAR(0x7fc4b25ab468)') called at -e line 0
eval {...} at -e line 0