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.query_string,cgi.remote_addr,cgi.remote_host,cgi.remote_ident,cgi.remote_user,cgi.script_name,cgi.server_port,cfcatch.detail,cfcatch.errnumber,cfcatch.lockname,cfcatch.lockoperation,cfcatch.message,cfcatch.missingfilename,cfcatch.nativeerrorcode,cfcatch.sqlstate,cfcatch.type,server.coldfusion.productname,server.coldfusion.productversion,server.os.name,server.os.version,server.os.buildnumber">

<cfloop index="err_var" list="#err_vars#" delimiters=",">
 
<cftry><tr><td>#err_var#</td><td>#evaluate(err_var)#</td></tr><cfcatch></cfcatch></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.

Reply via email to