On Fri, Jul 28, 2006 at 07:04:13PM +0100, Andy Wardley wrote:
> Bill Moseley wrote:
> >Trying again -- at this time I'm looking for some hints where to look
> >to solve this.
>
> My best guess (finger-waving in the air) is that something in
> Template::Provider or the Template::Context that calls it is not
> resetting its internal error value properly. First time round the
> error gets flagged. Second time round it works, but something is
> latched onto the old error code and reports a failure when in fact
> everything worked OK.
I guess that sounds reasonable.
I re-read the internals chapter in the Badger last night, but I'm
still not very clear how all the parts work. ;) I'd like to spend
more time on this. I should be able to see in the Provider if the
file is compiled correctly and then cached, right?
I just broke a template on a different server and even restarting the
server after fixing the template the error was still reported -- I had
to purge my compiled template cache then restart the server. Not too
good.
Is there an index for DEFBLOCKS? I guess I don't understand how a
given block's code is located when called. When I define a block in
one template then it's called from another template what does TT do to
find that block? Maybe that would give me an idea where to look.
Just because I'm getting
"file error - nested_menu: not found"
makes me think that the file is getting recompiled but the reference
to "nested_menu" isn't updated. But, that's a while guess.
I'll try and get an example together. I tried once briefly and
couldn't get a test case to break. But, I didn't spend much time on
it. Sometimes it's easier to just use the existing broken code for
debugging...
> I'll put it on my TODO list of things to look at. If you have any other
> insights/observations in the meanwhile, do let me know.
Well, any tips you can provide would be very helpful -- this is
something I need to fix. I can't have someone editing a template
bring the server down -- especially if it takes purging the compiled
template cache to get the server started again.
Thanks,
--
Bill Moseley
[EMAIL PROTECTED]
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates