System error

error:  Can't call method "user" on an undefined value at /i4u/hg-mp/elres-mp/app/newbooking/content/search/double-booking-popup.htm line 10.
context: 
... 
6:  </script>
7:  <div id="notification" class="note-box">
8: 
9:  <h1>Double Booking</h1>
10:  <p>Hi <% $session->prev_res->user->firstname %>,</p>
11:  <p>The booking system has detected that you have already made a booking today. See below:.</p>
12:  <p><font color="#FF0000">Confirmation: </font><% $session->prev_res->confnum %>
13:  <br><font color="#FF0000">Guest Name: </font><% $session->prev_res->user->firstname %> <% $session->prev_res->user->lastname %>
14:  % foreach my $res_entry ($session->prev_res->entries) {
... 
code stack:  /i4u/hg-mp/elres-mp/app/newbooking/content/search/double-booking-popup.htm:10
/i4u/hg-mp/elres-mp/app/newbooking/autohandler-bg.htm:1
raw error






























Can't call method "user" on an undefined value at /i4u/hg-mp/elres-mp/app/newbooking/content/search/double-booking-popup.htm line 10.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "user" on an undefined value at /i4u/hg-mp/elres-mp/app/newbooking/content/search/double-booking-popup.htm line 10.^J') called at /i4u/hg-mp/elres-mp/app/newbooking/content/search/double-booking-popup.htm line 10
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f8d8a6f9dd8)') 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 /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('MasonX::Request::WithApacheSession=HASH(0x7f8d91f2f1e8)') called at /i4u/hg-mp/elres-mp/app/newbooking/autohandler-bg.htm line 1
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f8d8af1a690)') 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('MasonX::Request::WithApacheSession=HASH(0x7f8d91f2f1e8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('MasonX::Request::WithApacheSession=HASH(0x7f8d91f2f1e8)') called at /usr/share/perl5/MasonX/Request/WithApacheSession.pm line 130
MasonX::Request::WithApacheSession::exec('MasonX::Request::WithApacheSession=HASH(0x7f8d91f2f1e8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f8d91f4a450)', 'Apache2::Request=SCALAR(0x7f8d91f750d8)') called at /i4u/hg-mp/elres-mp/ELRes/ApacheHandler.pm line 482
eval {...} at /i4u/hg-mp/elres-mp/ELRes/ApacheHandler.pm line 482
ELRes::ApacheHandler::handler('Apache2::RequestRec=SCALAR(0x7f8d91f95650)') called at -e line 0
eval {...} at -e line 0