Mason error

error in file:   /home/martink/www/mason/obj/PUBLIC/portknocking/autohandler
 
line 516:  Can't call method "source_file" on an undefined value
context:  
... 
512: 
513:  $_out->('
514: 
515:  ');
516:  my $date = (stat($comp->source_file))[9];
517:  $_out->('
518:  <div class="datestamp">last updated ');
519:  $_out->( strftime("%Y-%b-%d %H:%M",localtime($date)) );
520:  $_out->('</div>
... 
component stack:   /portknocking/autohandler [public]:datestamp
/portknocking/view/download [private]
/portknocking/view [public]
/portknocking/autohandler [public]
code stack:   /home/martink/www/mason/obj/PUBLIC/portknocking/autohandler:52
/home/martink/www/mason/obj/PRIVATE/portknocking/view/download:63
/home/martink/www/mason/obj/PRIVATE/portknocking/view/download:8
/home/martink/www/mason/obj/PUBLIC/portknocking/view:51
/home/martink/www/mason/obj/PUBLIC/portknocking/view:11
/home/martink/www/mason/obj/PUBLIC/portknocking/autohandler:381
/home/martink/www/mason/obj/PUBLIC/portknocking/autohandler:125

debug info:   Debug file is '/home/martink/www/mason/debug/anon/7'.

raw_error




























raw error:
 






























error while executing /portknocking/autohandler [public]:datestamp:
Can't call method "source_file" on an undefined value at /home/martink/www/mason/obj/PUBLIC/portknocking/autohandler line 516.
HTML::Mason::Interp::__ANON__('Can\'t call method "source_file" on an undefined value at /ho...') called at /home/martink/www/mason/obj/PUBLIC/portknocking/autohandler line 516
HTML::Mason::Commands::__ANON__('comp','undef') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 148
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x8dd5e60)','method_datestamp','comp','undef') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 310
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','method_datestamp','comp','undef') called at /home/martink/www/mason/obj/PUBLIC/portknocking/autohandler line 52
HTML::Mason::Commands::__ANON__('comp','undef') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x8d4e7cc)','comp','undef') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
eval {...} called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','SELF:datestamp','comp','undef') called at /home/martink/www/mason/obj/PRIVATE/portknocking/view/download line 63
HTML::Mason::Commands::__ANON__('P','HASH(0x8d3aa90)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 148
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x8f5a150)','main','P','HASH(0x8d3aa90)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 310
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','main','P','HASH(0x8d3aa90)') called at /home/martink/www/mason/obj/PRIVATE/portknocking/view/download line 8
HTML::Mason::Commands::__ANON__('P','HASH(0x8d3aa90)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8f5a150)','P','HASH(0x8d3aa90)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
eval {...} called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','/portknocking/view/download','P','HASH(0x8d3aa90)') called at /home/martink/www/mason/obj/PUBLIC/portknocking/view line 51
HTML::Mason::Commands::__ANON__('P','HASH(0x8f48aac)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 148
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x8d517b0)','main','P','HASH(0x8f48aac)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 310
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','main','P','HASH(0x8f48aac)') called at /home/martink/www/mason/obj/PUBLIC/portknocking/view line 11
HTML::Mason::Commands::__ANON__('P','HASH(0x8f48aac)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8d517b0)','P','HASH(0x8f48aac)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
eval {...} called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','HTML::Mason::Component::FileBased=HASH(0x8d517b0)','P','HASH(0x8f48aac)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 317
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','P','HASH(0x8f48aac)') called at /home/martink/www/mason/obj/PUBLIC/portknocking/autohandler line 381
HTML::Mason::Commands::__ANON__() called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 148
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x8dd5e60)','main') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 310
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','main') called at /home/martink/www/mason/obj/PUBLIC/portknocking/autohandler line 125
HTML::Mason::Commands::__ANON__() called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8dd5e60)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
eval {...} called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 654
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','HASH(0x8ce9d08)','HTML::Mason::Component::FileBased=HASH(0x8dd5e60)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 160
eval {...} called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 160
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','/portknocking/view') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 914
HTML::Mason::ApacheHandler::handle_request_1('HTML::Mason::ApacheHandler=HASH(0x859dc88)','Apache=SCALAR(0x8f31d18)','HTML::Mason::Request::ApacheHandler=HASH(0x8d8c360)','HASH(0x8d489b0)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 560
eval {...} called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 560
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x859dc88)','Apache=SCALAR(0x8f31d18)') called at /usr/local/web/apache/libexec/perl/masonhandler.pl line 148
HTML::Mason::handler('Apache=SCALAR(0x8f31d18)') called at /dev/null line 0
eval {...} called at /dev/null line 0