On Tue, 16 Jan 2007, suppressed wrote: > Hi folks, >> Not sure whether this issue has been resolved earlier, but did my bit > searching on the list and googled - couldn't find any standard solutions > working for me. And apologies for the long mail.
>> I am upgrading our servers to mod_perl 2.0.2 and Apache 2.0.59 (compiled from > source)
> > We get the following errors for a few of our perl cgi scripts >> Usage: Apache2::Cookie->fetch($r): missing argument $r: attempt to fetch > global Apache2::RequestUtil->request failed: Can't locate object method > "request" via package "Apache2::RequestUtil" at > /opt/apache-2.0.59/3plib/lib/perl5/site_perl/5.8.8/i686-linux/Apache2/Coo
> kie.pm line 32. > . Are you passing $r into fetch()? eg, my %cookies = Apache2::Cookie->fetch($r); > I have tried adding > --------------------------- > use Apache2; > use Apache2::compat; > ---------------------------> in the startup.pl file but Apache can't find Apache2.pm and hence wouldn't > start. If I just add in the Apache2::compat, it still shows the same above > errors.
Apache2.pm is no longer present in mod_perl; see http://perl.apache.org/docs/2.0/rename.html - Thanks Randy,we are trying to use the older scripts without any modifications. We use CGI, and get_session to read up the cookies. We want to get the page working without any issues and hence started using Apache2::compat.
-- Regards, Sunil ________________________________________________________________________Check out the new AOL. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.