Item9937: People that have manually copied Foswiki.spec to LocalSite.cfg (not recommended) have problems with new settings added.
Priority: Normal
Current State: Closed
Released In: 1.1.2
Target Release: patch
Applies To: Engine
Component: Documentation
Branches:
--
AkshayAnant - 01 Nov 2010
It appears as though somehow Foswiki.spec got copied into the intial
LocalSite.cfg.
lib/Foswki/Configure/FoswikiCfg.pm
should probably remove any embedded
__END__
lines, along with any embedded
1;
, ensuring that the final line in the configuration is the
1;
--
GeorgeClark - 01 Nov 2010
If Foswiki.spec is copied into LSC without editing, and configure is run, then configure complains about the missing settings and throws away LSC, giving the user a fresh file upon save.
If Foswiki.spec is copied and edited so that all of the mandatory settings are provided, then the problem can be recreated. The
__END__
stops the evaluation of the file, and new settings are appended to the end, and ignored.
It appears that it would be safe to remove
__END__
from the Foswiki.spec file, and add a comment to Foswiki.spec suggesting that it not be copied into
LocalSite.cfg. That should be sufficient. The extra
1;
embedded in the file doesn't seem to cause issues. and the copyright comments are ignored and not copied over or seen in the UI.
--
GeorgeClark - 01 Nov 2010
After discussion on IRC, decided to only clarify comments at beginning of Foswiki.spec.
--
GeorgeClark - 01 Nov 2010