System error

error:  Can't call method "id" on an undefined value at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/hotels/hotel_head.mas line 19.
context: 
... 
15:  </%doc>
16: 
17:  <%init>
18:  my $Hotel = $m->getPageHotel;
19:  my $Resort = new OnTheSkiInfo::Model::Resort(
20:  id => $Hotel->resort->id,
21:  language => lc( $m->Session->ISOLanguage ),
22:  region => uc( $m->region )
23:  );
... 
code stack:  /home/webadmin/preview_oxs_public/mason_2011/onthesnow/hotels/hotel_head.mas:19
/home/webadmin/preview_opf_templates/onthesnow-opf/hotel/details.mhtml:5
/home/webadmin/preview_oxs_public/mason_2011/onthesnow/dhandler:55
/home/webadmin/preview_oxs_public/mason_2011/onthesnow/dhandler:5
/usr/local/share/perl5/HTML/Mason/Request.pm:955
/home/webadmin/preview_oxs_public/mason_2011/onthesnow/autohandler:6
/usr/local/share/perl5/HTML/Mason/Request.pm:955
/home/webadmin/preview_oxs_public/mason_2011/onthesnow/autohandler:6
/usr/local/share/perl5/HTML/Mason/Request.pm:481
raw error






























Can't call method "id" on an undefined value at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/hotels/hotel_head.mas line 19.


Trace begun at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "id" on an undefined value at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/hotels/hotel_head.mas line 19.^J') called at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/hotels/hotel_head.mas line 19
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f172ff2c6d8)') called at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 486
eval {...} at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 368
MasonX::Request::WithWidgetController::comp(undef, undef) called at /home/webadmin/preview_opf_templates/onthesnow-opf/hotel/details.mhtml line 5
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f172e959898)') called at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 486
eval {...} at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 368
MasonX::Request::WithWidgetController::comp(undef, undef) called at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/dhandler line 55
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x7f172e9a1b70)') called at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 486
eval {...} at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 368
MasonX::Request::WithWidgetController::comp(undef, undef) called at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/dhandler line 5
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f172e9a1c90)') called at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 479
eval {...} at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 368
MasonX::Request::WithWidgetController::comp(undef, undef, undef) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('MasonX::Request::WithWidgetController=HASH(0x7f173045cc08)') called at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/autohandler line 6
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f172eb1ca18)') called at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 479
eval {...} at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 368
MasonX::Request::WithWidgetController::comp(undef, undef, undef) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('MasonX::Request::WithWidgetController=HASH(0x7f173045cc08)') called at /home/webadmin/preview_oxs_public/mason_2011/onthesnow/autohandler line 6
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f172eb80858)') called at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 479
eval {...} at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 368
MasonX::Request::WithWidgetController::comp(undef, undef, undef) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('MasonX::Request::WithWidgetController=HASH(0x7f173045cc08)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('MasonX::Request::WithWidgetController=HASH(0x7f173045cc08)') called at /home/webadmin/preview_oxs_public/lib/OTS_18N/lib/MasonX/Request/WithWidgetController.pm line 1246
MasonX::Request::WithWidgetController::exec('MasonX::Request::WithWidgetController=HASH(0x7f173045cc08)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f172e95a7b0)', 'Apache2::RequestRec=SCALAR(0x7f17309885a0)') called at (eval 52) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7f17309885a0)') called at -e line 0
eval {...} at -e line 0