[Catalyst] Two problems

Sebastian Riedel sri at oook.de
Wed Mar 30 23:16:47 CEST 2005


Am 30.03.2005 um 23:07 schrieb Jose Nyimi:

>
>
>> -----Message d'origine-----
>> De : catalyst-bounces at lists.rawmode.org [mailto:catalyst-
>> bounces at lists.rawmode.org] De la part de Vsevolod (Simon) Ilyushchenko
>> Envoyé : mercredi 30 mars 2005 19:00
>> À : catalyst at lists.rawmode.org
>> Objet : [Catalyst] Two problems
>>
>> Hi,
>>
>> After trying my Hops example with the newest Catalyst, I get this
> under
>> Apache 2 or CGI:
>>
>> Can't locate object method "log" via package "Apache::RequestRec" at
>> /opt/software/perl/lib/perl5/site_perl/5.8.5/Catalyst/Engine.pm line
> 451
>>
>> I tried to debug the code under the Perl web server, but it's not
>> possible any more - if the code runs under the debugger, each HTTP
>> request causes the error below. I tried to look into it, and I think
> it
>> happens because Socket.pm tries to read from STDIN, which does not
> work
>> right under the debugger. I wish the debugging ability came back.
>>
>> Thanks,
>> Simon
>>
>
> It seems that Catalyst won't work on Apache2 ...
> A similar problem has been reported at this thread
> http://lists.rawmode.org/pipermail/catalyst/2005-March/000063.html
>
> I was expecting Catalyst developers to react on this ...

I already answered that question.

Just change

     sub handler {

to

     sub handler ($$) {

in Engine.pm

Or add this to your MyApp.pm

     sub handler($$) { shift->SUPER::handler(@_); }

We have not yet made a new release because we are very very busy 
implementing cool new things for Catalyst 5. :)

--
sebastian




More information about the Catalyst mailing list