This question about Installation of Foswiki: Answered
Error: no such theme PatternSkinTheme after upgrade 1.1.3 -> 1.1.6
I have copied contents of Foswiki-upgrade-1.1.6.tgz on top of existing Foswiki-1.1.3 installation. After that, a line "Error: no such theme PatternSkinTheme" appears in red letters at the top of all pages.
As far as I understand, all PatternSkinTheme files are in place. The Foswiki configuration interface shows no errors.
What's wrong with my installation?
--
AlexanderSmishlajev - 03 Dec 2012
The following new preference setting is required, and overrides the JQuery theme set in configure. Add it to
SitePreferences:
* Set PATTERNSKIN_JQUERY_THEME = PatternSkinTheme
I'm wondering though if something didn't get copied correctly during your upgrade. I've checked the
System.DefaultPreferences
that we ship in the upgrade package, and it should have had the correct default. Did you save and restore a local copy of that file?
--
GeorgeClark - 03 Dec 2012
I was going from 1.1.5 to 1.1.6 by using the update package. I copied it including it's directory structure over my existing foswiki folder. I added the above mentioned preference setting in my
SitePreferences but still get that red "Error: no such theme
PatternSkinTheme" message on top of each page. Any hint what could be wrong with this?
--
MathiasWindt - 04 Dec 2012
You'll need to go through one save cycle of
configure
to get register the pattern theme. Or edit the
LocalSite.cfg
by hand and add
$Foswiki::cfg{JQueryPlugin}{Themes}{PatternSkinTheme}{Url} = '$Foswiki::cfg{PubUrlPath}/$Foswiki::cfg{SystemWebName}/PatternSkinTheme/jquery-ui.css';
$Foswiki::cfg{JQueryPlugin}{Themes}{PatternSkinTheme}{Enabled} = 1;
Alternatively remove the offending lines from the templates using the patch below:
--- templates/css.pattern.tmpl (revision 16143)
+++ templates/css.pattern.tmpl (working copy)
@@ -7,10 +7,7 @@
%IF{ "$ FOSWIKI_LAYOUT_URL" then="@import url('%FOSWIKI_LAYOUT_URL%');"}%
%IF{ "$ FOSWIKI_STYLE_URL" then="@import url('%FOSWIKI_STYLE_URL%');"}%
%IF{ "$ FOSWIKI_COLORS_URL" then="@import url('%FOSWIKI_COLORS_URL%');"}%
-</style>%IF{
- "$PATTERNSKIN_JQUERY_THEME"
- then="$percntJQTHEME{$quot%PATTERNSKIN_JQUERY_THEME%$quot}$percnt"
-}%%TMPL:P{"styles:custom_skin"}%%IF{ "$ USERLAYOUTURL or $ USERSTYLEURL or $ USERCOLORSURL" then="$percntTMPL:P{$quotstyles:user_defined$quot}$percnt"}%%TMPL:P{"styles:dynamic"}%%TMPL:END%
+</style>%TMPL:P{"styles:custom_skin"}%%IF{ "$ USERLAYOUTURL or $ USERSTYLEURL or $ USERCOLORSURL" then="$percntTMPL:P{$quotstyles:user_defined$quot}$percnt"}%%TMPL:P{"styles:dynamic"}%%TMPL:END%
--
MichaelDaum - 04 Dec 2012
Perfect... the error message is now gone. First I did backout the upgrade to 1.1.6 by restoring a tar I took before and did another attempt to go to 1.1.6 to see if I missed anything, but this ended up with the same error message on each page as before (but luckily fixed another issue I had since I upgraded to 1.1.6). Then I did a closer look to the two parameters you pointed out. They were already set as you mentioned. So did I clean them, saved config, set them back to the original values and saved config again (this forced definitively a "save cycle" with the right values). Now everything is ok. Thanks for your help!
--
MathiasWindt - 05 Dec 2012
Thank you, the error has gone.
I have added the setting to
Main.SitePreferences
, and that did not help. Then I went through the configure interface and there reset
{JQueryPlugin}{JQueryVersion}
to default and enabled
{JQueryPlugin}{Themes}{PatternSkinTheme}{Enabled}
(I had disabled it when I tried to get rid of the error). That helped.
I have also checked
System.DefaultPreferences
and the line indeed was there.
--
AlexanderSmishlajev - 10 Dec 2012
I had the same problem. I upgraded Foswiki from 1.1.5 to 1.1.6.
One save cycle was enough.
--
KlausReithmaier - 12 Dec 2012
Another way to fix this is to:
* Set PATTERNSKIN_JQUERY_THEME = foswiki
... which is the default for any other skin. The one coming with
PatternSkin seems busted.
--
MichaelDaum - 11 Jan 2013