You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Russell Lundberg <RL...@signalsoftcorp.com> on 2001/02/22 04:01:11 UTC

[Fwd: TransHandler causes "Undefined subroutine &#::handler called."]

> Thanks for helping. Here is the line from httpd.conf:
>
>     PerlTransHandler Apache::Download
>
> One version of the handler did as you say. I have tried several different
> approaches to make this work. I should point out that each of the versions
> worked fine on my Win98 laptop running Randy Kobes 0.6 binary (thank you,
> Sir!): Apache 1.3.12, Perl 5.6.0, mod_perl 1.23.
>
> Upgrading the sources as Ged Haywood suggests is probably my next step.
>
> Russell
>
> Ask Bjoern Hansen wrote:
>
> >
> > On Tue, 20 Feb 2001, Russell Lundberg wrote:
> >
> > > I'm having problems with the PerlTransHandler handler. Every request
> > > generates the following error:
> > >
> > >  [error]  null: Undefined subroutine &#::handler called.
> > >
> > > Here is the TransHandler:
> > >
> > >     package Apache::Download;
> > >     use Apache;
> > >     sub handler {
> > >         return DECLINED;
> > >     }
> >
> > You need to show us the relevant part of your httpd.conf (or
> > wherever the transhandler gets configured).
> >
> > > Originally I wanted to use TransHandler to generate a file from
> > > thin air. User click a link to a file which does not exist, but
> > > the TransHandler would create it and send it to the client.
> >
> > Usually one would just generate the content in a PerlHandler (the
> > content handler phase), possibly with a TransHandler to tell Apache
> > to use the content handler module when it is needed.
> >
> >  - ask
> >
> > --
> > ask bjoern hansen - <http://ask.netcetera.dk/>
> > more than 70M impressions per day, <http://valueclick.com>
>
> --
> Russell Lundberg
> Director of Operations, Asia Pacific
> Signalsoft Corporation
> Mobile +66 1 807 8159
> Fax: +1 720 221 6658
> http://www.signalsoftcorp.com/

--
Russell Lundberg
Director of Operations, Asia Pacific
Signalsoft Corporation
Mobile +66 1 807 8159
Fax: +1 720 221 6658
http://www.signalsoftcorp.com/