[Catalyst] $c->{error} not initialised?

Marcus Ramberg marcus at thefeed.no
Mon Apr 25 23:35:32 CEST 2005


Yeah, that's probably better :)

Marcus

Keith Grennan skrev:
> Hello again,
> 
> I solved the problem myself.  I had defined a Global "error" action in
> my app class.  I guess it would be better to put this in a Controller
> class so that it doesn't override the engine method?
> 
> Thanks,
> Keith
> 
> On Mon, Apr 25, 2005 at 02:19:14PM -0700, Keith Grennan wrote:
> 
>>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
>>
>>_______________________________________________
>>Catalyst mailing list
>>Catalyst at lists.rawmode.org
>>http://lists.rawmode.org/mailman/listinfo/catalyst
> 
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: marcus.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20050425/6fbd6005/marcus.vcf


More information about the Catalyst mailing list