Could not find the included template config/definitions/...etc

29 views
Skip to first unread message

Ron Mast

unread,
Dec 20, 2009, 8:39:14 PM12/20/09
to transf...@googlegroups.com
Hi Guys,

I'm new to transfer and decided to try and set it up on my server. I
have the transfer and app folder in the wwwroot directory...no cf
admin mapping. I followed the
http://www.compoundtheory.com/?action=displayPost&ID=112 tutorial. I
am at a loss why transfer is throwing an include error. Go to this
link to view the complete error http://localwebsites.biz/cfpetmarket/

Please advise...thanks,
Ron

Matt Quackenbush

unread,
Dec 20, 2009, 10:24:00 PM12/20/09
to transf...@googlegroups.com
I am going to take a wild guess and say that the most likely cause is an incorrect path value on the Transfer definitions path setting.  That value should be a root absolute value, such as:

<cfset definitionsPath = "/config/definitions" />

Additionally, make sure that the directory actually exists.

Ron Mast

unread,
Dec 20, 2009, 10:59:13 PM12/20/09
to transf...@googlegroups.com
My app is in the wwwroot directory. Looks like this: cfpetmarket -->
config --> definitions

where do I define definitionsPath = "/config/definitions"? I guess
that's where I get lost...:(

Thanks...I will keep looking...but if someone can tell me that would
really help speed things up for me...thanks.

> --
> Before posting questions to the group please read:
> http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
>
> You received this message because you are subscribed to the Google Groups
> "transfer-dev" group.
> To post to this group, send email to transf...@googlegroups.com
> To unsubscribe from this group, send email to
> transfer-dev...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/transfer-dev?hl=en

Ron Mast

unread,
Dec 20, 2009, 11:03:48 PM12/20/09
to transf...@googlegroups.com
I'm confused why transfer can create the .transfer definition file and
then turn right around and say it can't find it.

Matt Quackenbush

unread,
Dec 20, 2009, 11:10:51 PM12/20/09
to transf...@googlegroups.com
My apologies.  The 'definitionsPath' is a setting with a particular framework I use.  It has been ages since I have used Transfer outside of a framework, so I don't remember all of the specifics.  According to the docs (link below) it is passed into the init() method when you create your Transfer factory.

http://docs.transfer-orm.com/wiki/Installation_and_Updating.cfm

Since your definitions folder lives down under your web root a couple of levels, the path should be "/cfpetmarket/config/definitions".

HTH

Ron Mast

unread,
Dec 20, 2009, 11:22:43 PM12/20/09
to transf...@googlegroups.com
Yes you are right about where you set the definition path and my code
looks like:
<cfscript>
application.transferFactory = createObject("component",
"transfer.TransferFactory").init("config/datasource.xml","config/transfer.xml",
"config/definitions");
transfer = application.transferFactory.getTransfer();
category = transfer.new("pets.Category");
</cfscript>

You are saying the following line:
application.transferFactory = createObject("component",
"transfer.TransferFactory").init("config/datasource.xml","config/transfer.xml",
"config/definitions");

should look like:
application.transferFactory = createObject("component",
"transfer.TransferFactory").init("config/datasource.xml","config/transfer.xml",
"/mypetmarket/config/definitions");?

Will try this.

Ron Mast

unread,
Dec 20, 2009, 11:33:49 PM12/20/09
to transf...@googlegroups.com
Ok changed it to:

application.transferFactory = createObject("component",
"transfer.TransferFactory").init("/cfpetmarket/config/datasource.xml","/cfpetmarket/config/transfer.xml",
"/cfpetmarket/definitions");

which worked! :)

Thanks so much for pointing me in the right direction!

Matt Quackenbush

unread,
Dec 21, 2009, 1:29:12 AM12/21/09
to transf...@googlegroups.com
w00t!

Always glad to help.  :-)

Reply all
Reply to author
Forward
0 new messages