[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Migrating from mod_perl 1.x to mod_perl 2.x


On Tue, 23 Oct 2007, Daniel Corbe wrote:

Hello,
We're trying to upgrade a web application from Apache 1.3.x to Apache
2.2.x(and thus from mod_perl
1.x to mod_perl 2.x) and we're having trouble with the basics at the moment:

[Tue Oct 23 17:42:12 2007] [error] [client 207.241.167.7] Can't locate
object method "method" via package "Apache2::RequestRec" at
/usr/local/billing/WCI/Router/FreeSWITCH.pm line 69.\n

The offending line:

      if ($request->method() eq "POST")

For questions like these, the ModPerl::MethodLookup module
is quite useful:

  $ perl -MModPerl::MethodLookup -e print_method method
    To use method 'method' add:
	use Apache2::RequestRec ();

which indicates which module to use() in your script.

--
best regards,
Randy Kobes


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.