System error

error:  Can't call method "prepare" on an undefined value at /var/www/html_test/lib/prop_type.mas line 3.
context: 
1:  <%init>
2:  my $sql="select id, description from property_type";
3:  my $sth=$dbh->prepare($sql)
4:  or die " Can not prepare statement \'$sql\': " . $dbh->errstr();
5:  $sth->execute()
6:  or die " Can not execute statement \'$sql\': " . $dbh->errstr();
7:  </%init>
... 
code stack:  /var/www/html_test/lib/prop_type.mas:3
/var/www/html_test/seller/seller_form.mas:220
/var/www/html_test/seller/seller_reg.html:62
/var/www/html_test/seller/autohandler:64
raw error






























Can't call method "prepare" on an undefined value at /var/www/html_test/lib/prop_type.mas line 3.


Trace begun at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "prepare" on an undefined value at /var/www/html_test/lib/prop_type.mas line 3.^J') called at /var/www/html_test/lib/prop_type.mas line 3
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xd012890)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef) called at /var/www/html_test/seller/seller_form.mas line 220
HTML::Mason::Commands::__ANON__('submit_to', 'new_user_submit.html', 'return_to', '/seller/seller_reg.html') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xd011d3c)', 'submit_to', 'new_user_submit.html', 'return_to', '/seller/seller_reg.html') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef, 'submit_to', 'new_user_submit.html', 'return_to', '/seller/seller_reg.html') called at /var/www/html_test/seller/seller_reg.html line 62
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xd0e1380)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 915
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xd0c6ad4)') called at /var/www/html_test/seller/autohandler line 64
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xd0f0bd8)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1251
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 460
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 460
eval {...} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 412
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xd0c6ad4)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xd0c6ad4)') called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xcb99b58)', 'Apache2::RequestRec=SCALAR(0xd07733c)') called at (eval 205) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0xd07733c)') called at -e line 0
eval {...} at -e line 0