[rt-users] can't load perl file webmux.pl????
Sean Perry
sean.perry at intransa.com
Thu Jul 31 16:29:30 EDT 2003
Sullivan, Robert (HQP) wrote:
> Hi,
>
> OK I have got to this point anyone have any ideas? The file does exist
> why am I having this problem?
>
>
> ./apachectl start
> [Thu Jul 31 13:18:49 2003] [error] Global $r object is not available.
> Set:
> PerlOptions +GlobalRequest
> in httpd.conf at
> /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line
> 579.
> Compilation failed in require at (eval 4) line 1.
>
> [Thu Jul 31 13:18:49 2003] [error] Can't load Perl file:
> /opt/rt3/bin/webmux.pl for server valhalla:0, exiting...
>
This is a problem with the most recent mod_perl. I have solved this
with a hack provided by another list member:
require Apache::RequestUtil;
no warnings 'redefine';
my $sub = *Apache::request{CODE};
*Apache::request = sub {
my $r;
eval { $r = $sub->('Apache'); };
# warn $@ if $@;
return $r;
};
Place that block in webmux.pl right after the BEGIN block.
Ugly, I hope I can eventually remove it, but it works for now.
More information about the rt-users
mailing list