System error

error:  Can't call method "user" on an undefined value at /i4u/hg-mp/elres-mp/app/newbookingV4/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/newbookingV4/content/search/double-booking-popup.htm:10
/i4u/hg-mp/elres-mp/app/newbookingV4/autohandler-bg.htm:1
raw error






























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


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "user" on an undefined value at /i4u/hg-mp/elres-mp/app/newbookingV4/content/search/double-booking-popup.htm line 10.^J') called at /i4u/hg-mp/elres-mp/app/newbookingV4/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(0x55591d5ec8b0)') 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(0x55591d43a270)') called at /i4u/hg-mp/elres-mp/app/newbookingV4/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(0x55591d5b9e98)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
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(0x55591d43a270)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('MasonX::Request::WithApacheSession=HASH(0x55591d43a270)') called at /usr/share/perl5/MasonX/Request/WithApacheSession.pm line 130
MasonX::Request::WithApacheSession::exec('MasonX::Request::WithApacheSession=HASH(0x55591d43a270)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x55591d543738)', 'Apache2::Request=SCALAR(0x55591d5f2ce8)') called at /i4u/hg-mp/elres-mp/ELRes/ApacheHandler.pm line 512
eval {...} at /i4u/hg-mp/elres-mp/ELRes/ApacheHandler.pm line 512
ELRes::ApacheHandler::handler('Apache2::RequestRec=SCALAR(0x55591d488a78)') called at -e line 0
eval {...} at -e line 0