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

See TWiki:Support/VarIFcrashTWiki and example crash page TWiki:Sandbox.VarIFcrashTWiki

Page content reproduce crash:

   * Set A = anyext
   * Set B = AndreasBohn

%IF{"%A% = %B%" then="YES" else="NO"}%

error_log output:

[Fri Jul  7 14:14:33 2006] view: Use of uninitialized value in numeric lt (<) at /path/to/lib/TWiki/If.pm line 275.
[Fri Jul  7 14:14:33 2006] view: Use of uninitialized value in numeric eq (==) at /path/to/lib/TWiki/If.pm line 322.
[Fri Jul  7 14:14:33 2006] view: Use of uninitialized value in subroutine entry at /path/to/lib/TWiki/If.pm line 64.
********************************
Can't use string ("") as a subroutine ref while "strict refs" in use at /path/to/lib/TWiki/If.pm line 64.
 at /path/to/lib/TWiki/If.pm line 64
        TWiki::IfNode::evaluate('TWiki::IfNode=HASH(0xcfdff8)', 'TWiki=HASH(0x23c08)') called at /path/to/lib/TWiki.pm line 2597
        TWiki::_IF('TWiki=HASH(0x23c08)', 'TWiki::Attrs=HASH(0xcfe0ac)', 'VarIFcrashTWiki', 'Sandbox') called at /path/to/lib/TWiki.pm line 2245
        TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x23c08)', 'IF', '"anyext = AndreasBohn" then="YES" else="NO"', 'VarIFcrashTWiki', 'Sandbox') called at /path/to/lib/TWiki.pm line 2164
        TWiki::_processTags('TWiki=HASH(0x23c08)', '---+!! Topic Title\x{a}\x{a}---++ Just define vars\x{a}\x{a}   * Set A = anye...', 'CODE(0x71f4f4)', 16, 'VarIFcrashTWiki', 'Sandbox') called at /path/to/lib/TWiki.pm line 2090
        TWiki::_expandAllTags('TWiki=HASH(0x23c08)', 'SCALAR(0xbd2c5c)', 'VarIFcrashTWiki', 'Sandbox') called at /path/to/lib/TWiki.pm line 2433
        TWiki::handleCommonTags('TWiki=HASH(0x23c08)', '---+!! Topic Title\x{a}\x{a}---++ Just define vars\x{a}\x{a}   * Set A = anye...', 'Sandbox', 'VarIFcrashTWiki') called at /path/to/lib/TWiki/UI/View.pm line 320
        TWiki::UI::View::_prepare('---+!! Topic Title\x{a}\x{a}---++ Just define vars\x{a}\x{a}   * Set A = anye...', 'TWiki=HASH(0x23c08)', 'Sandbox', 'VarIFcrashTWiki', 'TWiki::Meta=HASH(0xbf2090)', 0) called at /path/to/lib/TWiki/UI/View.pm line 304
        TWiki::UI::View::view('TWiki=HASH(0x23c08)') called at /path/to/lib/TWiki/UI.pm line 97
        TWiki::UI::__ANON__() called at /path/to/lib/CPAN/lib/Error.pm line 387
        eval {...} called at /path/to/lib/CPAN/lib/Error.pm line 379
        Error::subs::try('CODE(0xb79b5c)', 'HASH(0xbbe7dc)') called at /path/to/lib/TWiki/UI.pm line 146
        TWiki::UI::run('CODE(0x78544)') called at /path/to/bin/view line 31

********************************

-- PTh

Interestingly enough, the problem arose because "Andreas" starts with the operator name "And".

CC

Closed in 4.0.5 KJL

ItemTemplate
Summary Crash TWiki with IF variable
ReportedBy TWiki:Main.PeterThoeny
Codebase 4.0.2
SVN Range Thu, 29 Jun 2006 build 10750
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 10975 10976 10977 10999 11000
TargetRelease patch
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2006-11-14 - KennethLavrsen
 
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