Could not find the included template /MachII/mach-ii.cfm.
128 views
Skip to first unread message
Troglodyte
unread,
Jun 12, 2009, 2:43:12 PM6/12/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mach-II for CFML
Hi,
This is a somewhat newb error, but I am unable to fix it.
My both my MachII folder and application are in separate folder
under wwwroot.
This is on a test server where I do not have access to the coldfusion
administrator. I have read that there is a way to create mappings in
the application.cfm of the application, but I don't know much about
this.
(Also, from my understanding this should be working without having to
do
this as long as my application and machII folder are in wwwroot.)
The line that is causing this is:
<cfinclude template="/MachII/mach-ii.cfm" />
Any insight would be appreciated.
Thanks.
Peter J. Farrell
unread,
Jun 12, 2009, 2:52:22 PM6/12/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mach-ii-for...@googlegroups.com
It sounds like your application and the MachII framework are in separate
folders like this:
/wwwroot/myApp/
/wwwroot/MachII/
This won't work if you are using relative mappings like you want to.
You need to put the MachII folder in your application folder like this:
/wwwroot/myApp/
/wwwroot/myApp/MachII/
HTH,
.Peter
Troglodyte said the following on 06/12/2009 01:43 PM:
Troglodyte
unread,
Jun 13, 2009, 5:27:15 AM6/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mach-II for CFML
Peter,
Thanks for your response. I have tried that earlier actually and it
didn't work (tried it again to make sure).
It resulted in the wrong error. I am fairly certain now that the error
is a result that these folders are not in the
wwwroot as I originally stated (I'm not sure why I was thinking they
were earlier).
But I am having a little trouble following it since I don't know the
local directory layout of the folders.
(i.e.: C:\ etc). Also, I'm not sure which version of Coldfusion it is
running, and this method appears to
only work ColdFusion 8+ ? In addition to this, I read on the forums
about someone needing to reboot
the server to get this to work, another thing that I don't really have
control of.
Thanks again.
Peter J. Farrell
unread,
Jun 13, 2009, 6:18:58 AM6/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mach-ii-for...@googlegroups.com
Well, you're not putting the application in the web root (or root of
your domain). It's in a sub-folder off your web root. It looks like
your host has some interesting things going on there.
You can get the CF version by cfdumping the server scope out. If you
are on CF8, you can use application specific mappings in your
Application.cfc (I don't think they are supported in Application.cfm):
And put extend="mach-ii" in your cfcomponent tag of your
Application.cfc.
If you are not on CF8 (or BlueDragon), you'll have a lot more work to
"port" paths in Mach-II to work in your server environment since the
host has a strange non-standard environment.
.pjf
Troglodyte said the following on 06/13/2009 04:27 AM: