Coldfusion 找不到包含的模板

Coldfusion 找不到包含的模板,coldfusion,coldfusion-9,cfadmin,Coldfusion,Coldfusion 9,Cfadmin,当我想运行idnex.cfm时,出现错误“找不到包含的模板”。 我应该使用CF admin映射,但是在不同的文件中有很多这样的错误。 那么,有没有更简单的方法来解决问题呢 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.c

当我想运行idnex.cfm时,出现错误“找不到包含的模板”。 我应该使用CF admin映射,但是在不同的文件中有很多这样的错误。 那么,有没有更简单的方法来解决问题呢

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. 

该错误还应该告诉您找不到哪个模板,包括CF在其上查找的路径。该文件是否位于CF正在查找的位置?我想不是

如果您首先向我们提供完整的错误消息,那么我们就可以对此做出合理的评论


正如其他人所建议的,有几种方法可以在包含模板中引用包含的文件:相对于它自己的位置,绝对从CF根目录,或者绝对从解析的映射。因此,您可能还需要检查映射(将在CFAdmin或Application.cfc中定义)。

这是一个非常不祥的问题。您是否正在处理其他人的代码,并尝试设置其本地工作副本,然后在运行应用程序时,会出现一系列此类错误?如果是这样,答案是确定应用程序中使用的映射,并镜像CFAdmin的配置以匹配应用程序的配置。如果您正在构建一个新的应用程序,并立即解决这些错误,那么您需要了解如何引用每个错误;确保参考工作区中每个cfm的适当相对路径。是的,我正在与其他人合作code@user978707请尝试为您的问题提供更多详细信息。就目前的情况来看,由于质量低劣,它可能有被关闭的危险。肖恩,你真的觉得有那么不祥吗?当我读到它时,我真的没有一种不祥的预感。