[Moin-user] Themes

Radomir Dopieralski moinmoin at sheep.art.pl
Sat Jan 23 07:35:40 EST 2010


On Sat, Jan 23, 2010 at 12:25 PM, Kai Jaeger <kai at aplteam.com> wrote:
> I am flabberghasted, I really am!
>
> I am updating MoinMoin quite frequently, so I am familiar with the
> process. However, getting from 1.8.6 to 1.9.1 caused me a
> theme-related problem.
>
> I am running a farm with 5 wikis. All of them use (and force to use)
> the same theme which got diverted from modern about three years ago.
>
> Sometimes it took me some minutes after an upgrade to work out why ALL
> wiki showed up with the default theme instead of my one, but then I
> figuered out what has changed and then ALL of them showed up
> correctly.
>
> This time it seemed that the theme as such (css and img folders) need
> to go into
> C:\Python26\Lib\site-packages\MoinMoin\web\static\htdocs\
> now.
>
> After copying my theme into this folder two of my wikis show up
> correclty - the other three don't.
> Particularly strange because I handle themes only on general level,
> not on wiki level.
>
> Advice is very welcome.

The htdocs directory was moved due to a new fallback mechanism
MoinMoin now has for serving theme's static files. If you don't set up
the "Alias" directive for the htdocs or you set it up for wrong url
prefix, MoinMoin will try to serve the files through its python
script. This may come with a slight performance penalty , although the
code uses all available optimisations and your browser only really
downloads theme files once. Still, it's recommended to set up the
"Alias" directive (or equivalent, if not using Apache) on busy sites.

To sum up, the things that I would check:
* is the url prefix configured properly in all of your wikis
* is the "Alias" directive configured properly in all of their vhosts
* view the source of your page, find the <link> tags for the .css
files and verify that you can access them with your browser
* if you can't access them, check your apache's error log to see why

I hope that helps.

-- 
Radomir Dopieralski, http://sheep.art.pl




More information about the Moin-user mailing list