I am using an object transhandler like so,

    PerlTransHandler        Util::Tour::Translate->handler

I then have a content handler like so,
    <Location /banner>
        SetHandler    perl-script
        PerlHandler   Util::Tour::Banner
    </Location>

My content handler is used to select an image by processing data in the
path_info and performing an internal_redirect to the actual image,
    $r->internal_redirect("/img/$id/banners/$img.gif");

However, as soon as the internal_redirect happens (which inevitably triggers
the PerlTransHandler again) I get,

    [Thu Jan 23 17:35:36 2003] [error] Undefined subroutine
&Util::Tour::Translate->handler::handler called at
/home/www.website.com/lib/Util/Tour/Banner.pm line 66.

So I converted Util::Tour::Translate's handler into a regular non object
handler and everythings works fine. I would rather use object handlers but
this doesn't seem possible if a content handler is performing an
internal_redirect which might invoke that handler.

Can somone shed some light on this for me please.

Richard.

p.s. I didnt yet try converting Util::Tour::Banner into an object handler.
Is it neccessary for all handlers in a chain to be either object or regular
but not a mix?.

Reply via email to