In the file TWiki/CommentsTemplate there is a line
%TMPL:INCLUDE{"%TWIKIWEB%.UserCommentsTemplate"}%
And I have such a
UserCommentsTemplate file
If I change the include to
%TMPL:INCLUDE{"TWiki.UserCommentsTemplate"}%
Then it gets included OK. It seems the TWIKIWEB is not expanded inside the TMPL:INCLUDE
KJL
I was just diagnosing this same problem this morning, after upgrading to 4.0.1. However, I don't think you want the
TWiki.
on there, since that defeats the search path for the template. So, I think the include line should be changed to:
%TMPL:INCLUDE{"UserComments"}%
Note that without the explicit web name, you have to leave off
Template
since the template include processing adds that portion itself (otherwise, you get a search for
UserCommentsTemplateTemplate
).
The include line for
%TWIKIWEB%.UserTemplates
should also be changed to reference
TWiki.UserTemplates
. Here, I think you
do want the explicit web, as that was the only way it worked when
UserTemplates
was in (current) use.
DAB
The fixer of
Item1412 changed the templates, and then didn't revert the change correctly which is the reason for the confusion. Reverted in SVN 8788 and uploaded
CC