Tim You're right, the Diagnostics doesn't give the offending template--as it did in CF5. Interestingly, it gives the line number, but not the template. Wonder if this is a KNOWN ISSUE? Makes the information a tad limited!
I hadn't noticed until just tried to make an error, as I also get the template from: <li>Template: #CFError.Template# (I find the standard error messages on MX much less valuable than on previous versions, especially those involving a query.) Keith ----- Original Message ----- From: "Tim Do" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 10:54 AM Subject: RE: site-wide error handler > Does your #CFError.Diagnostics# in the email show what included template > that the error occurred in? I just get this: > > ColdFusion was unable to determine the value of the parameter. This problem > is very likely due to the fact that either: > > You have misspelled the parameter name, or > You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE > tag. > > The error occurred while processing an element with a general identifier of > (#billID#), occupying document position (77:79) to (77:86). > > > -----Original Message----- > From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 7:45 AM > To: CF-Talk > Subject: Re: site-wide error handler > > > Mahmut > > I have site-wide error on all my sites, MX included. > Not sure what you have, but here is what I do: > 1. In Application.cfm: > <CFERROR type="EXCEPTION" template="ErrorTemplate.cfm"> > 2. Then on ErrorTemplate: > a. Just a general statement that there has been some error and that email is > being sent to the webmaster. > b. Include a CFMail (I use html as know it will be acceptable to me) to send > me an automatic email message about the error: > > <CFMail to="my email adress" > [EMAIL PROTECTED] > subject="My site Error Message" > type="HTML"> > An error was recorded on The Site's website: > <br><br> > 1. Error: > <br>#CFError.Diagnostics# > <hr width="75%"> > <ol start="2"> > <li>Date/Time: #CFError.DateTime# > <li>Template: #CFError.Template# > <li>QueryString: #CFError.QueryString# > <li>Ref: #CFError.HttpReferer# > <li>Browser: #CFError.Browser# > <li>Remote: #CFError.RemoteAddress# > </ol> > Time: #DateFormat(Now(),"m/d/yy")# : #TimeFormat(Now(),"h:mm tt")# > </CFMAIL> > > That way, the user gets a user-friendly message and I get an informative > email. > > Hope this helps. > > E. Keith Dodd > Wings of Eagles Services > www.wingserv.com > - [This E-mail scanned for viruses by declude AntiVirus Software] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4