Skip to main content
Known Participant
October 29, 2008
Question

infrequent and generic error on <cfinclude>

  • October 29, 2008
  • 2 replies
  • 966 views
I'm experiencing an intractible and difficult-to-explain problem with a framework-level coding structure.

My index.cfm ends with a <cfinclude> tag that brings in the page template. It works just fine - *most* of the time. Every now and then that line of code throws a very generic error that only reports the line number.

The code reads: <cfinclude template="#PageInfo.Page.PageTemplate#">

I assure you that the variable contains an absolutely valid template value. I have proven this over and over.

Instead of attempting to explain the truly arcane and numerous factors that I've discovered, let me ask a simple question: Does anyone know why <cfinclude> would throw a generic error when the template most certainly exists? How can I address this?
This topic has been closed for replies.

2 replies

Inspiring
October 31, 2008
In index.cfm, add cfdump pageinfo to the mail you send yourself. In application.cfc, cfdump the arguments.
Inspiring
October 29, 2008
You could always do a cftry, and when it fails, dump the cfcatch structure into an email and send it to yourself. If nothing else, it might give you some more information.
doncxAuthor
Known Participant
October 29, 2008
Good Idea. I'll give it a (cf)try.

Thanks.