You are probably calling the template request_err.cfm directly, and then
the error scope doesn't exist.
Anyway, you cannot use any CFML in a template for <CFERROR
TYPE="REQUEST">!!
Your code should be
<HTML>
<HEAD>
<TITLE>We're sorry -- An Error Occurred</TITLE>
</HEAD>
<BODY>
<UL>
<LI><B>Your Location:</B> #Error.RemoteAddress#
<LI><B>Your Browser:</B> #Error.Browser#
<LI><B>Date and Time the Error Occurred:</B> #Error.DateTime#
<LI><B>Page You Came From:</B> #Error.HTTPReferer#
<LI><B>Message Content</B>: <BR><HR width=50%>
<P>#Error.Diagnostics#<HR width=50%><P>
<LI><B>Please send questions to:</B>
<a href="mailto:#Error.MailTo#">#Error.MailTo#</A>
</UL>
</BODY>
</HTML>
I would also suggest using the cferror type="exception". The template
defined there can contain any CF you want and has the same error scope!
Pascal Peters
Macromedia Certified Instructor
Certified ColdFusion (5.0) Advanced Developer
LR Technologies, Belgium
Tel +32 2 639 68 70
Fax +32 2 639 68 99
Email [EMAIL PROTECTED]
Web www.lrt.be
-----Original Message-----
From: Kinley Pon [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 9 november 2001 1:14
To: CF-Talk
Subject: <CFERROR>
Strange...
I am following an example for using the <CFERROR> tag:
<CFERROR TYPE="REQUEST"
TEMPLATE="request_err.cfm"
MAILTO="[EMAIL PROTECTED]">
this script is in my app_globals.cfm
----------------------------------------
request_err.cfm
---------------
<HTML>
<HEAD>
<TITLE>We're sorry -- An Error Occurred</TITLE>
</HEAD>
<BODY>
<UL>
<CFOUTPUT>
<LI><B>Your Location:</B> #Error.RemoteAddress#
<LI><B>Your Browser:</B> #Error.Browser#
<LI><B>Date and Time the Error Occurred:</B> #Error.DateTime#
<LI><B>Page You Came From:</B> #Error.HTTPReferer#
<LI><B>Message Content</B>: <BR><HR width=50%>
<P>#Error.Diagnostics#<HR width=50%><P>
<LI><B>Please send questions to:</B>
<a href="mailto:#Error.MailTo#">#Error.MailTo#</A>
</CFOUTPUT>
</UL>
</BODY>
</HTML>
I am getting an error:
"Error resolving parameter ERROR.BROWSER
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."
------------------------
Have anyone else had this problem? Is there something that I need to
setup
in the administrator?
thanks - Kinley
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists