Hello,
Using TWIKI-4 SVN, and in lib/Twiki/Configure/Checker.pm, there is a typo that prevents it from working properly.
In the first section of the checkPerlModules functions, there is an if statement,
if (ref($_[0])) {
, like that.
Later on, right after, there's a missing hash symbol
%
for the
$mods
which causes a "software error" and it bombs out after the CGI env. stuff.
full text, error itself is on line 187:
BEFORE:
sub checkPerlModules {
my $this = shift;
my $mods;
if (ref($_[0])) {
$mods = $_[0];
} else {
%$mods = (@_);
}
AFTER:
sub checkPerlModules {
my $this = shift;
my $mods;
if (ref($_[0])) {
%$mods = $_[0];
} else {
%$mods = (@_);
}
Interesting; possibly something to do with your perl version, because I don't get this error. The code is right; if
$_[0]
is a reference to a hash, then
$mods
is pointed at the same hash; the
%
sign is not needed, and is wrong. The error you are seeing must be the result of the call; can you share the stack trace please?
Discarding until sufficient information provided to allow the error to be reproduced.
CC