Knowing when to call it a day...

This post is more than 2 years old.

Have you ever spent a day where you worked so hard that by 2 or 3 - you just knew that your productive output was done. That it was time to just give it up for the day and return fresh tomorrow?

How about a day when you hit that at - oh - let's say 8 o'clock?

This morning I was working on a file named test3.cfm. Every time I'd hit it though the data from test2.cfm would load. This was a PDF so it was pretty confusing. I tried to hit test.cfm and the same happened. I thought - maybe something is cached, but I saw the same problem in multiple browsers. I restarted ColdFusion, OS X, nothing worked. To make matters worse, files in subdirectories work fine.

Now we all know what I should have checked - the Application.cfc file, and I did.... quickly, but didn't see anything odd in onError or onRequest start.

I even reinstalled ColdFusion! Which luckily takes about 45 seconds now with ColdFusion 8.

Finally I thought it would make sense to take one more quick look at my Application.cfc file. Guess what I saw?

Outside of all the methods, right above the closing cfcomponent tag, was:

<cfinclude template="test2.cfm">

My eyes just... never saw it I guess since it wasn't in a method. Why did I have that code there? I had done a test a few days ago to see what would happen if you did an include outside of any method in an Application.cfc. In case folks are curious (and if you haven't figured it out now) it runs on every request.


In my defense, I had been working on test2.cfm the last few days and had never even ran another file. Of course, it could also be the case of beer I helped take care of last night. (Nah. That couldn't be it.)

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA

Archived Comments

Comment 1 by Nick posted on 7/13/2007 at 8:58 PM

That happens to me all the time with CSS.

"Why the heck is that text BLUE?"

Comment 2 by existdissolve posted on 7/13/2007 at 9:08 PM

Beer is wonderful.

Comment 3 by Sid Wing posted on 7/13/2007 at 9:28 PM

AHA! That meane the problem was actually a "case sensitivity" issue - LOL

Comment 4 by M. McConnell posted on 7/13/2007 at 9:34 PM

Programmers are supposed to sustain themselves on Coca-Cola, Twinkies, and Snickers Bars. I believe this edict may even appear in the Geneva Convention. You have given us a perfect example of the pandemonium that ensues when you break the rules.

Comment 5 by Rick Smith posted on 7/13/2007 at 10:28 PM

was watching your forum posts this morning and knew it'd be something small by the the third reply. I hate days like that, but they happen to everyone. Nice to know you're human. ;)

Comment 6 by Peter Boughton posted on 7/13/2007 at 10:48 PM

Nick: Get the Firebug plugin for Firefox - it tells you all the CSS rules that apply to any element.

(I think you can do the same in IE with the latest Developer Toolbar, but it doesn't run on my machine so I'm not sure)

Comment 7 by Raymond Camden posted on 7/13/2007 at 10:52 PM

+1 on Firebug. If anyone is using FF w/o Firebug, you are really missing out.

Also - Firebug lets you use Coldfire. Everyone knows what Coldfire is, right?

Comment 8 by Ben Nadel posted on 7/13/2007 at 10:57 PM

My favorite is when people spend an hour trying to figure out why their changes aren't taking affect before they finally realize that they are updating the development site and then viewing the production site in their browser :)

Comment 9 by Jared Rypka-Hauer posted on 7/14/2007 at 2:31 AM

So why does your blog URL still contain "Jedi"?

You told me that we should officially rescind that title until you've rebuilt the Stupid FooBar Points you spent this morning.


No worries, really... it could have happened to anyone. Heh. Anybody wanna buy a bridge? :D

Comment 10 by Scott Stroz posted on 7/14/2007 at 4:19 AM


Comment 11 by Eric Hoffman posted on 7/14/2007 at 5:47 AM

Should of had a beer to clear the head this morning.

Not to say that I have tested such a theory in my early days. :)

Comment 12 by David Pienta posted on 7/18/2007 at 4:34 PM

Ray - I was scratching my head over the same thing about a month ago. Except I never thought about checking the application.cfc at all. Talk about a total brain dump!

If you are ever in the N. Florida area, I will help you take care of a case of beer any day!