FarCry Button - "Element METADATA.FTJOIN is undefined in a CFML structure referenced as part of an expression."

2 views
Skip to first unread message

James Buckingham

unread,
Nov 24, 2009, 10:48:14 AM11/24/09
to farcry-dev
Hi again,

I've just noticed while doing some work on the Text Editor setup of
our site that some of them are showing the following error when I open
up the FarCry button from within the webtop:

"Element METADATA.FTJOIN is undefined in a CFML structure referenced
as part of an expression."

This is appearing just under the tabs and is referring..

COLUMN 0
ID CF_DOTRESOLVER
LINE 82
RAW_TRACE at
cftinyMCE2ecfc1455923456$funcAJAXGETTEMPLATEDROPDOWNS.runFunction(C:
\Inetpub\farcry\core\webtop\facade\tinyMCE.cfc:82)
TEMPLATE C:\Inetpub\farcry\core\webtop\facade\tinyMCE.cfc
TYPE CFML

---

It's mainly our custom types which are doing this, but not all of
them. Some I've worked on today, others we've not touched in a while.
I can't seem to see what's different though from the ones that are
working.

The types themselves work and there doesn't seem to be any syntax
errors in the CFCs.

We've running FarCry 5.2.7.

Does anyone have any ideas?

Thanks once again,
James

Blair McKenzie

unread,
Nov 24, 2009, 1:58:44 PM11/24/09
to farcr...@googlegroups.com
I've never seen the error myself, but it's probably related to an array or uuid property. Do they all have an ftJoin attribute defined?

Blair


--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

James Buckingham

unread,
Nov 24, 2009, 3:16:02 PM11/24/09
to farcry-dev
Hi again Blair,

Yeah ftJoins are common across all the custom types but comparing the
cfproperties of a working one to that of a broken I can't see any
difference. One that isn't working, Case Studies, has ftJoins in the
following places:

<cfproperty ftseq="9" ftfieldset="Teaser" ftwizardStep="Case Study
Body" name="teaserImage" type="UUID" hint="Teaser image to display."
required="no" default="" fttype="uuid" ftJoin="dmImage"
ftlabel="Teaser Image"
fthelptitle="Teaser Requirements"
fthelpsection="Teaser images can only be selected from the pool of
associated media images. You must add to the media library before
selecting." />

<cfproperty ftseq="12" ftfieldset="Related Content"
ftwizardStep="Case Study Body" name="aObjectIDs" type="array"
hint="Mixed media content for this content."
required="no" default="" ftJoin="dmImage,dmFile,dmFlash"
ftlabel="Media Library" bSyncStatus="true"
ftJoinAllowDuplicates="false" />

<cfproperty ftseq="13" ftfieldset="Related Content"
ftwizardStep="Case Study Body" name="aRelatedIDs" type="array"
hint="Holds object pointers to related content. Can be of mixed
types." required="no" default=""
ftJoin="dmNavigation,dmHTML,dmLink" ftlabel="Related Content" />

Like I say I'm seeing the pickers and able to drag in what I need from
the Libraries but when it comes to put them into the Editor I get that
error in the FarCry Button area.

If you want to see the whole CFC let me know. It's quite big though.

Cheers again,
James

Blair McKenzie

unread,
Nov 24, 2009, 6:59:36 PM11/24/09
to farcr...@googlegroups.com
You may have to.

James

James Buckingham

unread,
Nov 25, 2009, 4:51:13 AM11/25/09
to farcry-dev
Here goes.... hope this displays ok :-)

----

<cfcomponent extends="farcry.core.packages.types.versions"
displayName="CaseStudy" hint="Show case your case studies to wide
audience" bSchedule="true" bFriendly="true" bObjectBroker="true">

<!--- General Details
================================================================== ---
>
<!--- General Details section
====================================================== --->

<cfproperty ftseq="0" ftfieldset="General Details"
ftwizardStep="General Details" name="pageTitle" type="string"
hint="page title." required="no" default="" ftlabel="Page Title"/>
<cfproperty ftseq="1" ftfieldset="General Details"
ftwizardStep="General Details" name="title" type="string" hint="Case
study title." required="no" default="" ftlabel="Title"
ftvalidation="required" />
<cfproperty ftseq="2" ftfieldset="General Details"
ftwizardStep="General Details" name="displayMethod" type="string"
hint="Display method to render." required="yes"
default="displayPageStandard" fttype="webskin" ftprefix="displayPage"
ftlabel="Content Template" />
<!--- Categorisation section
====================================================== --->
<cfproperty ftseq="3" ftfieldset="Categorisation"
ftwizardStep="General Details" name="catCaseStudies" type="longchar"
hint="News categorisation." required="no" default="" fttype="category"
ftalias="CaseStudy" ftlabel="Case Study Category" />

