-2

When I'd like to run idnex.cfm there is error "Could not find the included template". I should use CF admin mappings, but there are a lot of such errors in different files. So, is there the easier way to solve a problem?

Full error message:
Could not find the included template spiderBlock.cfm.
Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc.
Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible. 
Dan Short
  • 9,598
  • 2
  • 28
  • 53
Wolandello
  • 127
  • 4
  • 15
  • This a very ominous question. Are you working with someone else's code, and trying to set up a local working copy of it--and then when running the application, getting an entire series of these types of errors? If so, the answer is to determine the mappings used in the application and mirror the configuration of your CFAdmin to match that of the app. If you are building a new application and getting these errors right out of the gate, you're going to want to look how how you reference each ; being sure to refer to the appropriate relative path to each cfm in your workspace. – Shawn Holmes Oct 07 '11 at 15:24
  • Yes I'm working with someone else code – Wolandello Oct 07 '11 at 15:55
  • @user978707 Please try to provide more details to your question. As it sits now, it may be in danger of getting closed due to low quality. – Sampson Oct 08 '11 at 02:51
  • 2
    Shawn, do you really find it that ominous? I really don't get a sense of foreboding when I read it. – Adam Cameron Oct 08 '11 at 11:35

1 Answers1

1

The error should also tell you WHICH template it can't find, including the path CF is looking for it on. Is that file at the location CF is looking for it? I suspect not.

If you start by giving us the full error message, we've got something to work with to make sensible comment on this.

As others have suggested there's a few ways the included file can be referenced in the including template: relative to its own location, absolutely from the CF root, or absolutely from a resolved mapping. So you might need to check your mappings as well (which'll be defined in CFAdmin or Application.cfc).

Adam Cameron
  • 29,677
  • 4
  • 37
  • 78