[Templates] Couldn't render template "file error - page_content: not found
Bill Moseley
moseley@hank.org
Wed, 26 Jul 2006 23:25:09 -0700
Trying again -- at this time I'm looking for some hints where to look
to solve this.
If I modify my "common.tt" and cause a syntax error then TT reports:
Couldn't render template "file error - parse error - common.tt line unknown: unexpected token (submenu)
[% $item.id %]"
And that will continue as long as the file has a syntax error.
But, if I go in and fix the error in common.tt then I get this
instead:
Couldn't render template "file error - page_content: not found"
Couldn't render template "file error - nested_menu: not found"
Couldn't render template "file error - nested_menu: not found"
"nested_menu" is a BLOCK in common.tt, and "page_content" is a block
in the initial template passed to process() (as a file handle).
(The reason both are generating errors is because the application is
trying to use TT to generate the error page, too.)
At this point I need to restart the server to get TT to re-load the
templates.
What should I look at to see what's happening? Seems like common.tt
is getting recompiled ok. But, something is confused because
_fetch_path() is being called with "page_content" and "nested_menu"
which only happens after common.tt gets recompiled.
--
Bill Moseley
moseley@hank.org