> If an error is caught by cftry/cfcatch is it logged in the server
> or application log?
No, it's not, unless you do it yourself with CFLOG (in CF 5). In fact, it's
helpful to distinguish between exceptions (certain bad things that happen at
runtime) and errors. CFTRY and CFCATCH are used to ha
Yes
- Original Message -
From: "Duane Boudreau" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 8:38 PM
Subject: CFTry/CFCatch
> If an error is caught by cftry/cfcatch is it logged in the server or
> application log?
>
> TIA,
> Duane
>
>
>
~~
I believe it's possible.
Even simpler, if all your cfcatch sections are the same, is put the top into
Applicaiton.cfm and the bottom into OnRequestEnd.cfm.
Probably not the best practice in the world, but should be easier then
converting hundreds of already written templates.
--
Ia
Custom tag?
Timothy Heald
Information Systems Manager
Overseas Security Advisory Council
U.S. Department of State
571.345.2319
The opinions expressed here do not necessarily reflect those of the U.S.
Department of State or any affiliated organization(s). Nor have these
opinions been approved or
Why not just use a tag in your application.cfm?
- Original Message -
From: Dave Sueltenfuss <[EMAIL PROTECTED]>
Date: Thursday, September 11, 2003 11:12 am
Subject: CFTry/CFCatch
> Good Afternoon
>
> Is it at all possible to put CFTry/CFCatch into a page by using two
> include statement
> Is it at all possible to put CFTry/CFCatch into a page by
> using two include statements? (one at the top, and one at
> the bottom) I am trying to setup better error handling on
> my site, but do not want to have to put the full code in
> each page, just include it. This way, If I need to add
is exactly what you are looking for!
Kola Oyedeji
Web developer
Macromedia Certified Advanced ColdFusion 5 Developer
ekeda ltd
http://www.ekeda.co.uk
(+44)020-8429-7300
> -Original Message-
> From: Kris Pilles [mailto:[EMAIL PROTECTED]]
> Sent: 04 February 2002 14:52
> To: CF-Talk
> Su
> -Original Message-
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: 04 February 2002 15:20
> To: CF-Talk
> Subject: RE: Cftry/cfcatch
>
>
> is exactly what you are looking for!
>
> Kola Oyedeji
> Web developer
> Macromedia Certified Advanced ColdF
> Has anybody written a custom tag that makes using cftry/cfcatch
> less cumbersome while still providing good error reporting?
I'm not sure what this would entail. Personally, I don't think exception
handling is especially cumbersome - although it is kind of verbose.
Dave Watts, CTO, Fig Leaf
ailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 9:55 AM
To: CF-Talk
Subject: RE: cftry/cfcatch wrapper?
> Has anybody written a custom tag that makes using cftry/cfcatch
> less cumbersome while still providing good error reporting?
I'm not sure what this would entail. Per
There are no requirements on the order of cfcatch statements that I'm aware
of.
- Original Message -
From: "Jeffry Houser" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 6:45 PM
Subject: CFTRY / CFCATCH questions
>
>I know that at least one CFCATC
Jeffry,
Your last statement prior to the closing try needs to be a catch. If you are
running multiple catches and you also want to catch all, the all statement
needs to come last.
- Chris
Christopher Cortes |Coming Q3 2001:
Consultant |
Stonebridge T
der, ad nauseum, until
the last catch (which should probably be an "ALL" JIC)
chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com
-Original Message-
From: Bryan LaPlante [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:00 PM
To: CF-Talk
Sub
> that's incorrect, actually. it will catch them in the order
> defined. so if there is an "ALL" first, there will never be
> any other. basically, it starts at the first CATCH, compares
> exception types. if it is a match, that handler occurs, if
> not, it examines the next one in order, ad
> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 24, 2001 1:20 PM
> To: CF-Talk
> Subject: RE: CFTRY / CFCATCH questions
>
>
> > that's incorrect, actually. it will catch them in the order
> > defined. so
> > I'd argue that you're best off putting TYPE="all" last anyway,
> > though.
>
> And on another note, if you use type="ANY" instead of "ALL", it
> will work ;o) Sorry, I couldn't resist.
>
> I love error handling in CF, especially in 4.5+, since it's very
> advanced for a "tag based language"
First, you can't put CFCATCH tags in the middle of a CFTRY. I has to be the
last tag in the CFTRY.
I would do need to do this:
... queries ...
-Talk
Subject: RE: CFTRY/CFCATCH question
First, you can't put CFCATCH tags in the middle of a CFTRY. I has to be the
last tag in the CFTRY.
I would do need to do this:
... qu
> I have a template with a multi-part update (several tables). I have
> the entire process wrapped in and . After each
> individual update, I have a . My question is if something
> fails, and I , do I need to short-
> circuit the rest of the transaction, or does processing stop
> automatically
that one TRY/CATCH should be sufficient...
Once again, learn something (lots of things) daily on this list!
Thanks again!
Marwan
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 12:31 PM
To: CF-Talk
Subject: RE: CFTRY/CFCATCH question
>
afaik, that's all. there doesn't need to be anything between the
block.
but wouldn't you want to be setting some variables to take the place of
those that didn't get passed in by the webservice?
(just curious) :)
- Original Message -
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk"
!
...tony
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 12:00 PM
To: CF-Talk
Subject: Re: cftry/cfcatch question
afaik, that's all. there doesn't need to be anything between the
block.
but wouldn't you want to be setting s
Yes, you can also get a little fancy by nesting blocks inside the block of another . This would allow you to try a web service two or three times, or alternate web services or something before you gave up as unworkable.
do something
do something again
ahh yeahgood idea.
thanks!
...tony
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 12:05 PM
To: CF-Talk
Subject: RE: cftry/cfcatch question
Yes, you can also get a little fancy by nesting blocks inside
the block of another . This
Tony,
On 4/15/2004 at 11:52, you wrote:
TW> do I only need to have a blank cfcatch pair, with nothing in
TW> between?
This will suffice:
~ Ubqtous ~
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
excellent.
thanks.
...tony
-Original Message-
From: Ubqtous [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 12:44 PM
To: CF-Talk
Subject: Re: cftry/cfcatch question
Tony,
On 4/15/2004 at 11:52, you wrote:
TW> do I only need to have a blank cfcatch pair, with nothing in
not that I've ever experienced. Try and catch have some overhead, but it's
never been significant enough for me to notice
~Simon
> Simon Horwith
> Allaire Certified ColdFusion Instructor
> Certified ColdFusion Developer
> Fig Leaf Software
> 1400 16th St NW, # 220
> Washington DC 20036
> 202.79
> If I've got a query and for some odd reason the database
> server goes down, of course my query will fail.
> How can I catch the error due to the server being down and display a
> static/temp page instead?
> My code is below and it appears to be correct but it will not
> catch the error and redi
Strange, seems okay to me. We use this in CF 4.5 and it works okay catching if the
Oracle database (using native drivers) goes down.
I'd still like more granularity, so if the db is actually down (as opposed to merely
erroring) I can put up a notice.
If I were you, I'd break down what you h
Message-
From: Chris Norloff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 9:45 AM
To: CF-Talk
Subject: Re: CFTRY/CFCATCH Database errors
Strange, seems okay to me. We use this in CF 4.5 and it works okay catching
if the Oracle database (using native drivers) goes down.
I'd
What sort of error were you creating in your custom tag?
If it's an error that occurs when the server tries to compile the code from
CFML to Java then the try/catch won't do anything. If it's an error that
occurs because of a runtime error such as a non-existant variable then it
should catch the e
Thanks Spike, I got it working now !
Andrew.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
If there is an error in your error handling code you will get a hard error. It
may be because you are still attempting to work with the corrupt file in
your catch.
Change this:
To this:
...and see if it makes the error go away.
-Cameron
On Tue, Sep 9, 2014 at 1:02 PM, Robert Harrison
wrote
http://www.austin-williams.com/blog
Twitter: http://www.twitter.com/austin_williams
-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com]
Sent: Tuesday, September 09, 2014 1:25 PM
To: cf-talk
Subject: Re: CFTRY / CFCATCH not working
If there is an error in your e
Any particular reason you are not using cfscript versions of try/catch?
Old version of CF?
try {
code goes here
}
catch(Any excpt) {
code goes here
}
Given any thought to a different image processor to see if you get a
different result? I'm thinking cfimage, assuming you are using at leas
From: Cameron Childress [mailto:camer...@gmail.com]
> Sent: Tuesday, September 09, 2014 1:25 PM
> To: cf-talk
> Subject: Re: CFTRY / CFCATCH not working
>
>
> If there is an error in your error handling code you will get a hard
> error. It may be because you are still attempting t
It's a seven year old site but it's on a CF10 server. Tried using CFIMAGE but
it's too slow.
Robert Harrison
Director of Interactive Services
Austin & Williams
Advertising I Branding I Digital I Direct
125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788
T 631.231.6600 X 119 F 631.434.
Looks like the code you are using is bhImgInfo() from cflib, with only very
slight changes. There's more than one way to skin that cat:
https://gist.github.com/vikaskanani/6256084
looks more robust in the catch department. Maybe a little too robust, but
it also separates out the file read from
not an answer to your question, but have you tried using ImageMagick or
cfx_openimage instead ?
I have found both to be more reliable than CF's built in image handling.
On Tue, Sep 9, 2014 at 6:56 PM, Robert Harrison
wrote:
>
> It's a seven year old site but it's on a CF10 server. Tried using
> Is it best to wrap the try/catch around just the code that may
> be the problem, or to wrap the entire template? It seems to make
> more sense to me to wrap just the code that's likely to cause a
> problem (and the Adv. CF course material leads me to believe that
> too). However, I've seen s
Parse errors are not caught with cftry/cfcatch. Reason being, the page
couldn't compile, so it couldn't even try/catch anything.
-nathan strutz
http://www.dopefly.com/
Micha Schopman wrote:
> I have errors which slip through ctry tags. The provided cfcatch part is not
> executed and the source s
>Parse errors are not caught with cftry/cfcatch. Reason being, the page
>couldn't compile, so it couldn't even try/catch anything.
>
>-nathan strutz
>http://www.dopefly.com/
>
>Micha Schopman wrote:
>>
There are no parse errors involved. An expired session variable, in this case
session.culturei
I found while googling for similair experiences another person having issues.
He seems to have a similair issue with cfcatch, cftry.
My code can be tested on everyone machine, because it should simply trigger the
cfcatch part when the session call errors.
The corresponding post from Tony Weeg
h
Because of the loop. There's only one CFMAIL tag, so if it errors,
it's done executing. If you want it to continue, you need this:
cheers,
barneyb
On Thu, 10 Feb 2005 19:39:33 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> hi there.
>
> i have a set of code that get
Do you mean you are using cfmail's query attribute, or you are using a
cfloop over a query result set with a cfmail inside of it? Seems like
the latter but I thought I'd better ask. If the former its going to
hit the try/catch and that'll be the end of the cfmail operation, I
believe.
Here's a c
sup barney... thats what ive got...
select email from regions where email like '[EMAIL PROTECTED]'
This is a test, please
disregard.
This worked!
This error happened on
#DateFormat(Now(),'mm/dd/')#
Here is what happened:
Message
st as Matt said previously.
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 7:09 PM
To: CF-Talk
Subject: Re: cftry/cfcatch around cfmail
sup barney... thats what ive got...
select email from regions where email like '[
hey matt...
and i use the same, as ive implemented your trickle code into a clients
email blaster :) but not for this one...
this is much smaller volume, maybe 200 or so at a time, and my mail
server @ my office works fine with this volume...
i sent the code in a follow up to barney's email...
I'd trust the output over getting emails for evaluating whether the
code is doing what it should. Most likely, the mail isn't getting
delivered properly, though CF is sending it out.
cheers,
barneyb
On Thu, 10 Feb 2005 20:09:05 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> sup barney... thats wh
ake a little more sense to send a single email with all the
> errors than an email for each error. Just as Matt said previously.
>
> -Original Message-
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 7:09 PM
> To: CF-Talk
> Subject: Re:
not do... i meant, look like...
whats the code inside that file?
tw
On Thu, 10 Feb 2005 21:23:50 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> matt.
>
> how does that differ from what im doing?
>
> just wondering... also, what does the inc_errcatch_mail.cfm block do?
>
> tw
>
>
> On Thu, 1
matt.
how does that differ from what im doing?
just wondering... also, what does the inc_errcatch_mail.cfm block do?
tw
On Thu, 10 Feb 2005 17:02:45 -0800, Matt Robertson
<[EMAIL PROTECTED]> wrote:
> Do you mean you are using cfmail's query attribute, or you are using a
> cfloop over a query
On Thu, 10 Feb 2005 20:18:09 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> so, by what you say, in a cfmail scenario, any exceptions basically
> just crash the whole operation?
N :-). What Barney said happens... or is supposed to. He boiled
down the same sort of layout I posted and apparentl
e -
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Thursday, February 10, 2005 9:08 PM
Subject: Re: cftry/cfcatch around cfmail
> the problem is, its a bad email address, so i dont know until the
> email tries to go out... and its like i get an IM
il address
> is Invalid, please correct"
>
> The above is a working solution.
>
> HTH.
> Joe
>
>
> - Original Message -
> From: "Tony Weeg" <[EMAIL PROTECTED]>
> To: "CF-Talk"
> Sent: Thursday, February 10, 2005 9:08 PM
What happens if you allow the messages to be spooled? Does that
alleviate the issue?
cheers,
barneyb
On Thu, 10 Feb 2005 22:00:30 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> joe,
>
> this isnt the problem...
>
> the problem is that there is an invalid email address in there
> , not in its f
> On Thu, 10 Feb 2005 21:23:50 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> > how does that differ from what im doing?
It doesn't in principle, but maybe your cfmail code is the problem.
That spoolenable is out of the ordinary, at least to me.
As for my catch code, thats sorta complicated. I c
rsday, February 10, 2005 10:01 PM
To: CF-Talk
Subject: Re: cftry/cfcatch around cfmail
joe,
this isnt the problem...
the problem is that there is an invalid email address in there
, not in its form, or whatever, it'll validate just fine, its just that
the mail server rejects it... the email
-
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 10:01 PM
> To: CF-Talk
> Subject: Re: cftry/cfcatch around cfmail
>
> joe,
>
> this isnt the problem...
>
> the problem is that there is an invalid email address in there
> , not in its
hey matt.
if i dont spoolenable... my imail server just doesnt work... with cfmx
they problem isnt an invalid format of an email address, its the problem that
the email address that its choking on is no longer an email address to
my mail server.
which is the same mail server that cfmx sends t
:( ok, i must say, it wasnt anything, i had a rule in my outlook that
sent mail from myself, to myself, into a folder, that is no longer
there :( what this means? outlook didnt bug, and that was my
problem.
testing with another address, all is well, and it looks like my code
is workign after all
On Fri, 11 Feb 2005 10:52:29 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> if i dont spoolenable... my imail server just doesnt work... with cfmx
Hmmm... I've used Im,ail for years with CF. I'm running Imail 8.11
with MX 6.1 Updater 1 (soon to be CF7 :D)
In fact now that I have converted my
8.00 2003.03.03.28
port 25
with spoolenable = no all systems go.
with spoolenable = yes or not there at all since its default anyway,
all systems NO GO.
tw
On Fri, 11 Feb 2005 09:33:05 -0800, Matt Robertson
<[EMAIL PROTECTED]> wrote:
> On Fri, 11 Feb 2005 10:52:29 -0500, Tony Weeg <[EMAIL PRO
Well, that ain't right. I know Imail releases tend to be pretty
buggy, so I didn't upgrade until 8.10. What you are experiencing may
be due to the early-release nature of the s/w.
I'm only dimly aware of spoolenable and its implications. Anyone with
a better understanding of it and mail servers
uot;CF-Talk"
Sent: Thursday, February 10, 2005 10:00 PM
Subject: Re: cftry/cfcatch around cfmail
> joe,
>
> this isnt the problem...
>
> the problem is that there is an invalid email address in there
> , not in its form, or whatever, it'll validate just fine, its just t
idate just fine
>
> What are you using to validate the email address, i dont see where
> are validating the email address comming out of the DB Query.
>
> > > > >
> To: "CF-Talk"
> Sent: Thursday, February 10, 2005 10:00 PM
> Subject: Re: cftry/cfcatch
You will need to put a catch type in... try
(all the stuff)
arhhh!!
-Original Message-
From: Scott Weikert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 18:00
To: CF-Talk
Subject: cftry/cf
> A fellow co-worker is working on adding some CFTRY/CFCATCH
> goodies to a site
> we're working on. It's a semi-FuseBox site - not 100% Fusebox but close
> enough for gub'mint work.
>
> So what we're trying:
>
>
>
> (all the stuff)
>
> blah blah
>
>
>
> and it doesn't seem to be catching an
By default the exception type is "APPLICATION" which is only developer
raised exception, ie. cfthrow, cfrethrow.
Syntax for CFCATCH:
http://www.allaire.com/cfdocs/CFML_Language_Reference/2_ColdFusion_Tags/lr2_
101.htm
Exception types:
http://www.allaire.com/cfdocs/Developing_Web_Applications_w
No issues. And a catch type is not needed. When the
catch type is left out, then the default is "any".
I think the issue here is that there is a difference
between exceptions and errors. Errors occur at first
pass compilation before the code on the page is
actually run. Exceptions occur at run
It sounds like the data does not exist in the variable, but that the
variable does exist... is that possible?
A better way to do that would be to use structKeyExists() around your
variables and test for them first.
On 11/11/05, John Beynon <[EMAIL PROTECTED]> wrote:
> ok, here's a chunk of code;
nevermind, senior moment - need more coffee!
> ok, here's a chunk of code;
>
> Prices: £#numberformat(application.siteCodes.
> sitecode[thissitecode].pricerange.minprice)#
> - £#numberformat(application.siteCodes.sitecode[thissitecode].
> pricerange.maxprice)#
>
>
> If the data is not present i
On 11/11/05, John Beynon <[EMAIL PROTECTED]> wrote:
> ok, here's a chunk of code;
>
> Prices:
> £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)#
> -
> £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#
>
>
> If the data is not prese
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
> So...how can a standard CF error be displayed when a
> CFTRY/CFCATCH is setup specifically to NOT show actual CF
> error messages?
What kind of exception are you catching with the cfcatch tag? Any? Database?
Check that first...
Mike
~
When it blows inside of /Application.cfm, which isn't subject to
try/catch. I try to but up a backup cferror statement inside of that
file as high up as possible for just that reason.
On Apr 7, 2005 10:18 AM, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> Hey All,
>
> PROBLEM:
> An Oracle "connect
Another thing: I *think* a site-wide error handler in place would act
as a backup as well. And this could happen inside of OnRequestEnd.cfm
too.
--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com
~|
Logware (www.logw
. Tangorre" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Thursday, April 07, 2005 10:25 AM
Subject: RE: CFTRY/CFCATCH exposing CF errors?
>> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
>> So...how can a standard CF error be displayed when a
>> CFTRY/CFCATCH is
> When it blows inside of /Application.cfm, which isn't subject to
> try/catch. I try to but up a backup cferror statement inside of that
> file as high up as possible for just that reason.
hmmm..not 100% sure...but I think the error happened outside of
application.cfm
Bryan Stevenson B.Comm.
V
> When it blows inside of /Application.cfm, which isn't subject to
> try/catch. I try to but up a backup cferror statement inside of that
> file as high up as possible for just that reason.
Matt you sem to say CFTRY/CATCH doesn't work in Application.cfm..well I just
tested...and it does?? ;-)
B
We use a site-wide error handler (and generally don't use cfcatch), but I seem
to recall that an error in the error handler code itself can cause the original
error to be displayed.
Mark
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 0
I think Matt was refereing to where in the applicatiion.cfm file the cferror
tag is located. errors above the cferror tag will not be caught. I use a
sitewide one, catches everything.
D
On Apr 7, 2005 2:17 PM, Bryan Stevenson <[EMAIL PROTECTED]>
wrote:
>
> > When it blows inside of /Applicati
Matt,
We also had this type of issue a while ago, were cftry/cfcatch didn't
suppress the error. We tried everything but with no results on the cf
side. We did a workaround in the presentation layer (the logic consisted
in outputting raw xml strings). It was definitely a bug, but we couldn't
repro
> When it blows inside of /Application.cfm, which isn't subject to
> try/catch. I try to but up a backup cferror statement inside of that
> file as high up as possible for just that reason.
My bad...it is crashing inside Application.cfm...so it's off to implement a
CFERROR solution
Thanks Matt
On Apr 7, 2005 10:48 AM, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> Thanks Matt ;-)
No problem, and you were right that something was off in that
try/catch thing I was talking about. I was going off hazy memory.
What you can't do is put your try in /Application.cfm and your catch
in OnRequestE
Hey Matt...it does work..and it's already in production ;-)
Thanks
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
On Apr 7, 2005 2:37 PM, Matt Robertson <[EMAIL PROTECTED]> wrote:
> What you can't do is put your try in /Application.cfm and your catch
> in OnRequestEnd.cfm. Thinking on it I can't see a reason why
> /Application.cfm can't have its own try/catch, unless there's a cf
> rule somewhere that says so
I've been playing around with this and I see a problem can't solve. I
can force a raw CF error to screen, regardless of whether you have
try/catch, a site-wide error handler or cferror (or all three).
I start out with this /Application.cfm
#haha.notexists#
which has a query loop to a nonexis
Correct me if I misunderstood what you are getting with your last example
but from what I can tell the explanation below seems reasonable to me
Because your last example doesn't even get compiled due to the closing >
being missing on the cfoutput, CF doesn't see any code that you have in that
and it's very unlikely (even with minor testing) that a malformed tag
would make it into production ;-)
I think Paul's answer is a good one for all to remember..CF can only do so
much...and it sure can't read your mind and extrapolate what the rest of the
code in the file should be...hehe
I've got part of the answer. Its a bug in ColdFusion. In the
previous example I created an error just in front of the CFCATCH
statement, so the value of error.message is
Invalid token 'c' found on line 6 at column 2.
Line 8 is and is the highlighted line on the raw
CF error message.
If instea
Paul,
What I was getting at is not that the template wasn't doing its catch
thing due to malformed CF. I understand why that won't compile. The
issue I found is that I can also cause the sidte-wide error handler to
break as well, but break in an odd way that exposes a raw CF error
message AFTER
Are you declaring your site wide error handlers in the application file or
are you declaring them in the CFADMIN area?
The thing with the errors that you are creating is that the two mods to the
code you made will have very different results and I don't think the error
handlers that are declared i
I am setting up the site-wide error handler in the CF Administrator.
Its called whammo.cfm and its code is displayed in my original post on
this.
Then there's the try/catch error handler. Thats oops.cfm and its
declared at the bottom of /Application.cfm. It has the same code as
whammo.cfm only
Ok,
I follow all that... I'll see if I can re-create it here...
Paul
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
cli
And if you can create a relatively self-contained reproducible test
case with instructions, send it to me and I'll test it on various CF
versions and if it's still broken in CF7, I'll file a bug!
On Apr 7, 2005 5:05 PM, Paul Vernon <[EMAIL PROTECTED]> wrote:
> I follow all that... I'll see if I ca
Here's a gif of what it looks like on my dev server
http://foohbar.com/kaboom/errorscreen.gif
And to stir the pot further, Its NOT doing it on my live server. I
uploaded the same bad code to a live web site and my own site-wide
error handler works fine. It may be that the for-real error handler
OK its very simple code. I'll send it over. Mostly what I posted
already. But it doesn't happen on my live server. Only my dev box
here on my desktop, where I could put in a simple s/w error handler on
a relatively clean system. The live box is probably better patched
than this desktop.
--
-
ler code.
I've tested this in MX 6.1 fully patched and MX 7.
Paul
-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Friday, 08 April 2005 01:17
To: CF-Talk
Subject: Re: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?
Here's a gif of what it looks like on m
Your first example is correct cfcode. Maybe a typo when you wrote the
msg? Should be
#cgi.http_user_agent#http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201965
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subsc
Sorry, my typo in the mail... I did try both combinations of incorrect code
and didn't see a raw dump of an error.
My CF version is reported as 6,1,0,hf56580_611 which is I believe as of now,
a fully patched box. This is the dev box and it gets everything that
production gets at least a week befor
1 - 100 of 102 matches
Mail list logo