modperl-minor_prob_with_twiki

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: <modperl@apache.org>
From: "David LeBlanc" <whisper@oz.net>
Subject: Sticky Pages.
Date: Wed, 2 Jan 2002 23:37:35 -0800

Have a strange problem using modPerl as follows:

OS: 		Windows 2000 Professional
Webserver: 	Apache/1.3.22 (Win32)
mod_perl: 	mod_perl/1.26_01-dev

mod_perl is loaded in the httpd.conf file (LoadModule perl_module
modules/mod_perl.so AddModule mod_perl.c), and also appears in the .htaccess
file for the TWiki directory:
<Files *>
   SetHandler perl-script
   PerlHandler Apache::Registry
   Options ExecCGI
   PerlSendHeader On
</Files>

The Application i'm using is called TWiki (http://Twiki.org), and if you
view some page within Twiki, close the browser, open a new one and hit the
link that takes you to the front page of Twiki, the last page you looked at
in the just-deleted browser will be shown instead of the front page. TWiki
does not exhibit this behavior when run as a CGI program, and also I just
checked and it has the same behavior using Mozilla 0.9.6.

FWIW, I tried updating mod_perl using cpan and it claims i'm up to date.

Any suggestions on how to fix this?

TIA,

Dave LeBlanc

===

To: David LeBlanc <whisper@oz.net>
From: Stas Bekman <stas@stason.org>
Subject: Re: Sticky Pages.
Date: Thu, 03 Jan 2002 15:54:56 +0800

David LeBlanc wrote:

> Have a strange problem using modPerl as follows:
> 
> OS: 		Windows 2000 Professional
> Webserver: 	Apache/1.3.22 (Win32)
> mod_perl: 	mod_perl/1.26_01-dev
> 
> mod_perl is loaded in the httpd.conf file (LoadModule perl_module
> modules/mod_perl.so AddModule mod_perl.c), and also appears in the .htaccess
> file for the TWiki directory:
> <Files *>
>    SetHandler perl-script
>    PerlHandler Apache::Registry
>    Options ExecCGI
>    PerlSendHeader On
> </Files>
> 
> The Application i'm using is called TWiki (http://Twiki.org), and if you
> view some page within Twiki, close the browser, open a new one and hit the
> link that takes you to the front page of Twiki, the last page you looked at
> in the just-deleted browser will be shown instead of the front page. TWiki
> does not exhibit this behavior when run as a CGI program, and also I just
> checked and it has the same behavior using Mozilla 0.9.6.
> 
> FWIW, I tried updating mod_perl using cpan and it claims i'm up to date.
> 
> Any suggestions on how to fix this?


I'm not familiar with this sw, but I'll assume that it remembers the 
state (the last visited page).

Does Twiki claim to be mod_perl clean? It's probably not coded with 
persistency in mind or happens to have the closure problem under Registry.

As a temp workaround use Apache::PerlRun instead of Apache::Registry.

See the guide for more info on these issues. In particular:
http://perl.apache.org/guide/porting.html#Exposing_Apache_Registry_secret
and
http://perl.apache.org/guide/porting.html#Sometimes_it_Works_Sometimes_it

===

To: "Stas Bekman" <stas@stason.org>
From: "David LeBlanc" <whisper@oz.net>
Subject: RE: Sticky Pages.
Date: Thu, 3 Jan 2002 10:43:34 -0800

Stan;

I tried using Apache::PerlRun and got this in the error log:
[Thu Jan 03 10:40:24 2002] [error] Can't locate object method "filename" via
package "Apache" (perhaps you forgot to load "Apache"?) at
J:/Perl/site/lib/Apache/PerlRun.pm line 24.

What does this mean?

====


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu