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