Thread

Posted on Tue May 17 00:31:21 2005 by turnpast
TT chokes on undefined object variables in some environments and not others.
Anyone know about Template-Toolkit here? Here is my problem:

My application is just about complete and runs just dandy on the development server. I move it to the production server and some of my page stop working -- OK, no big deal, I start track the problem down. I present a number of perl objects and have (perhaps mistakenly) relied on TT's tolerance of undefined values. When I try to access something that does not exist I expect to get undef and I do (and I have for about 4 years of TT usage now). Up on the production box it starts puking errors: undef error - Can't locate object method "blah" via package "blah" at....

I have updated to the newest version of TT on both boxes. The dev is Linux and the production BSD. I tried setting the TOLERANT flag in the TT config. it seems to be behaving like I have the DEBUG_UNDEF flag set (I do not).

I anyone knows about the internals of TT or has dealt with anything similar (or perhaps knows a place where I might find someone who does know) I would be greatful for some help.

Thanks for reading.
Direct Responses: 468 | Write a response
Posted on Tue May 17 18:36:49 2005 by davorg in response to 462
Re: TT chokes on undefined object variables in some environments and not others.

You'd be better off asking your question on the TT mailing list. That's where all the TT experts hang out.

See http://www.template-toolkit.org/mailman/listinfo/templates

Dave...

Write a response