Reply to topic
Trouble using CFerror.. Please help...
will_az


Joined: 07 Feb 2008
Posts: 1
Reply with quote
Hi I've tried setting up a custom error page that sends me an email anytime someone has an error on our web site. It works some of the time but I keep getting these emails that say


Location: /loads/loads_step_2.cfm

Error Message: The value

That's it. It cuts off the error message. But only some time. I can't figure out what I'm doing wrong. I'm hopping that some ColdFusion guru can help me. Below is the code I'm using for my error catching page.


My set-up is a little complicated. Because of restrictions on what coldfusion tags I can use on the error page I just set up a simple "error kicker" page to send the info to a page that actually sends the email. (Maybe the whole system is far too over-elaborate??)




<html>
<head>
<title></title>
</head>
<body>


<!--- Use an HTML form to preserve and pass error information --->
<form Name="kicker" action="<cfoutput>#request.websiteURL#</cfoutput>error_page.cfm" method="post">
<cfoutput>

<input type="hidden" name="error_message" value="#Replace(error.Diagnostics,"<br>","#Chr(10)##Chr(10)#")#">
<input type="hidden" name="error_referer" value="#error.HTTPReferer#">
<input type="hidden" name="error_browser" value="#error.Browser#">
<input type="hidden" name="error_querystring" value="#error.QueryString#">
<input type="hidden" name="error_page" value="#error.Template #">


</cfoutput>
</form>


<script Language="JavaScript">
<!--
document.kicker.submit();
// -->
</script>


</body>
</html>
Trouble using CFerror.. Please help...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic