House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

could not find the included template

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Okay, I'm completely stumped:
S. Isaac Dealey
02/27/05 01:32 P
could it be an issue with "\" vs "/" ?
Marlon Moyer
02/27/05 01:45 P
Guys,
Jeff Davis
08/15/08 04:21 P
So what WAS the problem and what was the fix??
Jared Rypka-Hauer - CMG, LLC
02/27/05 03:58 P
>>that fileexists() tests to see if the file
Claude Schneegans
02/27/05 05:57 P
It's been interesting as the page context becomes more and more
Jared Rypka-Hauer - CMG, LLC
02/28/05 02:48 A
> Thanks for sharing though...
S. Isaac Dealey
02/28/05 09:03 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
S. Isaac Dealey
02/27/2005 01:32 PM

Okay, I'm completely stumped: CF MX 6.1 w/ updater This code: <cfoutput>   file-exists = #fileexists(   getdirectoryfrompath(getcurrenttemplatepath())   & '\' & tagpath)# </cfoutput> <cfmodule template="#tagpath#" ...> Produces this: -------------------- file-exists = YES ... The following errors occurred: Could not find the included template ..\..\..\..\..\..\..\_customtags\dba\members\permissioninfo.cfm. -------------------- Why on earth would CF not be able to find the template on the very next line when it's already indicated that the template exists, beyond the shadow of a doubt, at the specifid path. s. isaac dealey     954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Claude Schneegans
02/27/2005 02:01 PM

>>Why on earth would CF not be able to find the template on the very >>next line when it's already indicated that the template exists, There is at least ONE good reason I got one day: too many ../ If you go back too high in directories, and then go down at the correct place, The path is valid OS wise, and the file does exist, but HTTP wise, if you get higher than the Web root, the ../ are truncated and the path becomes wrong. -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: piegeacon@internetique.com) Thanks.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeff Davis
08/15/2008 04:21 PM

Guys, Either I'm walking in the footsteps of giants... OR the more things change, the more they stay the same! I'm getting "coldfusion.tagext.lang.IncludeTag$NoSuchIncludeTemplateException: Could not find the included template ..\jobs/exception.circuit.cfm." when viewing a page to view my jobs. Configuration is CF 7.0.2 running locally with FuseBox 4.1 core files and my code to allow me to create, edit, list jobs and see just mine or all that anyone has created. Just noticed the mixed slash directions in the path there... and the jobs directory has subs of "action","display", and "query" so it's probably a munged path in the circuits.xml.cfm file OR in the display template, dsp_myJobs.cfm BTW, I'm NOT including a file named "exception.circuit.cfm", and there is a file exception.fusebox.cfm at the root of the FB 4.1 core files. Thoughts, comments, bagels? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
S. Isaac Dealey
02/27/2005 02:17 PM

No -- I've actually resolved the issue, although I still don't know why CF was throwing that error in particular (which had absolutely nothing to do with the issue). Though I don't think the choice of slash would matter anyway, since when I displayed the path, all the slashes were facing the same direction (which means both from getcurrenttemplatepath() and from my generated path were the same), were the normal windows backslash, there weren't any missing or repeated slashes, and because recent versions of CF seem to automatically convert them to the appropriate type of slash anyway. Iirc, MX will even return true from a path like #directoryexists("c:\inetpub\/wwwroot")# -- which I believe means CF is repairing the path internally. ----- Excess quoted text cut - see Original Post for more ----- s. isaac dealey     954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
S. Isaac Dealey
02/27/2005 03:50 PM

----- Excess quoted text cut - see Original Post for more ----- This is true, except that fileexists() tests to see if the file actually exists at the given path, not if the path is valid, and was returning true. s. isaac dealey     954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jared Rypka-Hauer - CMG, LLC
02/27/2005 03:58 PM

So what WAS the problem and what was the fix?? Don't keep us in suspense, man... :) J ----- Excess quoted text cut - see Original Post for more ----- -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://cfobjective.neo.servequake.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Claude Schneegans
02/27/2005 05:57 PM

>>that fileexists() tests to see if the file >>actually exists at the given path, not if the path is valid, and was >>returning true. Actually, I was wrong, it is for requests from the client browser like for Javascript or CSS files that the file won't be loaded if the file path goes up beyond the Web root, not with ColdFusion. Anyway, you said your problem was solved, so I'd be interested to know how you solved it. -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: piegeacon@internetique.com) Thanks.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
S. Isaac Dealey
02/27/2005 06:59 PM

iirc it was a syntax error inside the template being called, so the fix was fixing the syntax error... Strangely enough, writing a <cfoutput> tag with something to display inside the tag caused the server to report the correct error. ----- Excess quoted text cut - see Original Post for more ----- s. isaac dealey     954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jared Rypka-Hauer - CMG, LLC
02/28/2005 02:48 AM

It's been interesting as the page context becomes more and more important to see exactly how errors get reported... and just how INCORRECTLY they get reported sometimes. And now, when using the cferror scope in an exception error page, we've got 50 million choices... nested arrays of nested arrays. I mean, it's great, I like being able to cfdump the cferror scope, but it's a little overwhelming sometimes. Thanks for sharing though... Laterz, J ----- Excess quoted text cut - see Original Post for more ----- -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://cfobjective.neo.servequake.com

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
S. Isaac Dealey
02/28/2005 09:03 AM

> Thanks for sharing though... welcome s. isaac dealey     954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

August 27, 2014

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
           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             

Designer, Developer and mobile workflow conference