New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Item9841: Plugin installation fails due to broken

Priority: Normal
Current State: Closed
Released In: 1.1.1
Target Release: patch
Applies To: Engine
Reported By: KerstinPuschke
Waiting For:
Last Change By: KennethLavrsen
Plugin installation on the commandline fails if LocalSite.cfg contains empty lines or $Foswiki::cfg{ScriptDir} uses double quotes. Running any Plugin installer throws the error 'There was a compile error: Can't locate setlib.cfg in @INC'.

This is due to a bug in the sub getScriptDir in - it does not return the ScriptDir if your LocalSite.cfg has an empty line somewhere before the definition of $Foswiki::cfg{ScriptDir}, or if your LocalSite.cfg uses double quotes for the definition of $Foswiki::cfg{ScriptDir}.

Since sub getScriptDir does not return the ScriptDir, the chdir in line 101 fails. For some reason, this has no impact when using the configure webinterface - maybe it's already in the correct directory. On the commandline instead, it causes the installation to fail.

-- KerstinPuschke - 18 Oct 2010

I've committed a fix for 1.1.1 - you can find the modified at If you have a chance to test it, please let us know. The fix works okay in my tests. Thanks for the detailed report.

-- GeorgeClark - 18 Oct 2010

Patch works for me, too.

-- KerstinPuschke - 19 Oct 2010

ItemTemplate edit

Summary Plugin installation fails due to broken
ReportedBy KerstinPuschke
Codebase 1.1.0
SVN Range
AppliesTo Engine
Priority Normal
CurrentState Closed
Checkins distro:46a387496a83 distro:67f08dbfc222
TargetRelease patch
ReleasedIn 1.1.1
Topic revision: r7 - 25 Oct 2010, KennethLavrsen - This page was cached on 19 Sep 2018 - 22:26.

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