Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default 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

  2. #2

    Default Re: MissingInclude

    Hi,

    Thanks for your immediate reply. I have used the following
    <cfinclude template="./domainnames/qryDomainPortfolioInsert.cfm">

    Thanks,
    Satheesh.
    satheesh_p Guest

  3. #3

    Default Re: MissingInclude

    Use the full path to the file: d:\inetpub\wwwroot\ ... etc.
    jdeline Guest

  4. #4

    Default 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

  5. #5

    Default 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

  6. #6

    Default 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

  7. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139