]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/cgi_does_not_use_templatedir_overlay.mdwn
new bug, new branch
[ikiwiki.git] / doc / bugs / cgi_does_not_use_templatedir_overlay.mdwn
1 I have set
2
3      templatedir => "/srv/apache2/madduck.net/templates",
4
5 in ikiwiki.setup and put a custom ``page.tmpl`` in there, then called ``ikiwiki --setup`` and verified that it works. It even works when I push to the Git repo and let the receive-hook update the wiki.
6
7 However, when I make a change via the CGI (which has been created by the last setup run), it applies the default ``page.tmpl`` file to all pages it updates.
8
9 > This issue can arise in at least two ways:
10
11 > 1. A permissions problem with the templatedir that prevents ikiwiki from
12 >    accessing it. If it can't access it, it silently falls back to using
13 >    templates from the default directory.
14 > 2. A templatedir that doesn't have an absolute path. In this case ikiwiki
15 >    will look relative to *somewhere*, which will sometimes work and
16 >    sometimes not. Clearly not a good idea.
17 >
18 > So far that's the only ways that I can see that this could happen.
19 > It would be possible to make ikiwiki try to detect these sorts of
20 > problems; it could check if the templatedir exists, and check that it's
21 > readable. This would add some extra system calls to every ikiwiki run,
22 > and I'm not convinced it's worth it. --[[Joey]]
23
24 >> Closing this bug since I never heard back that it was not one
25 >> of the above two problems, and I consider both problems local
26 >> configuration errors. --[[Joey]] [[done]]