![]() |
| Trouble using CFerror.. Please help... |
|
will_az
|
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... |
|
||
|


