Normally, index.cfm would live in your webroot, and would not be included.
you would have a folder structure like
wwwroot - folder
index.cfm - file
with your code you are including index.cfm in a folder structure that
would look like:
site_theartoflovingcatsanddogs_com - folder
index.cfm - folder
cfid- folder
2 - folder (different each time)
cftoken- folder
60648468 - folder (different each time)
index.cfm - file
I doubt very much if that is the case. Are you writing the code for
that include or is it being generated somehow. Also, what is the
name of the CFM file that contains this code, because if you are
somehow trying to include index.cfm within index.cfm, you will have an
infinite loop of the worst sort.
On Tue, Dec 23, 2014 at 7:21 PM, Matthew Smith <[email protected]> wrote:
>
> Yes, this is the code:
> <cfinclude
> template="/site_theartoflovingcatsanddogs_com/index.cfm/cfid/#session.cfid#/cftoken/#session.cftoken#/index.cfm">
>
> What caught me off guard is that this has been working without problem for
> many months on the live site, http://www.theartoflovingcatsanddogs.com
>
> I guess my actual question, rephrased better, is why does this work on
> crystaltech but not on my new cf11 install? I'm not sure of the cf version
> for ct. I'm sorry I was not clear.
>
> On Tue, Dec 23, 2014 at 5:05 PM, Maureen <[email protected]> wrote:
>
>>
>> It is fairly clear that the path you are using for the include is
>> invalid. It needs to be a physical path, not a url, and I doubt if
>> your physical path includes
>>
>> /site_
>> theartoflovingcatsanddogs_com/index.cfm/cfid/2/cftoken/60648468/index.cfm
>>
>> Are you using a variable to build the include path?
>>
>>
>>
>> On Tue, Dec 23, 2014 at 6:58 PM, Matthew Smith <[email protected]>
>> wrote:
>> >
>> > I have been developing on our live server as the site has been down for
>> > some time. I am trying to get things right and just installed apache and
>> > cf11 on my local box. This is the error I get when I try to bring up the
>> > site's home page.
>> >
>> > Any ideas, I am not sure what to try. Thanks.
>> >
>> > MissingInclude Could not find the included template
>> >
>> /site_theartoflovingcatsanddogs_com/index.cfm/cfid/2/cftoken/60648468/index.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. <br>
>> > 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.
>> >
>> /site_theartoflovingcatsanddogs_com/index.cfm/cfid/2/cftoken/60648468/index.cfm
>> > [empty
>> > string] [empty string]cfcatch.tagcontext - array1cfcatch.tagcontext -
>> struct
>> > COLUMN0IDCFINCLUDELINE29RAW_TRACEat
>> > cfindex2ecfm1457390167.runPage(C:\wwwroot\index.cfm:29)TEMPLATE
>> > C:\wwwroot\index.cfmTYPECFML2cfcatch.tagcontext -
>> structCOLUMN0IDCFINCLUDE
>> > LINE198RAW_TRACEat
>> >
>> cfApplication2ecfc65118548$funcONREQUEST.runFunction(C:\wwwroot\Application.cfc:198)
>> > TEMPLATEC:\wwwroot\Application.cfcTYPECFML
>> >
>> > --
>> > Regards,
>> > chedder is bedder
>> >
>> >
>> >
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359882
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm