This question about Configuration: More info required

Use of uninitialized value in lc

Hi there,

I have upgraded my foswiki installation from 1.12 (windows exe installer with apache and strawberry pearl) to 1.1.6. All seems to have gone smoothly and the bulk of the site works perfectly but yet I cannot get the config page to work as it keeps coming up with the error 'Use of uninitialized value in lc at C:/Program Files/Foswiki/Foswiki/bin/configure line 334.'

I have updated my strawberry pearl to 5.16.2.1-32bit but it has made no difference. when searchng for the error'ing line in configure I find:

$::WebServer_gid = join( ',', map { lc( getgrgid($_) ) } split( ' ', $( ) );
};
if ($@) {

# Try to use Cygwin's 'id' command - may be on the path, since Cygwin
# is probably installed to supply ls, egrep, etc - if it isn't, give
# up.
# Run command without stderr output, to avoid CGI giving error.
# Get names of primary and other groups.
# This is down here because it takes 30s to execute on Strawberry perl
$::WebServer_gid = lc(qx(sh -c '( id -un ; id -gn) 2>/dev/null' 2>nul ));

Unfortunately my knowladge of pearl is little to none so this is proving to be quite confusing! Would anyone be able to point me in the correct direction?

Thanks!

-- JordanCox - 24 Jan 2013

If you can test a possible fix for me, the very last line you listed above, please change:

$::WebServer_gid = lc(qx(sh -c '( id -un ; id -gn) 2>/dev/null' 2>nul ) || 'n/a' ); 

(Add the || 'n/a' between the two close-parenthesis. That will assign a default value rather than leaving it undefined.

I have no idea why this is failing for you but not on my test system. I'm running strawberry 5.16.1, I'll get this fix into 1.1.7 if we get validation that it works. Thanks

-- GeorgeClark - 24 Jan 2013

Opened task Tasks.Item12368

-- GeorgeClark - 24 Jan 2013

Well it has progressed as I now get the following error:

Use of uninitialized value $Foswiki::foswikiLibPath in concatenation (.) or string at C:/PROGRA~1/Foswiki/Foswiki/lib/Foswiki/Configure/TemplateParser.pm line 67.

I have checked the file in question and the line points to:

$foswikiConfigureFilesDir = "$Foswiki::foswikiLibPath/Foswiki/Configure";

as my install path for the configure directory is:

C:\Program Files\Foswiki\Foswiki\lib\Foswiki\Configure

I am a little unsure of what is wrong still. Any ideas?

Thanks so much for all your help!

-- JordanCox - 25 Jan 2013

What version of Windows are you running? And how did you tailor the files for Perl version, Did you run tools/rewriteshebang.pl to set the #! line at the beginning of each script?

Did you tailor the file bin/LocalLib.cfg (copying from bin/LocalLib.cfg.txt or did you default to a missing file?

Ah... you upgraded the 1.1.2 installer. Let me see if I can try that path. All my systems already have apache and perl installed. Something strange is going on, as the foswikiLibPath is established at startup and should never be undefined.

-- GeorgeClark - 25 Jan 2013

Please describe how you upgraded from 1.1.2 to 1.1.6. There are probably some things set incorrectly after the upgrade.

-- GeorgeClark - 25 Jan 2013
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.6
Status More info required
Related Topics
Topic revision: r6 - 28 Mar 2013, GeorgeClark - This page was cached on 10 Dec 2018 - 21:43.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy