Re: Apache2::PerlSections $PerlConfig

Perrin Harkins <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC0_be0xxQ28Bi+PD3Pb9=BUbmDfnB28qQmb6KPMLMxDYKKJug@mail.gmail.com>
On Fri, Nov 18, 2011 at 3:20 PM, Josh Narins <[email protected]>wrote:

> my $r = Apache2::RequestUtil->request;****
>
> $r->add_config($template->output);****
>
> ** **
>
> Which gets me****
>
> ** **
>
> Syntax error on line 66 of /home/web/rosalind-dev9/etc/httpd/httpd.conf:**
> **
>
> \t(in cleanup) Global $r object is not available. Set:\n\tPerlOptions
> +GlobalRequest\nin httpd.conf at
> /home/web/rosalind-dev9/etc/httpd/httpd.conf line 116.\n****
>
> ** **
>
> This seems odd to me, because +GlobalRequest is set before the <Perl>
> section, and is clearly set when I check Apache2::Directive in Cleanup.
>

This is in your conf file, right?  There's no request yet.  I think it's
just a confusing error message.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.