Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

"Global $r object is not available" error

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


Bowei.Chi at napster

Aug 27, 2008, 5:22 PM

Post #1 of 2 (494 views)
Permalink
"Global $r object is not available" error

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.



I have dug around internet, but there weren't much info about this
error. I have added "PerlOptions" to my conf file, updated CGI.pm to
the latest version, but they didn't help.



My Apache version is 2.0.55, and modperl is 2.0.2. Some post suspect
there's a bug for "PerlOption" in modperl. So, I'm gonna update those
next, but hopping someone would know something about it.



Thanks,



BC







This correspondence is from Napster, Inc. or its affiliated entities
and is intended only for use by the recipient named herein. This
correspondence may contain privileged, proprietary and/or confidential
information, and is intended only to be seen and used by named addressee(s).
You are notified that any discussion, dissemination,distribution or copying
of this correspondence and any attachments, is strictly prohibited,
unless otherwise authorized or consented to in writing by the sender.
If you have received this correspondence in error, please notify the
sender immediately, and please permanently delete the original and any
copies of it and any attachment and destroy any related printouts without
reading or copying them.


dbix-class at trout

Sep 3, 2008, 2:22 AM

Post #2 of 2 (427 views)
Permalink
Re: "Global $r object is not available" error [In reply to]

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/

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.