Re: unable to use method type handlers?

2002-05-14 Thread victor

Try per load the class my::class via startup.pl or PerlModule

Tor.


Jeff AA wrote:
 
 Whenever I try to set up a method type handler
 
   PerlHandler my::classes-mymethod
 
 I get the following in the error log:
 
   Undefined subroutine my::classes-mymethod::handler called.
 
 using:
   Apache/1.3.23 (Unix) Debian GNU/Linux
   mod_perl/1.26 mod_ssl/2.8.7 OpenSSL/0.9.6c
 
 any hints would be appreciated



RE: unable to use method type handlers?

2002-05-14 Thread Jeff AA


 Try per load the class my::class via startup.pl or PerlModule

I already had PerlModule my::classes in httpd.conf
Tried PerlRequire as well - still the same error

help??


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: 14 May 2002 09:58
To: Jeff AA
Cc: [EMAIL PROTECTED]
Subject: Re: unable to use method type handlers?


Try per load the class my::class via startup.pl or PerlModule

Tor.


Jeff AA wrote:
 
 Whenever I try to set up a method type handler
 
   PerlHandler my::classes-mymethod
 
 I get the following in the error log:
 
   Undefined subroutine my::classes-mymethod::handler called.
 
 using:
   Apache/1.3.23 (Unix) Debian GNU/Linux
   mod_perl/1.26 mod_ssl/2.8.7 OpenSSL/0.9.6c
 
 any hints would be appreciated





Re: unable to use method type handlers?

2002-05-14 Thread Geoffrey Young



Jeff AA wrote:

Try per load the class my::class via startup.pl or PerlModule

 
 I already had PerlModule my::classes in httpd.conf
 Tried PerlRequire as well - still the same error

the steps are outlined pretty well in recipe 10.3 (since you mentioned the cookbook 
earlier).  from the looks of your error message in your earlier post, I'd say you 
forgot 
to prototype your handler, since mod_perl was adding the ::handler stuff to your 
PerlHandler argument.  you might want to make sure you built with EVERYTHING=1 as 
well, 
since I'm not sure what mod_perl does if built with PERL_METHOD_HANDLERS=0 (check 
perl-status?hooks for PerlMethodHandlers to be sure).

however there could also be other things amiss, like the package name doesn't match 
what 
you have in your PerlHandler line or whatnot.  if I were you, I'd follow all the 
normal 
method handler steps in 10.3 but create a functional handler instead to make sure 
there 
aren't any typos in there or anything.  in other words, get

   sub mymethod { my $r = shift; ... }

to work first.  then, just change the prototype and recover ($self, $r) as a second 
step.

I know this may not be much help, but the basic steps are pretty much the same and are 
very simple - it's probably something little and unseen that is tripping you up.

HTH

--Geoff