Ask a Question related to PERL Modules, Design and Development.
-
David Filmer #1
SOLVED: Can't call method "FETCH" on an undefined value at /path/to/my/Cookie.pm
Pete Harlan posted a problem and workaround for a problem in a
moderated Debian newsgroup (though this issue is not really related to
Debian specifically):
[url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=SXRp.3ZD.25%40gated-at.bofh.it&rnum=1&prev=/groups%3Fq%3D%2522Can%27t%2Bcall%2Bmethod%2BFETCH% 2Bon%2Ban%2Bundefined%2Bvalue%2522%2Bdebian%26hl%3 Den%26lr%3D%26ie%3DUTF-8%26selm%3DSXRp.3ZD.25%2540gated-at.bofh.it%26rnum%3D1[/url]
The problem is that scripts running under mod_perl die with an error:
Can't call method "FETCH" on an undefined value at
/path/to/my/lib/perl5/5.8.0/CGI/Cookie.pm line 76.
Pete posted a patch (which he admitted was a bit of a kludge) to
Cookie.pm which appears to work (though I haven't really delved into
it to see why, or if it breaks something else).
I also had this problem, and was not readily able to find a less
kludgy answer. I solved the problem and offer my experience here for
benefit of others:
The problem is that mod_perl is not configured with some required
"callback hook." See the INSTALL doc from mod_perl for a list of all
available callback hooks. These are all disabled by default.
I don't really know which one(s) are required to fix the problem with
Cookie.pm (I suspect it's PERL_STACKED_HANDLERS, but I'm not sure); I
took the "big hammer" approach and enabled ALL of them (EVERYTHING=1),
and the problem went away.
In other words, cd to your mod_perl directory (you'll need your Apache
source code as well), and do something like:
perl Makefile.PL DO_HTTPD=1 USE_APACI=1
APACHE_PREFIX=/usr/local/apache EVERYTHING=1
make
make install
(If anyone knows which callback hook(s) is/are specifically needed to
fix this problem, please follow-up)
David Filmer Guest
-
"Can't call method "disconnect" on an undefined value..."
Hey there anyone, I am new at this and I am trying to figure this out and I don't know too much, but I keep getting this error when trying to run... -
Relative path in "foldexists" method
I tried to check whether the folder exist before writing a file. I tried to use the relative path for easier transfer to other server. I set up... -
Crypt::CBC Can't call method "blocksize" on unblessed reference
I have a problem with the Crypt:CBC Module. When I'm running my little sample script I allway get the following error: Can't call method... -
Spreadsheet::ParseExcel Can't call method "sheets"
The code below fails on some excel files with the error message: Can't call method "sheets" on an undefined value at script.pl line 6. The problem... -
Can't call method "uri" on an undefined value
I am trying to get Auth::Cookie to work and keep getting this error? Can't call method "uri" on an undefined value at /path/login.pl line 6. ...



Reply With Quote

