[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl_tie_hash: Can't locate object method "TIEHASH"...



Following up to myself, a workaround for this particular problem is to
patch Cookie.pm (Version 1.24) as follows:

--- Cookie.pm.orig	2003-11-17 14:04:13.000000000 -0600
+++ Cookie.pm	2003-11-17 14:06:20.000000000 -0600
@@ -73,7 +73,7 @@
   my $r = shift;
   $r ||= eval { Apache->request() } if $MOD_PERL;
   if ($r) {
-    $raw_cookie = $r->headers_in->{'Cookie'};
+    $raw_cookie = $r->header_in ('Cookie');
   } else {
     if ($MOD_PERL && !exists $ENV{REQUEST_METHOD}) {
       die "Run $r->subprocess_env; before calling fetch()";


I don't know if that's the right fix (I suspect there's a deeper
problem somewhere with "headers_in"), but it appears to work for us.

--
Pete Harlan
harlan@artselect.com


On Mon, Nov 17, 2003 at 01:56:09PM -0600, Pete Harlan wrote:
> Sorry if this was already discussed recently.  I just subscribed to
> the list and couldn't find anything in the archives.
> 
> After the most recent perl 5.8.2-2 update, mod_perl scripts on our
> apache server die with:
> 
> 	[Mon Nov 17 13:28:19 2003] [notice] Apache/1.3.27 (Unix) mod_perl/1.29 configured -- resuming normal operations
> 	[Mon Nov 17 13:28:19 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
> 	perl_tie_hash: Can't locate object method "TIEHASH" via package "Apache::Table" at /usr/share/perl/5.8.2/CGI/Cookie.pm line 77.
> 	[Mon Nov 17 13:28:22 2003] [error] Can't call method "FETCH" on an undefined value at /usr/share/perl/5.8.2/CGI/Cookie.pm line 77.
> 
> This is a self-compiled Apache+mod_perl setup under Debian Unstable.
> It worked before the fix.  I've recompiled to no avail, updated CGI,
> Apache, etc. from cpan, no change.
> 
> Any help would be appreciated!
> 
> Thanks,
> 
> --
> Pete Harlan
> harlan@artselect.com
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: