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

Item6394: Opaque error when EDITTABLE encounters a confusing condition

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension EditTablePlugin Normal Confirmed   n/a  

Edit Form Data

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

Detail

A co-worker inherited a TWiki table with inappropriate header/footer parameters. I don't dispute the bad parameters, but the error, in this case, was overly opaque.

Given this configuration:

%TABLE{sort="on" headerrows="2" footerrows="1"}%
%EDITTABLE{}%
|*Country*|*Total*|*%*|*Space ID*|
|aa|7,316|71.06%|800|

Clicking the Edit button produces the following error page:

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.

Modification of non-creatable array value attempted, subscript -1

Fixing the TABLE parameters to have 1 headerrow and no footerrows make the error disappear.

Test

Country Total % Space ID
aa 7,316 71.06% 800

-- TWiki:Main/VickiBrown - 06 Feb 2010

Bug confirmed. Thanks Vicki for the report.

Range check on actual number of rows needs to be done.

-- TWiki:Main.PeterThoeny - 09 Feb 2010

ItemTemplate
Summary Opaque error when EDITTABLE encounters a confusing condition
ReportedBy TWiki:Main.VickiBrown
Codebase 4.2.4
SVN Range TWiki-5.0.0, Sat, 02 Jan 2010, build 18269
AppliesTo Extension
Component EditTablePlugin
Priority Normal
CurrentState Confirmed
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2010-02-09 - 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