System error

error:  Can't call method "prepare" on an undefined value at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/CMLS/Property.pm line 163.
context: 
... 
159:  my __PACKAGE__ $self = shift;
160:  my $id = shift;
161:  my $arg = $id > 0 ? $id : $self->OfficeList;
162:  my $dbh = connect_idx_slave(); #$self->_connect();
163:  my $sth = $dbh->prepare("select description from cmls_office where office_id = ?");
164:  $sth->execute($arg);
165:  my ($firm) = $sth->fetchrow_array();
166:  $sth->finish;
167:  return $firm;
... 
code stack:  /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/CMLS/Property.pm:163
/usr/local/idx/apache2/htdocs.johnrhodes/lake-norman-boat-slip-properties/c/mcm:20
/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:848
/usr/local/idx/apache2/htdocs.johnrhodes/lake-norman-boat-slip-properties/c/mcm:55
/usr/local/idx/apache2/htdocs.johnrhodes/lake-norman-boat-slip-properties/index.html:20
raw error






























Can't call method "prepare" on an undefined value at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/CMLS/Property.pm line 163.


Trace begun at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "prepare" on an undefined value at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/CMLS/Property.pm line 163.^J') called at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/CMLS/Property.pm line 163
IDX::CMLS::Property::listing_firm('IDX::CMLS::Property=HASH(0x6a1d388)') called at /usr/local/idx/apache2/htdocs.johnrhodes/lake-norman-boat-slip-properties/c/mcm line 20
HTML::Mason::Commands::__ANON__ at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x6a0a538)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 919
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 918
HTML::Mason::Request::call_self('HTML::Mason::Request::ApacheHandler=HASH(0x5138228)', 'SCALAR(0x4da2ea0)', 'ARRAY(0x4da2ed0)', 'SCALAR(0x4da2f00)', 'CACHE_SELF') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 848
HTML::Mason::Request::cache_self('HTML::Mason::Request::ApacheHandler=HASH(0x5138228)', 'expire_in', '6hours') called at /usr/local/idx/apache2/htdocs.johnrhodes/lake-norman-boat-slip-properties/c/mcm line 55
HTML::Mason::Commands::__ANON__ at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x6a0a538)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /usr/local/idx/apache2/htdocs.johnrhodes/lake-norman-boat-slip-properties/index.html line 20
HTML::Mason::Commands::__ANON__ at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5138a68)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5138228)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5138228)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5138ba0)', 'Apache2::RequestRec=SCALAR(0x4fd4ef0)') called at (eval 1295) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x4fd4ef0)') called at -e line 0
eval {...} at -e line 0