Question
When I try to load
TWikiGroups or simply include the
%GROUPS%
variable on a test page, an error is generated.
Error text:
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Can't use an undefined value as an ARRAY reference
TWiki Warning Log text:
| 11 Feb 2007 - 08:10 | Can't use an undefined value as an ARRAY reference at C:/twiki/lib/TWiki.pm line 3616.
at C:/twiki/lib/TWiki.pm line 3616
TWiki::_GROUPS('TWiki=HASH(0x15245d8)', 'TWiki::Attrs=HASH(0x2267388)', 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2395
TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x15245d8)', 'GROUPS', 'undef', 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2314
TWiki::_processTags('TWiki=HASH(0x15245d8)', '---+ TWiki Groups\x{d}\x{a}\x{d}\x{a}These groups can be used to define fine ...', 'CODE(0x1d98fe0)', 16, 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2240
TWiki::_expandAllTags('TWiki=HASH(0x15245d8)', 'SCALAR(0x219f484)', 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2589
TWiki::handleCommonTags('TWiki=HASH(0x15245d8)', '---+ TWiki Groups\x{d}\x{a}\x{d}\x{a}These groups can be used to define fine ...', 'Main', 'TWikiGroups') called at C:/twiki/lib/TWiki/UI/View.pm line 375
TWiki::UI::View::_prepare('---+ TWiki Groups\x{d}\x{a}\x{d}\x{a}These groups can be used to define fine ...', 'TWiki=HASH(0x15245d8)', 'Main', 'TWikiGroups', 'TWiki::Meta=HASH(0x2143f5c)', 0) called at C:/twiki/lib/TWiki/UI/View.pm line 359
TWiki::UI::View::view('TWiki=HASH(0x15245d8)') called at C:/twiki/lib/TWiki/UI.pm line 157
TWiki::UI::__ANON__() called at C:/twiki/lib/CPAN/lib//Error.pm line 379
eval {...} called at C:/twiki/lib/CPAN/lib//Error.pm line 371
Error::subs::try('CODE(0x225390)', 'HASH(0x217fa18)') called at C:/twiki/lib/TWiki/UI.pm line 197
TWiki::UI::run('CODE(0x152ec80)', 'view', 1) called
Apache error.log text:
[Sun Feb 11 10:44:25 2007] [error] [client 127.0.0.1] Can't use an undefined value as an ARRAY reference at C:/twiki/lib/TWiki.pm line 3616., referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:25 2007] [error] [client 127.0.0.1] at C:/twiki/lib/TWiki.pm line 3616, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::_GROUPS('TWiki=HASH(0x1524514)', 'TWiki::Attrs=HASH(0x21d1d50)', 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2395, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x1524514)', 'GROUPS', 'undef', 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2314, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::_processTags('TWiki=HASH(0x1524514)', '---+ TWiki Groups\x{d}\x{a}\x{d}\x{a}These groups can be used to define fine ...', 'CODE(0x1d98b10)', 16, 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2240, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::_expandAllTags('TWiki=HASH(0x1524514)', 'SCALAR(0x2169bdc)', 'TWikiGroups', 'Main') called at C:/twiki/lib/TWiki.pm line 2589, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::handleCommonTags('TWiki=HASH(0x1524514)', '---+ TWiki Groups\x{d}\x{a}\x{d}\x{a}These groups can be used to define fine ...', 'Main', 'TWikiGroups') called at C:/twiki/lib/TWiki/UI/View.pm line 375, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::UI::View::_prepare('---+ TWiki Groups\x{d}\x{a}\x{d}\x{a}These groups can be used to define fine ...', 'TWiki=HASH(0x1524514)', 'Main', 'TWikiGroups', 'TWiki::Meta=HASH(0x2112e10)', 0) called at C:/twiki/lib/TWiki/UI/View.pm line 359, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::UI::View::view('TWiki=HASH(0x1524514)') called at C:/twiki/lib/TWiki/UI.pm line 157, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::UI::__ANON__() called at C:/twiki/lib/CPAN/lib//Error.pm line 379, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] eval {...} called at C:/twiki/lib/CPAN/lib//Error.pm line 371, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] Error::subs::try('CODE(0x225290)', 'HASH(0x215dc1c)') called at C:/twiki/lib/TWiki/UI.pm line 197, referer: http://localhost/twiki/bin/view
[Sun Feb 11 10:44:26 2007] [error] [client 127.0.0.1] TWiki::UI::run('CODE(0x152e6fc)', 'view', 1) called, referer: http://localhost/twiki/bin/view
Environment
--
BillLay - 11 Feb 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
This seems to be a bug, tracked in
Bugs:Item3573
. Please provide details there.
--
PeterThoeny - 11 Feb 2007
I have a persisting problem that matches this description exactly. I am trying to install TWiki on my company intranet, and everything seems to work except GROUPS-variable doesnt work. I tried to use the patch from
Bugs:Item3573
but I guess
RcsFile.pm has changed since, because there is no conditional sentence to replace (See
Bugs:Item3573
).
I am running TWiki 4.1.2 on Debian Linux.
--
MikkoLaakso - 13 Apr 2007
Problem solved: I changed one line in config initially, namely
{SuperAdminGroup} . After this, the GROUPS-variable was no longer accessible. After I changed this setting to its default (TWikiAdminGroup), everything works again!
--
MikkoLaakso - 13 Apr 2007
This is most likely fixed, see
Bugs:Item3573
.
--
PeterThoeny - 15 Apr 2007
Running version 4.1.1 under Gentoo Linux. I am getting the same error when I change the
SuperAdminGroup to include a User. I.E.
from
TWikiAdminGroup
to
TWikiAdminGroup,Main.DuffieCooley
The
TWikiGroup Page fails to load with the same error described above. I edited the
RcsFile.pm according to
Bugs:Item3573
and Still no change. My work around was to create a
SuperAdminGroup. And put that group in the field. Seems that the script might be trying to call the user (
DuffieCooley) as a hash. Which might not work as it's a user... part of the Main.Users Hash or something.
Thanks,
--
DuffieCooley - 18 May 2007
That is not a workaround, that is the recommended way to maintain the admin group.
--
PeterThoeny - 18 May 2007
As noted the Documentation stated to add users to a group that is defined in the
SuperAdminGroup variable not add a user to the
SuperAdminGroup Variable.
Very Different. Hopefully this comment save someone else from making the same mistake.
Cheers,
--
DuffieCooley - 18 May 2007