> Adrian, this looks like the one I am looking
> for. I already use similar loops to the error one I am tying to use to
send
> me session, client and other variables but it will be a lot easier to
use
> CFdump. is htis new in MX?
>
> Also I didn't think you could use cfmail in the error page. has this
now
> changed? when I first did an error template I put all variables in a
form
> and submitted to another page that e-mailed me as I didn't think you
could
> use any CF in the error page.
v5 introduced the cferror type="exception". The pages that are displayed
by anything caught by type="request" and type="validation" can't display
CFML. However, if you have all three in Application.cfm put
type="exception" first and it will catch most things. The page it
displays (in my case, /errors/exception.cfm ) can display the CFML
posted previously. Cfdump was also introduced in v5.
BTW, in /errors/request.cfm, I put the following code which
automatically e-mails errors. It's nowhere near as comprehensive as
exception, though, but is better than nothing.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>An error has occurred</title>
<link rel="stylesheet" href="/css/xxxxxx.css" type="text/css">
</head>
<body onLoad="document.forms[0].submit();">
<p>Unfortunately an error has occurred on this web site.</p>
<p>Logging error...</p>
<form action="/errors/sendmail.cfm" method="post">
<input type="Hidden" name="HTTPReferer" value="#Error.HTTPReferer#">
<input type="Hidden" name="Template" value="#Error.Template#">
<input type="Hidden" name="QueryString" value="#Error.QueryString#">
<textarea name="Diagnostics">#Error.Diagnostics#</textarea>
<input type="Hidden" name="RemoteAddress" value="#Error.RemoteAddress#">
<input type="Hidden" name="Browser" value="#Error.Browser#">
<input type="Hidden" name="DateTime" value="#Error.DateTime#">
<input type="Hidden" name="MailTo" value="[EMAIL PROTECTED]">
</form>
</body>
</html>
Regards
--
Aidan Whitehall <[EMAIL PROTECTED]>
Macromedia ColdFusion Developer
Fairbanks Environmental +44 (0)1695 51775
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]