For that matter you can add the line allaire adds to theirs.  They have a
line with all the possible closing tags at the top of their error page right
before they display their errors.  :)

----- Original Message -----
From: "Felix Huber" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 10:33 AM
Subject: Re: trap all errors (v1.1)


> Hi Steve,
>
> a little suggestion for the act_error.cfm....
>
> I use following code in my index.cfm:
>
> <cfcatch type="any">
> Es ist ein interner Fehler aufgetreten!<br>
>
> <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]"
>  subject="Fehler" type="HTML">
>
> <table>
> <cfset err_vars =
>
"attributes.fuseaction,client.user_id,cgi.content_length,cgi.http_accept,cgi
.http_referer,cgi.http_user_agent,cgi.path_info,cgi.path_translated,cgi.quer
y_string,cgi.remote_addr,cgi.remote_host,cgi.remote_ident,cgi.remote_user,cg
i.script_name,cgi.server_port,cfcatch.detail,cfcatch.errnumber,cfcatch.lockn
ame,cfcatch.lockoperation,cfcatch.message,cfcatch.missingfilename,cfcatch.na
tiveerrorcode,cfcatch.sqlstate,cfcatch.type,server.coldfusion.productname,se
rver.coldfusion.productversion,server.os.name,server.os.version,server.os.bu
ildnumber">
>
> <cfloop index="err_var" list="#err_vars#" delimiters=",">
>
<cftry><tr><td>#err_var#</td><td>#evaluate(err_var)#</td></tr><cfcatch></cfc
atch></cftry>
> </cfloop>
> </table>
>
> </cfmail>
>
> </cfcatch>
> </cftry>
>
> All important Vars in a nice HTML Table....
>
> --
> MfG
> Felix Huber
>
>
> -------------------------------------------------------
> Felix Huber, Web Application Programmer, Webtopia
> Guendlinger Str.2, 79241 Ihringen - Germany
> [EMAIL PROTECTED]        (07668)  951 156 (phone)
> http://www.webtopia.de        (07668)  951 157 (fax)
>                               (01792)  205 724 (mobile)
> -------------------------------------------------------
>
>
>
>
>
> >
> > If you're running cf 4.5+ i'd highly recommend looking at <cferror
> > type="exception">, it's much cleaner than putting a <cftry> around EVERY
> > index.cfm file.
> >
> > try this, put this in your app_globals.cfm:
> >
> > <cfif not request.testmode>
> >         <CFERROR TYPE="EXCEPTION" EXCEPTION="any"
TEMPLATE="act_error.cfm">
> > </cfif>
> >
> > And put the attached act_error.cfm in the same directory as your
> > app_globals, then any time you get an error on your live site you will
> > be emailed the error report.
> >
> > The server logging doesn't store all the form variables, plus who looks
> > at their logs anyway?  :-)
> >
> > Steve
> >
>
> --------------------------------------------------------------------------
----
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to