[Catalyst] "Global $r object is not available" error
Matt S Trout
dbix-class at trout.me.uk
Wed Sep 3 10:22:44 BST 2008
On Wed, Aug 27, 2008 at 05:22:12PM -0700, Bowei Chi wrote:
> Hi List,
>
>
>
> I'm configuring apache mod_perl to work with Catalyst according to the
> cookbook, but this error showed up when I restarts apache. It occurs
> when my catalyst application tries to start up by calling
> "__PACKAGE__->setup;"
>
>
>
> [error] Global $r object is not available. Set:
>
> PerlOptions +GlobalRequest
>
> in httpd.conf at /usr/lib/perl5/5.8.6/CGI.pm line 361.
>
> Compilation failed in require at (eval 2) line 3.
Hrm. Catalyst under mod_perl shouldn't need CGI - Catalyst itself uses
CGI::Simple.
So I think the problem is something you've loaded, not Catalyst core.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst
mailing list