Question
How do I fix this error?
TWiki Installation Error
Template "oopsattention" not found.
Check the configuration setting for {TemplateDir}.
This is a new installation (the OS and TWiki). The configure script reports no errors, but accessing any page results in the same problem.
TemplateDir is set correctly (as is the lib entry in /bin/LocalLib.cfg)
In the httpd logs, the only clue I see are several Perl errors (attached)
My configuration screen should also be attached to this topic.
Environment
--
MichaelDillon - 13 Feb 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.
Check the file permission on the directory and files of the
twiki/templates
dir; make sure they are readable by the webserver user (such as
nobody
.)
--
PeterThoeny - 13 Feb 2007
I tried it. To test, I set everything (guo) to be readable by everyone. Then, I tried changing the owner/group to 'apache', 'nobody', and also to 'root'. No change.
Is there a way to turn on verbose debug logging?
Also, in the httpd log, is the perl error significant?
"Subroutine TWiki::Configure::Checker::tmpnam redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65"
--
MichaelDillon - 14 Feb 2007
There were several paths in
LocalSite.cfg that pointed to incorrect places on the server. These entries weren't available for editing through the configure script, and were not flagged (or updated?) when running it.
--
MichaelDillon - 15 Feb 2007
I had the same problem. I was able to fix it by changing the paths set in the {TemplatePath} section under the "Miscellaneous settings" of the configure script. There are several template paths set here that use the default "/home/http" prefix for the TemplatePath, even after you set the Template dir. If you change all of these to your real TemplateDir path, you should be good to go. Hope this helps.
--
RonJohnson - 15 Feb 2007
I had the same problem on Windows XP + Apache 2 + Cygwin. Filling in the paths in the TemplatePath section in Misc Settings solved it for me too.
--
AshwinN - 06 Jun 2007
Filling in the
TemplatePath solved the same issue for me. You have to be careful filling in the field, because there are several instances of 'NOT SET' that appear in the string, that have to be replaced with correct path to the 'templates' directory. Here's an example of the string, assuming '/twiki/templates' is the path to the templates directory: /twiki/templates/$web/$name.$skin.tmpl, /twiki/templates/$name.$skin.tmpl, /twiki/templates/$web/$name.tmpl, /twiki/templates/$name.tmpl, $web.$skinSkin$nameTemplate, TWiki.$skinSkin$nameTemplate, $web.$nameTemplate, TWiki.$nameTemplate
--
TWikiGuest - 13 Jul 2007
See
TemplateOopsAttentionNotFound
--
VickiBrown - 25 Nov 2007
You can also replace in the
TemplatePath all 'NOT SET/' by '$TWiki::cfg{TemplateDir}'
--
FrancoisGoirand - 17 Apr 2008
Hi, I´m having this messages in my Apache error log :
[Fri Jun 13 10:45:17 2008] [error] [client 192.168.20.172] Subroutine TWiki::Configure::Checker::tmpfile redefined at C:/perl/lib/Exporter.pm line 65., referer:
http://ntbkacer/twiki/bin/configure
[Fri Jun 13 10:45:17 2008] [error] [client 192.168.20.172] at C:/perl/lib/POSIX.pm line 19, referer:
http://ntbkacer/twiki/bin/configure
[Fri Jun 13 10:45:17 2008] [error] [client 192.168.20.172] Subroutine TWiki::Configure::Checker::tmpnam redefined at C:/perl/lib/Exporter.pm line 65., referer:
http://ntbkacer/twiki/bin/configure
[Fri Jun 13 10:45:17 2008] [error] [client 192.168.20.172] at C:/perl/lib/POSIX.pm line 19, referer:
http://ntbkacer/twiki/bin/configure.
I am trying to switch the user interface from English to Spanish, but I haven´t managed to include other languages in my Twiki ´s drop-down list (upper-right corner on the main Twiki page)
From what I read, this may seem a Twiki-Perl miscommunication...but I can´t figure out how to resolve it.
Also I checked my
TemplatePath that is set just like TWiki Guest suggested.
Thanks in advance for any help
--
JuanLussich - 13 Jun 2008
RonJohnson's post on 15 Feb 2007 saved my day.
--
Anton Kiggundu - 2015-03-20