SID-01978: Software Error trying to configure Twiki
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
5.10.1 |
| Category: |
CategoryInstallation |
Server OS: |
CentOS 6.5 |
Last update: |
11 years ago |
I am getting the following error during the installation process after providing a new password on the configure page.
Use of uninitialized value $_[0] in join or string at /var/www/twiki/lib/TWiki/Configure/UI.pm line 138.
Any suggestions? I checked file permissions already.
--
Tad Reissing - 2014-10-03
Discussion and Answer
Not sure. What do you have at that line? A vanilla 6.0.0 has:
eval qq(use $package);
die $@ if $@;
...which does not correlate to your error message.
Also, did you use the
ApacheConfigGenerator? Did you set
twiki/bin/LocalLib.cfg?
--
Peter Thoeny - 2014-10-03
# STATIC Used by a whole bunch of things that just need to show a key-value row
# (called as a method, i.e. with class as first parameter)
sub setting {
my $this = shift;
my $key = shift;
return CGI::Tr(CGI::td({class=>'firstCol'}, $key). <------- Line 138
CGI::td({class=>'secondCol'}, join(' ', @_)))."\n";
}
Yes I did use the generator and set the LocalLib.cfg file.
--
Tad Reissing - 2014-10-03
return CGI::Tr(CGI::td({class=>'firstCol'}, $key).
CGI::td({class=>'secondCol'}, join(' ', @_)))."\n";
This is line 138.... The cut and paste did not come across as expected. Sorry..
--
Tad Reissing - 2014-10-03
Your reference above was for file /lib/TWiki/UI.pm and my error is looking at /lib/TWiki/Configure/UI.pm.
--
Tad Reissing - 2014-10-03
I am having this exact same issue.
--
Darius Hankins - 2014-10-06
Darius: What Perl version do you use?
--
Peter Thoeny - 2014-10-06
I glanced over the code and can't find any place that adds a blank
$key or
@_ to
sub setting.
I also tested password set on the latest TWiki, and I do not get any warning.
What other symptoms do you have? Can you set the password anyway?
--
Peter Thoeny - 2014-10-06
I am not sure the password is set or not. Every time I go to <ip address>/do/configure it ask me to reset the password then takes me to the page containing the error mentioned above.
--
Tad Reissing - 2014-10-06
That is an indication that the password could not be saved.
- Does
$twikiLibPath in twiki/bin/LocalLib.cfg point properly to your twiki/lib, starting at root with / as in /var/www/twiki/lib?
- Is your
twiki/lib directory writable by the apache user?
- Does
twiki/lib/LocalSite.cfg exist?
- If so, is it owned and writable by apache?
--
Peter Thoeny - 2014-10-07
Yes to all...
--
Tad Reissing - 2014-10-07
Yes to all...
--
Tad Reissing - 2014-10-07
Im using Perl 5.20.1
--
Darius Hankins - 2014-10-07
i having the same problem
--
Ethan Hawke - 2014-10-14
Hello everyone. I helped someone out with this now, and had to change the code a little bit in order for it to work:
- CGI::td({class=>'secondCol'}, join(' ', @_)))."\n";
+ CGI::td({class=>'secondCol'}, join(' ', grep { defined; } @_)))."\n";
I don't really understand why this was needed. But the Perl version was 5.20 as well, and it worked after this fix.
--
Terje Ness Andersen - 2014-10-14
I opened a BugItem for this:
http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item7578
--
Terje Ness Andersen - 2014-10-14
Thank you Terje. See more debug info at
SID-01981, it's the
TMPDIR that is undefined.
--
Peter Thoeny - 2014-10-14
I updated
KnownIssuesOfTWiki06x00 accordingly.
I am closing this support question, watch
TWikibug:Item7578
for updates and patch.
--
Peter Thoeny - 2014-10-14
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.