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

2001-02-21 Thread Russell Lundberg

> 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 - 
> > more than 70M impressions per day, 
>
> --
> 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/







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

2001-02-21 Thread Russell Lundberg

> Thanks for your comments. I renamed the file/package with the same
> result. I will need to figure out the OS patches and maybe upgrade to
> current sources before trying again.
>
> Russell
>
> "G.W. Haywood" wrote:
>
> >
> > Hi there,
> >
> > On Tue, 20 Feb 2001, Russell Lundberg wrote:
> >
> > > Apache 1.3.12 (EVERYTHING=1), mod_perl 1.24, Perl 5.005_2, Solaris 5.7.
> > > package Apache::Download; use Apache; sub handler { return DECLINED; } 1;
> > > [error]  null: Undefined subroutine &#::handler called.
> >
> > What's the file's name, where is it, what's in your configuration, do
> > you have any other files/packages named the same in the search paths,
> > (have you tried a different package name e.g. Apache::DNL1a2b3c which
> > definitely won't conflict with anything else), do you have any other
> > handlers running OK, have you read http://perl.apache.org/guide?
> >
> > 73,
> > Ged.
> > PS it might be worth upgrading those sources.  OS patches?
>
> --
> 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/