Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
satheesh_p #1
MissingInclude
Hi,
I am receiving the below error message :
Error Type MissingInclude
Error Message Note: If you wish to use an absolute template path (e.g.
TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a mapping for
the path using the ColdFusion Administrator. Using relative paths (e.g.
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.
For another environment the file is working fine. After committing the files.
Went and verified the file. The file physically exists with all the latest
changes. Don't know why it is working fine in one environment and it is not in
other environment.
Can anyone help me out?
Thanks,
Satheesh.
satheesh_p Guest
-
satheesh_p #2
Re: MissingInclude
Hi,
Thanks for your immediate reply. I have used the following
<cfinclude template="./domainnames/qryDomainPortfolioInsert.cfm">
Thanks,
Satheesh.
satheesh_p Guest
-
jdeline #3
Re: MissingInclude
Use the full path to the file: d:\inetpub\wwwroot\ ... etc.
jdeline Guest
-
satheesh_p #4
Re: MissingInclude
Tried this also. The problem persists. Any idea why this is happening. Even I
checked in the machine all the respective files are there (with the changes).
Tried by giving (absolute/relative path). It is not working
Thanks,
Satheesh.
satheesh_p Guest
-
jjsand28 #5
Re: MissingInclude
Check the address in the address bar. Sometimes when the site path is generated
dynamically it can screw up all the relative paths to follow. Including...the
includes. If this is the case just clear the cache and restart CF and it should
work itself out.
Also if you have defined path's in you application.cfm file this might be
causing it.
Example:
<cfset Request.siteURL = "http://.localhost/site name">
If you want it to work on the live server it should be
<cfset Request.siteURL = :http://www.sitename.com">
jjsand28 Guest
-
satheesh_p #6
Re: MissingInclude
Sorry for the late reply. I have gone out of station.
Thanks for your information. Could you please tell me how to clear the cache
and restart CF? I verified in internet but I could not find. Please help me out.
Thanks,
Satheesh.
satheesh_p Guest
-
johnab #7
Re: MissingInclude
cfincludes can only be referenced from cfmappings or the current folder, they cannot reference a file letter as suggested above.
does the cf service have read permission on the file?
johnab Guest



Reply With Quote

