[EMAIL PROTECTED] (Jie Gao) wrote:
>Using mod_perl-1.24_01.
>
>Error:
>
>[Tue Jan  2 16:02:37 2001] [error] Can't locate object method "uri" via
>package "Apache::PerlRun" at
>/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Apache/PerlRun.pm line 212.

Jie,

Try this patch.  Does it solve the problem?

------------------------------------------------------------
--- PerlRun.pm  Mon Oct  2 01:02:05 2000
+++ PerlRun-new.pm      Tue Jan  2 00:59:15 2001
@@ -209,7 +209,7 @@
     my $pr = shift;
     if ($@ and substr($@,0,4) ne " at ") {
        $pr->{r}->log_error("PerlRun: `$@'");
-       $@{$pr->uri} = $@;
+       $@{$pr->{r}->uri} = $@;
        $@ = ''; #XXX fix me, if we don't do this Apache::exit() breaks
        return SERVER_ERROR;
     }
------------------------------------------------------------


I don't quite understand the voodoo of this line and what it's supposed
to do, so I'm not sure about the validity of this patch.  But I think it
might solve the problem if anything does.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to