[Catalyst] $c->{error} not initialised?
Keith Grennan
keith at squeegeemedia.com
Mon Apr 25 23:19:14 CEST 2005
Hello,
I'm digging into Catalyst for the first time. Very excited to have
found a solid MVC framework for Perl. I expect I'll be asking a few
questions and hopefully be able to contribute back to the project.
I'm runnning into this problem (using 5.10):
[Mon Apr 25 13:36:52 2005] [catalyst] [info] Sxip::Homesite powered by
Catalyst 5.10
[Mon Apr 25 13:36:52 2005] [catalyst] [debug]
**********************************
[Mon Apr 25 13:36:52 2005] [catalyst] [debug] * Request 1 (0.500/s)
[14804]
[Mon Apr 25 13:36:52 2005] [catalyst] [debug]
**********************************
[Mon Apr 25 13:36:52 2005] [catalyst] [debug] "GET" request for "" from
(192.168.7.104)
[Mon Apr 25 13:36:52 2005] [catalyst] [error] Caught exception in engine
"Can't use an undefined value as an ARRAY reference at /usr/local/ss/p
erl/lib/site_perl/5.8.6/Catalyst/Dispatcher.pm line 87."
[Mon Apr 25 13:36:52 2005] [error] [client 192.168.7.104] Premature end
of script headers: /var/www/Sxip-Homesite/root/index.cgi
the problem code is:
# Execute last end
if ( my $end = @{ $c->get_action( 'end', $namespace ) }[-1] ) {
$c->execute( @{ $end->[0] } );
return if scalar @{ $c->error }; # fails here
}
it looks like $c->{error} is not being initalized properly, or the
dispatcher is expecting something to be there that isn't.
any ideas what's up here?
many thanks,
keith
More information about the Catalyst
mailing list