<!--- Case Study Body
================================================================== ---
>
<!---Body
section===================================================================
--->
<cfproperty ftseq="4" ftfieldset="Body" ftwizardStep="Case Study
Body" name="Name" type="string" hint="Name of student or Alumni."
required="no" default="" ftlabel="Name" ftvalidation="required" />
<cfproperty ftseq="5" ftfieldset="Body" ftwizardStep="Case Study
Body" name="Degree" type="string" hint="Degree of student or Alumni."
required="no" default="" ftlabel="Degree" />

<cfproperty ftSeq="7" ftFieldset="Body" ftwizardStep="Case Study
Body" name="Introduction" type="longchar" hint="Introduction text"
required="no" default="">

<cfproperty ftseq="8" ftfieldset="Body" ftwizardStep="Case Study
Body" name="Body" type="longchar" hint="Main body of content."
required="no" default=""
ftType="RichText" ftlabel="Body Content"

ftTemplateTypeList="dmImage,dmFile,dmFlash,dmNavigation,dmHTML,dmLink"
ftTemplateWebskinPrefixList="insertHTML" />

<!---Teaser
section===================================================================
--->
<cfproperty ftseq="9" ftfieldset="Teaser" ftwizardStep="Case Study
Body" name="teaserImage" type="UUID" hint="Teaser image to display."
required="no" default="" fttype="uuid" ftJoin="dmImage"
ftlabel="Teaser Image"
fthelptitle="Teaser Requirements"
fthelpsection="Teaser images can only be selected from the pool of
associated media images. You must add to the media library before
selecting." />

<cfproperty ftseq="10" ftfieldset="Teaser" ftwizardStep="Case Study
Body" name="Teaser" type="longchar" hint="Teaser text." required="no"
default="" ftlabel="Teaser" />

<cfproperty ftseq="11" ftfieldset="Banner Image" ftwizardStep="Case
Study Body" name="bannerImage" type="UUID" hint="Teaser image to
display." required="no" default="" fttype="uuid" ftJoin="dmImage"
ftlabel="Banner Image" >

<cfproperty ftseq="12" ftfieldset="Related Content"
ftwizardStep="Case Study Body" name="aObjectIDs" type="array"
hint="Mixed media content for this content."
required="no" default="" ftJoin="dmImage,dmFile,dmFlash"
ftlabel="Media Library" bSyncStatus="true"
ftJoinAllowDuplicates="false" />

<cfproperty ftseq="13" ftfieldset="Related Content"
ftwizardStep="Case Study Body" name="aRelatedIDs" type="array"
hint="Holds object pointers to related content. Can be of mixed
types." required="no" default=""
ftJoin="dmNavigation,dmHTML,dmLink" ftlabel="Related Content" />

<cfproperty ftseq="39" ftfieldset="Related Content"
ftwizardStep="Case Study Body" name="aNavigation" type="array"
hint="The navigation point in which the case study resides"
required="true" default="" fttype="navigation" ftalias="home"
ftlabel="Selected Navigation"
fthelpsection="This is where the the case study will sit in the
navigation when a user clicks on the link, more than one place is
possible" />
</cfcomponent>

James Buckingham

unread,
Nov 25, 2009, 7:19:24 AM11/25/09
to farcry-dev
Ok think we found the problem. It's to do with this one:

<cfproperty ftseq="39" ftfieldset="Related Content" ftwizardStep="Case
Study Body" name="aNavigation" type="array" hint="The navigation point
in which the case study resides"
required="true" default="" fttype="navigation" ftalias="home"
ftlabel="Selected Navigation" fthelpsection="This is where the the
case study will sit in the navigation when a user clicks on the link,
more than one place is possible" />

There isn't an ftJoin for the dmNavigation.

Short story is we took that out after upgrading to 5.2.7. The reason
being we noticed that an "Open Library" button was appearing next to
the Navigation tree. That wasn't there in 5.1.0. So bit of looking
into Core we noticed there is a check going on for an attribute called
ftShowLibraryLink. If that was true then it shows the "Open Library"
button.

So we've put the ftJoin back and added ftShowLibraryLink="false" to
hide the button. Looks like that's got TinyMCE back up and running and
also hidden that button.

Thanks a lot,
James
Reply all
Reply to author
Forward
0 new messages