perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <>
Subject Re: headers_out
Date Mon, 03 Dec 2007 06:51:39 GMT
Woff3 wrote:
> Hi.
> I had Apache 2.0 and mod_perl.

You possibly meant Apache 1.3.xx and mod_perl-1.xx ?

> Now I upgraded to Apache 2.2.6 and mod_perl2.
> I have html-pages where I use mason code.
> [code]
> $r->header_out("Refresh" => "5; url=$url");
> This code worked fine in my previous system.
> Now when run my application, I get this error:
> Can't locate object method "header_out" via package"Apache::RequestRec"
> [/code]

Have you tried preloading Apache2::RequestRec ?

PerlModule Apache2::RequestRec


And to improve the odds of folks being able to assist, try
and copy error messages verbatim, instead of paraphrasing them.

When migrating from mod_perl-1.x to 2.x you'll run into various little
annoyances like the one you are reporting. The whole process if fairly
well documented, and your exact issue is discussed, for instance, here:

> This is strange error, because in my httpd.conf file
> I haven't load module Apache::RequestRec
> I have load just these modules:
> [code]
> PerlModule Apache2::AuthCookieDBI
> PerlModule Apache2::DBI
> PerlModule HTML::Mason::ApacheHandler
> PerlModule Apache2::Request
> PerlModule Config2::IniFiles
> [/code]
> Does someone information, how I could fix this problem?

Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5       m/gozer\@(apache|cpan|ectoplasm)\.org/

View raw message