You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rick Measham <ri...@mailguard.com.au> on 2005/11/02 08:09:21 UTC

$r->content_type() ... Can't locate object method

mod_perl-2.0.2-2 .. from a source RPM .. on Centos


I'm trying to get RT to install, and thus need to first install 
mod_perl2. However I'm not getting past the server startup:

Can't locate object method "content_type" via package 
"Apache2::RequestRec" at /opt/rt3/bin/webmux.pl line 108.


Now when I look at RequestRec.pm there is documentation for the method, 
but the method isn't there. I assume it's an XS method and so is in the 
.so file.

So what's happening here? Is RequestRec.pm not loading the .so file? If 
so, why aren't I getting an error?

Cheers!
Rick Measham
-- 
Rick Measham <ri...@mailguard.com.au>
MailGuard Pty. Limited
Email anti-virus, anti-spam and content filtering

Melbourne 68-72  York St South Melbourne VIC 3205  P +61 3 9694 4444
Sydney    Level 20, Tower 2 Darling Park,
           201 Sussex Street, Sydney NSW 2000       P +61 2 9004 7889

http://www.mailguard.com.au/mg

-- 
MailGuard Pty. Limited

Melbourne 68-72 York Street South Melbourne VIC 3205  P +61 3 9694 4444
Sydney    Lv 20 Twr 2, 201 Sussex St Sydney NSW 2000  P +61 2 9004 7889


Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg



Re: $r->content_type() ... Can't locate object method

Posted by Rick Measham <ri...@mailguard.com.au>.
Randy Kobes wrote:
> Do you have a
>   use Apache2::RequestRec;
> in your script?
> 
> If so, could you post a minimal scipt that reproduces
> this problem?

Thanks Randy,

I've solved the problem by installing mod_perl from cpan rather than 
from the rpm .. there must be something broken in there.

Cheers!
Rick Measham



-- 
Rick Measham <ri...@mailguard.com.au>
MailGuard Pty. Limited
Email anti-virus, anti-spam and content filtering

Melbourne 68-72  York St South Melbourne VIC 3205  P +61 3 9694 4444
Sydney    Level 20, Tower 2 Darling Park,
           201 Sussex Street, Sydney NSW 2000       P +61 2 9004 7889

http://www.mailguard.com.au/mg


Re: $r->content_type() ... Can't locate object method

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Randy Kobes wrote:
>> Can't locate object method "content_type" via package 
>> "Apache2::RequestRec" at /opt/rt3/bin/webmux.pl line 108.
> 
> 
> Do you have a
>   use Apache2::RequestRec;
> in your script?
> 
> If so, could you post a minimal scipt that reproduces
> this problem?
This script /opt/rt3/bin/webmux.pl is actually part of RT.
A better solution would be to put this Randy's Suggestion in your startup.pl file.

IF that doesn't work please do post a sample along with your httpd.conf and 
startup.pl

-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

Re: $r->content_type() ... Can't locate object method

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 2 Nov 2005, Rick Measham wrote:

> mod_perl-2.0.2-2 .. from a source RPM .. on Centos
>
>
> I'm trying to get RT to install, and thus need to first install mod_perl2. 
> However I'm not getting past the server startup:
>
> Can't locate object method "content_type" via package "Apache2::RequestRec" 
> at /opt/rt3/bin/webmux.pl line 108.

Do you have a
   use Apache2::RequestRec;
in your script?

If so, could you post a minimal scipt that reproduces
this problem?

-- 
best regards,
randy