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
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
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
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).

My directory layout is as follows:

(My root folder on the host):
http://sandbox.freecoldfusionhosting.com/members/c/cwadams/

The application folder:
http://sandbox.freecoldfusionhosting.com/members/c/cwadams/webmail/

The MachII folder:
http://sandbox.freecoldfusionhosting.com/members/c/cwadams/webmail/machII

I read about the mapping workaround here:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/FAQApplicationSpecificMappingWorkaround

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
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):

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=appFramework_04.html

You'd copy the mach-ii.cfc into your application root:

http://sandbox.freecoldfusionhosting.com/members/c/cwadams/webmail/

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:
Reply all
Reply to author
Forward
0 new messages