• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6583: mod_perl error: %ENV is aliased to another variable while running with -T switch

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 5.0.1

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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. smile Change to TWikiRelease05x00 branch commited as well.

-- TWiki:Main.StefanWalter - 2010-10-01

Thanks!

-- TWiki:Main.PeterThoeny - 2010-10-01

ItemTemplate
Summary mod_perl error: %ENV is aliased to another variable while running with -T switch
ReportedBy TWiki:Main.StefanWalter
Codebase 5.0.0
SVN Range TWiki-5.0.0, Mon, 27 Sep 2010, build 19508
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:19531 TWikirev:19539
TargetRelease patch
ReleasedIn 5.0.1
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2010-10-12 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback