[mp1] "Can't locate object method 'handler' via package 'handler'..."
[prev]
[thread]
[next]
[Date index for 2005/03/17]
Hi,
I'm encountering an occasional error with a couple of Apache::Registry
scripts, exemplified thus:
Can't locate object method "handler" via package "handler"
(perhaps you forgot to load "handler"?) at
/path/to/my/registry/program line 12.
Here's the program up to and including line 12:
#!/usr/bin/perl
use strict;
use Apache::Request;
use Sys::UniqueID;
use Cwd qw(chdir getcwd);
my $r = Apache::Request->new(shift);
my $page;
if ($r->param('doc')) {
Most of the time, the script works entirely as expected. It's as if
(and I'm aware this is wild conjecture) one of the Apache children is
"forgetting" that the script is meant to be run in the context of
Apache::Registry.
I have a whole bunch of Registry scripts, however, and only two of them
are exhibiting this odd behaviour. Perhaps significantly, both scripts
I've seen return this error are used to upload files.
Does anyone recognise this error?
In hope, and with thanks,
Andrew.
 |
[mp1] "Can't locate object method 'handler' via package 'handler'..."
Andrew Green 16:27 on 17 Mar 2005
|