I was unaware of that, just setting a couple of cferror tags worked a treat,
cheers.

-----Original Message-----
From: Jake Churchill [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2007 14:25
To: CF-Talk
Subject: RE: Site-wide Error Handler

Using CFERROR tags inside the application.cfm file should override the
sitewide error handler.  So, you'd create a custom error handler and
implement it for your IP only and just dump out whatever you want to see.  I
admit this is a bit of a "hacky" solution, but it's the first thing that
came to mind.

_____ 

Jake Churchill 
Team Leader
11204 Davenport, Ste. 100
Omaha, NE  68154 
http://www.cfwebtools.com 
402-408-3733 x103 

-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 10, 2007 8:03 AM
To: CF-Talk
Subject: RE: Site-wide Error Handler

How could I use this to disable the Site-wide Error Handler (set in the
administrator) though?

-----Original Message-----
From: Jake Churchill [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2007 13:28
To: CF-Talk
Subject: re: Site-wide Error Handler

I support a site where we do this based on client IP:

<cfset unblockedIPs = 'xx.xx.xxx.xx,yy.yy.yyy.yy'>
<cfif NOT ListFind(unblockedIPs, cgi.remote_addr)>
 <cferror...
</cfif>

So, it makes sense to me that you could override the site-wide error handler
in the same way by changing the if to <cfif ListFind(unblockedIPs,
cgi.remote_addr)>

Then in the template specified in the cferror tag you could dump out certain
structures to help yourself find any errors.  

----------

Jake Churchill 
 Team Leader
11204 Davenport, Ste. 100
Omaha, NE  68154 
http://www.cfwebtools.com   
 402-408-3733 x103 

----------------------------------------

From: "James Smith" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2007 4:46 AM
To: CF-Talk <cf-talk@houseoffusion.com>
Subject: Site-wide Error Handler 

Is there a way to override the Site-wide Error Handler for a specific
template? I ask because I need to test some code on our production server
due to some third party licensing issues but my errors are of course
obscured by our error handler. I don't want to turn it off globally as that
would interfere with the actual web site I just want something to avoid it
on this one template.

--
Jay

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007
11:06









~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294458
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to