Question
In a new installation of the current TWiki release, I'm getting an view error similar to the errors mentioned in these questions:
The error is:
Template "oopsattention" not found. Check the configuration setting for {TemplateDir}.
As instructed in the other posts, I've ensured that
LocalLib.cfg contains the absolute path to the
lib directory as the value for
$twikiLibPath, and that ownership of the
templates directory is set to the web server user (apache).
And, of course, I've checked the value for
{TemplateDir}, which is set to the full, absolute path of the
twiki/templates directory.
I am not sure what else to try, and I'd appreciate any suggestions.
Environment
--
JohnDeStefano - 20 Aug 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
last time I saw this error, my
{TemplatePath} was totally wrong - having been corrupted somewhere along the way. I'd suggest moving yout
LocalSite.cfg, and creating a new one. If the problem persists, even though your
LocalSite is the defaults plus the path settings, then
mmm
--
SvenDowideit - 22 Aug 2007
Thank you for your suggestion, and for moving my focus from
LocalLib.cfg to
LocalSite.cfg. I removed
bin/LocalSite.cfg and ran
configure again. It "guessed" all the correct path values, which were exactly the same as they were before. The
bin/LocalSite.cfg file was not been regenerated on the file system; it was created instead in
lib/, which seems to be the proper place for it. So if nothing else, I've learned the right location for this file. Thanks!
--
JohnDeStefano - 22 Aug 2007
Note that the error says to check
{TemplateDir} but it is
{TemplatePath} that is most likely corrupted.
(That's what happened to me and it took a while to figure out what to do).
--
VickiBrown - 25 Nov 2007
I just got bitten by this too. If
lib/TWiki/UI/Oops.pm would have mentioned
{TemplatePath} as well I would have found and fixed the problem
much quicker.
--
HarlanStenn - 17 Jul 2008
done and donner :
Bugs:Item5786
--
SvenDowideit - 17 Jul 2008