• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 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.

Item7828: Warnings Uninitialized value $lang and Argument "1.26_01" isn't numeric in lib/TWiki.pm

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Low Waiting for Release TWiki:Main.HaraldJoerg    

Edit Form Data

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

Detail

Two warnings show up on every request, or only once if a persistent interpreter is used. These warnings are unrelated to each other, but affect the same module and I'd like to avoid too many 1-line-bugs:
  • Uninitialized value $lang in pattern match (m//) at /home/twiki/lib/TWiki.pm line 403.
    • Reason: use of wrong operator '=~' instead of '='. This fails to assign a default to $TWiki::cfg{Site}{Lang} as intended.
    • Fix: replace the operator.
  • Argument "1.26_01" isn't numeric in addition (+) at /home/twiki/lib/TWiki.pm line 5148.
    • Reason: This is specific for the platform (Debian Stretch in this case), which ships with a Locale::Maketext module version of 1.26_01. Such version numbers are considered "valid" in Perl.
    • Fix: Since comparing the main version is sufficient, just suppress this warning in the surrounding block.
-- TWiki:Main/HaraldJoerg - 2017-11-03

ItemTemplate
Summary Warnings Uninitialized value $lang and Argument "1.26_01" isn't numeric in lib/TWiki.pm
ReportedBy TWiki:Main.HaraldJoerg
Codebase ~twiki4, 6.0.2
SVN Range TWiki-6.0.2-trunk, Thu, 17 Aug 2017, build 30373
AppliesTo Engine
Component

Priority Low
CurrentState Waiting for Release
WaitingFor TWiki:Main.HaraldJoerg
Checkins TWikirev:30403 TWikirev:30404
TargetRelease

ReleasedIn

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2017-11-03 - HaraldJoerg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback