Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFERROR - turning off

Status
Not open for further replies.

geokor

Programmer
Aug 16, 2000
126
US
I am trying to "turn off" the auto messages that appear after an error. I'm using CFERROR to write a generic error warning and I'd like this to be the ONLY message the user sees when an error is thrown.
I have discovered that if I write error.generatedcontent to a hidden field (<INPUT TYPE=&quot;Hidden&quot; NAME=&quot;H_gen&quot; VALUE=&quot;#error.generatedcontent#&quot;>) then it turns off almost all of the internally generated messages. But I am getting a sentence fragment at the end. The line that reads:
Please inform the site administrator that this error has occurred (be sure to include the contents of this page in your message to the administrator) where &quot;site administrator&quot; is a link to the address set in Admin, still prints everything after &quot;Please inform the...&quot;. In other words I get my custom error message and then &quot;site administrator... BUT it is NOT a link.

What I get is this:
Sorry! An error occurred... [blah blah]... If you still feel you need to contact TBT's System Administration Team regarding this error, please send an email to: gkorzeniowski@thebroadcastteam.com site administrator that this error has occurred (be sure to include the contents of this page in your message to the administrator).

Does anyone know how to prevent that error message from showing up? Thanks.

[sig][/sig]
 
yes : don't provide any value in the input field for the email adress of the administrator, in the cf administrator. If there's no value in that field, then there's no &quot;please send an email ...&quot; message anymore [sig][/sig]
 
Thanks iza. But last night I found another way. By putting a hidden field on my page, like so:
<INPUT type=&quot;hidden&quot; name=&quot;H_gencontent&quot; value=&quot;#error.generatedcontent#&quot;> and writing the generated content to it, it no longer shows the default format. I'm guessing that because I am using it, CF figures it doesn't have to. Thanks again.
George Korzeniowski [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top