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/4'.

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(0x8e53b54)','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(0x8e8d330)','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(0x8e53a64)','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(0x8e8d330)','SELF:datestamp','comp','undef') called at /home/martink/www/mason/obj/PRIVATE/portknocking/view/download line 63
HTML::Mason::Commands::__ANON__('P','HASH(0x8e0577c)') 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(0x8eb3934)','main','P','HASH(0x8e0577c)') 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(0x8e8d330)','main','P','HASH(0x8e0577c)') called at /home/martink/www/mason/obj/PRIVATE/portknocking/view/download line 8
HTML::Mason::Commands::__ANON__('P','HASH(0x8e0577c)') 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(0x8eb3934)','P','HASH(0x8e0577c)') 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(0x8e8d330)','/portknocking/view/download','P','HASH(0x8e0577c)') called at /home/martink/www/mason/obj/PUBLIC/portknocking/view line 51
HTML::Mason::Commands::__ANON__('P','HASH(0x8ea4c58)') 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(0x8e0beb8)','main','P','HASH(0x8ea4c58)') 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(0x8e8d330)','main','P','HASH(0x8ea4c58)') called at /home/martink/www/mason/obj/PUBLIC/portknocking/view line 11
HTML::Mason::Commands::__ANON__('P','HASH(0x8ea4c58)') 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(0x8e0beb8)','P','HASH(0x8ea4c58)') 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(0x8e8d330)','HTML::Mason::Component::FileBased=HASH(0x8e0beb8)','P','HASH(0x8ea4c58)') 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(0x8e8d330)','P','HASH(0x8ea4c58)') 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(0x8e53b54)','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(0x8e8d330)','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(0x8e53b54)') 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(0x8e8d330)','HASH(0x8e8d360)','HTML::Mason::Component::FileBased=HASH(0x8e53b54)') 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(0x8e8d330)','/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(0x85a56f0)','Apache=SCALAR(0x8e8d210)','HTML::Mason::Request::ApacheHandler=HASH(0x8e8d330)','HASH(0x8e568fc)') 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(0x85a56f0)','Apache=SCALAR(0x8e8d210)') called at /usr/local/web/apache/libexec/perl/masonhandler.pl line 148
HTML::Mason::handler('Apache=SCALAR(0x8e8d210)') called at /dev/null line 0
eval {...} called at /dev/null line 0