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.
-sigh-
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.)
Archived Comments
That happens to me all the time with CSS.
"Why the heck is that text BLUE?"
Beer is wonderful.
AHA! That meane the problem was actually a "case sensitivity" issue - LOL
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.
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. ;)
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)
+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?
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 :)
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.
:P
No worries, really... it could have happened to anyone. Heh. Anybody wanna buy a bridge? :D
n00b
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. :)
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!