Skip to main content
Participant
January 14, 2012
Answered

CFINCLUDE throws unusual error with specific file

  • January 14, 2012
  • 1 reply
  • 842 views

I have a file called verb_add.cfm that I want to include in another cfm file.

I have a line in my code as follows:

<cfinclude template="verb_add.cfm">

When I execute this code I get a most unusual error from ColdFusion:

Unknown Tag: cfinclue.

Notice the missing "d" from cfinclude in the error message. Yes it is spelled correctly in the code, but the error message from ColdFusion only has "cfinclude" once in the error message, when displaying the line of code causing the error. All other displays on the error page are "cfinclue".

I can change the name of the file, for example to verb_add2.cfm, and then change the template="" to match, and get the same cfinclue error.

I can include other files without any problem. But just this file, no matter what the actual name of the file is, will always throw a cfinclue error.

I have restarted ColdFusion and cleared the template cache from the ColdFusion admin.

Any help would be much appreciated.

This topic has been closed for replies.
Correct answer Adam Cameron.

Do you have "save class files" checked in CFAdmin?  If so, disable it, and leave it disabled; and the go delete all the files in the cfclasses dir.  Retest.

Are you certain the error message is reporting what you think it is?  You don't have any match for "cfinclue" anywhere else in your project?  That said, this would give a compile error (not a runtime error), so it should be being pretty explicit about where the problem is, I guess...

Curious.

--

Adam

1 reply

Adam Cameron.Correct answer
Inspiring
January 14, 2012

Do you have "save class files" checked in CFAdmin?  If so, disable it, and leave it disabled; and the go delete all the files in the cfclasses dir.  Retest.

Are you certain the error message is reporting what you think it is?  You don't have any match for "cfinclue" anywhere else in your project?  That said, this would give a compile error (not a runtime error), so it should be being pretty explicit about where the problem is, I guess...

Curious.

--

Adam

Participant
January 15, 2012

It turns out there used to be an error in the verb_add.cfm regarding a cfinclue instead of cfinclude, however this had already been fixed in verb_add.cfm.

But it must have been cached in the cfclasses, because after removing those files the error was resolved.

Thanks for your quick response.