System error

error:  Can't call method "prepare" on an undefined value at /usr/local/projects/uscode/lib/perl/USCSidebars.pm line 235.
context: 
... 
231:  print "\nthpppppt!" if $debug;
232:  # if we're a section, try for an exact match.
233:  if ( $type eq 'sec' ){
234:  my $sec_extid = 'usc_sec_'.$title."_".$extid;
235:  $sth = $dbh -> prepare(qq{
236:  SELECT $field FROM $table
237:  WHERE titlenorm='$title'
238:  AND norm_ext_id='$sec_extid'
239:  });
... 
code stack:  /usr/local/projects/uscode/lib/perl/USCSidebars.pm:235
/usr/local/projects/uscode/lib/perl/USCSidebars.pm:132
/var/www/html/uscode/inclusions/head_container.mas:42
/var/www/html/uscode/html/uscode11a/usc_sec_11a_00004003----000-notes.html:13
raw error






























Can't call method "prepare" on an undefined value at /usr/local/projects/uscode/lib/perl/USCSidebars.pm line 235.


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 /usr/local/projects/uscode/lib/perl/USCSidebars.pm line 235.^J') called at /usr/local/projects/uscode/lib/perl/USCSidebars.pm line 235
USCSidebars::grab_field(undef, '11a', '00004003----000-', 'sec', 'ad_map', 'head_script') called at /usr/local/projects/uscode/lib/perl/USCSidebars.pm line 132
USCSidebars::gen_google_head(undef, '11a', '00004003----000-', 'sec') called at /var/www/html/uscode/inclusions/head_container.mas line 42
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fe6e4561608)') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1305
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef) called at /var/www/html/uscode/html/uscode11a/usc_sec_11a_00004003----000-notes.html line 13
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fe6e456e738)') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1300
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 484
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 484
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 436
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fe6e4bb1c30)') 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(0x7fe6e4bb1c30)') called at /usr/local/share/perl/5.14.2/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fe6e45a3168)', 'Apache2::RequestRec=SCALAR(0x7fe6e26e09a8)') called at (eval 30) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7fe6e26e09a8)') called at -e line 0
eval {...} at -e line 0