When running TWiki with mod_perl under RHEL5 A page load sometimes returns the error
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
%ENV is aliased to another variable while running with -T switch
It seems the issue is the following code in
LoginManager/Session.pm
:
sub load {
my $this = shift;
local %ENV;
If I remove the local definition for
%ENV
the error does never show up. The people from
FosWiki have noticed this too (see
http://foswiki.org/Tasks/Item691
and
http://trac.foswiki.org/changeset/1873
) and removed the definition.
I suggest that the offending line is also removed but an impact analysis for that change may be necessary.
--
TWiki:Main/StefanWalter
- 2010-09-29
It looks like a safe change to remove the line.
Please go ahead and comment out the line, adding the bug item, such as:
# local %ENV; # TWikibug:Item6583 - commented out
--
TWiki:Main.PeterThoeny
- 2010-09-29
Fix commited as described and ready for release in next minot update.
--
StefanWalter - 2010-09-30
Thanks. For bug fixes please keep trunk and latest branch in sync as much as possible. Could you make this change to TWiki-5.0 branch as well?
--
TWiki:Main.PeterThoeny
- 2010-09-30
OK, I'm getting the hang of this.

Change to
TWikiRelease05x00 branch commited as well.
--
TWiki:Main.StefanWalter
- 2010-10-01
Thanks!
--
TWiki:Main.PeterThoeny
- 2010-10-01