• 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.

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 Closed TWiki:Main.HaraldJoerg    

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


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

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

Priority Low
CurrentState Closed
WaitingFor TWiki:Main.HaraldJoerg
Checkins TWikirev:30403 TWikirev:30404


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