System error

error:  Can't use an undefined value as a HASH reference at /var/www/mike/toxicrisk.com/reports/rmp_erplan.cmp line 4.
context: 
1: 
2:  % my $sth = $dbh->prepare('SELECT * FROM erplans WHERE rmp=?');
3:  % $sth->execute($fac_id);
4:  % my(%erplan) = %{$sth->fetchrow_hashref};
5: 
6:  <TABLE BORDER=0 WIDTH="800" cellpadding=4 cellspacing=4 align=center> <TR
7:  VALIGN=TOP><TD WIDTH=800><FONT FACE="Verdana,Arial,Helvetica" size="-1">
8:  <h2><font color=blue size=+0><b>Written Emergency Response (ER) Plan</b></font></h2>
... 
code stack:  /var/www/mike/toxicrisk.com/reports/rmp_erplan.cmp:4
/var/www/mike/toxicrisk.com/reports/dhandler:25
/home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm:948
/etc/apache2/mason/obj/2044519016/reports/dhandler.obj:17
/var/www/mike/toxicrisk.com/autohandler:43
/var/www/mike/toxicrisk.com/setup.cmp:4
raw error






























Can't use an undefined value as a HASH reference at /var/www/mike/toxicrisk.com/reports/rmp_erplan.cmp line 4.


Trace begun at /home/mike/local-lib/lib/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t use an undefined value as a HASH reference at /var/www/mike/toxicrisk.com/reports/rmp_erplan.cmp line 4.^J') called at /var/www/mike/toxicrisk.com/reports/rmp_erplan.cmp line 4
HTML::Mason::Commands::__ANON__('fac_id', 23308) called at /home/mike/local-lib/lib/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x559acbb86ab0)', 'fac_id', 23308) called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'fac_id', 23308) called at /var/www/mike/toxicrisk.com/reports/dhandler line 25
HTML::Mason::Commands::__ANON__ at /home/mike/local-lib/lib/perl5/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x559acb721e60)', 'main') called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 948
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x559acb707618)', 'main') called at /etc/apache2/mason/obj/2044519016/reports/dhandler.obj line 17
HTML::Mason::Commands::__ANON__ at /home/mike/local-lib/lib/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x559acb721e60)') called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x559acb707618)') called at /var/www/mike/toxicrisk.com/autohandler line 43
HTML::Mason::Commands::__ANON__ at /home/mike/local-lib/lib/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x559acb728ac0)') called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x559acb707618)') called at /var/www/mike/toxicrisk.com/setup.cmp line 4
HTML::Mason::Commands::__ANON__ at /home/mike/local-lib/lib/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x559acb7485c8)') called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 481
eval {...} at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 481
eval {...} at /home/mike/local-lib/lib/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x559acb707618)') called at /home/mike/local-lib/lib/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x559acb707618)') called at /home/mike/local-lib/lib/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x559acb6c6738)', 'Apache2::RequestRec=SCALAR(0x559acb6c6d98)') called at (eval 26) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x559acb6c6d98)') called at -e line 0
eval {...} at -e line 0