perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Prime x443" <apr...@brunico.com>
Subject RE: [mp1] intermittant pnotes error
Date Mon, 13 Mar 2006 20:41:00 GMT
I'll put in some warning stuff in the more common places that the error has occured

this is the the conf for that particular case of the error:

    <Location /careers>
        SetHandler perl-script
        PerlHandler StrategyV2::Careers
    </Location>

I don't really understand method handlers and their applications, and thus I have never used
the $$ prototype.  I don't ever call handler as an object method.  This particular handler
should only ever be called through the Location directive above.

Adam

-----Original Message-----
From: Perrin Harkins [mailto:perrin@elem.com]
Sent: Monday, March 13, 2006 3:08 PM
To: Adam Prime x443
Cc: modperl@perl.apache.org
Subject: Re: [mp1] intermittant pnotes error


On Mon, 2006-03-13 at 11:00 -0500, Adam Prime x443 wrote:
> The code that causes this error (in this example anyway, it has
> happened on practically every package) is this:
> 
> sub handler{
>     my $r = shift;
>     my $req = Apache::Request->instance($r);
>     .....
> }

Why don't you put some warnings in to log when $r is not an Apache
object?  Also, how do you call this handler?  Is it set up to be called
as a method sometimes?  Do you ever prototype it wit ($$)?  Show the
part of your conf where you set it up.

- Perrin


Mime
View raw message