> I'd suggest something has changed ;) Rarely do things suddenly happen
> with no reason.
>
> Can you send through the code for the dmCPAJ content type --
> specifically the cfproperty tags. Can you tell from your version
> control system if this file has changed at all in recent times?
Hi geoff,
Thanks for your time and helps. Here is my content type definition -
<cfcomponent name="CPAJ" extends="farcry.core.packages.types.versions"
displayname="CPAJ" hint="CPAJ Stories" bFriendly="1"
bObjectBroker="true">
<!------------------------------------------------------------------------
type properties
-------------------------------------------------------------------------
>
<cfproperty ftseq="1" ftfieldset="General Details"
ftwizardStep="General Details" name="title" type="string" hint="Story
title." required="yes" default="" ftlabel="Title"
ftvalidation="required" />
<cfproperty ftseq="2" ftfieldset="General Details"
ftwizardStep="General Details" name="subTitle" type="string"
hint="Story sub-title." required="no" default="" ftlabel="Sub-Title" /
>
<cfproperty ftseq="3" ftfieldset="General Details"
ftwizardStep="General Details" name="author" type="string"
hint="Author." required="yes" default="" ftlabel="Author" />
<cfproperty ftseq="4" ftfieldset="General Details"
ftwizardStep="General Details" name="coAuthor" type="string" hint="Co-
Author." required="no" default="" ftlabel="Co-Author" />
<cfproperty ftseq="5" ftfieldset="General Details"
ftwizardStep="General Details" name="thirdAuthor" type="string"
hint="2nd Co-Author." required="no" default="" ftlabel="2nd Co-
Author" />
<cfproperty ftseq="6" ftfieldset="General Details"
ftwizardStep="General Details" name="feature" type="boolean" hint="Is
this story a feature of the coming issue?" required="no" default="no"
ftlabel="Feature" />
<cfproperty ftseq="7" ftfieldset="General Details"
ftwizardStep="General Details" name="mainPage" type="boolean"
hint="Display this story on the main page?" required="no" default="no"
ftlabel="Show on Main Page" />
<cfproperty ftseq="8" ftfieldset="General Details"
ftwizardStep="General Details" name="publisherLetter" type="boolean"
hint="Is this story a letter from the publisher?" required="no"
default="no" ftlabel="Letter from the Publisher" />
<cfproperty ftseq="9" ftfieldset="General Details"
ftwizardStep="General Details" name="displayMethod" type="string"
hint="Display method to render." required="yes" default="display"
fttype="webskin" ftprefix="displayPage" ftlabel="Display Template" />
<cfproperty ftseq="10" ftfieldset="Publishing Details"
ftwizardStep="General Details" name="vol" type="string" hint="Volume."
required="yes" default="" ftDefault="LXXVIII" ftlabel="vol." />
<cfproperty ftseq="11" ftfieldset="Publishing Details"
ftwizardStep="General Details" name="num" type="integer"
hint="Number." required="no" ftDefaultType="Evaluate"
ftDefault="Month(now())" ftType="integer" ftlabel="no." />
<cfproperty ftseq="12" ftfieldset="Publishing Details"
ftwizardStep="General Details" name="publishDate" type="date"
hint="The date that this story is sent live and appears on the public
website" required="yes" default="" ftDefaultType="Evaluate"
ftDefault="CreateDate(Year(now()),Month(now()),1)" ftType="datetime"
ftDateFormatMask="dd mmm yyyy" ftToggleOffDateTime="false"
ftlabel="Publish Date" />
<cfproperty ftseq="13" ftfieldset="Publishing Details"
ftwizardStep="General Details" name="expiryDate" type="date" hint="The
date that this story is hidden from its contents category page"
required="no" default="" ftDefaultType="Evaluate"
ftDefault="CreateDate(Year(now()),Month(now())+6,1)" ftType="datetime"
ftDateFormatMask="dd mmm yyyy" ftToggleOffDateTime="true"
ftlabel="Expiry Date" />
<cfproperty ftseq="15" ftfieldset="Categorisation"
ftwizardStep="General Details" name="catContents" type="longchar"
hint="Contents categorisation." required="yes" default=""
fttype="category" ftalias="contentCatCPAJ" ftlabel="Contents
Category" />
<cfproperty ftseq="21" ftfieldset="CPAJ Story" ftwizardStep="Story
Body" name="Body" type="longchar" hint="Main body of content."
required="no" default="" ftType="RichText" ftlabel="Body Content"
ftImageArrayField="aObjectIDs" ftImageTypename="dmImage"
ftImageField="StandardImage"
ftTemplateTypeList="dmImage,dmfile,dmflash,dmNavigation,dmHTML"
ftTemplateWebskinPrefixList="insertHTML" />
<cfproperty ftseq="31" ftfieldset="Story Teaser" ftwizardStep="Story
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="32" ftfieldset="Story Teaser" ftwizardStep="Story
Body" name="Teaser" type="longchar" hint="Teaser text." required="no"
default="" ftlabel="Story Teaser" />
<cfproperty ftseq="41" ftfieldset="Related Content"
ftwizardStep="Story Body" name="aObjectIds" type="array" hint="Mixed
media content for this content." required="no" default=""
ftJoin="dmImage,dmfile,dmflash" ftlabel="Media Library"
bSyncStatus="true" />
<cfproperty ftseq="42" ftfieldset="Related Content"
ftwizardStep="Story Body" name="aRelatedIDs" type="array" hint="Holds
object pointers to related content. Can be of mixed types."
required="no" default=""
ftJoin="dmFile,dmNavigation,dmHTML,dmNews,dmCPAJ" ftlabel="Related
Content" />
<!--- system attribute --->
<cfproperty name="status" type="string" hint="Status of the node
(draft, pending, approved)." required="yes" default="draft" />
<!--- deprecated properties --->
<cfproperty name="commentlog" type="longchar" hint="Workflow comment
log." required="no" default="" />
<!------------------------------------------------------------------------
object methods
-------------------------------------------------------------------------
>
</cfcomponent>
As you can see there are three properties using Month(). This file was
last modified in January.
> Just shooting the breeze here... stack traces are tough to decipher
> but it looks like you are running the getDefaultObject() function
> (which may be linked to creating a faux object for the filter), and
> then blowing a gasket on a month() function. Need to confirm that
> your formtool metadata is generating valid default content --
> especially date content.
I noticed I will get the same error now when I try to create a new
record (I can edit existing records). So I guess the formtool dislikes
the content metadata when it creates the faux object for either
filtering on the data or creating a new record.
> If the content type can be cleanly deployed and then doesn't generate
> the error you are experiencing then i'd suggest its a data issue --
> how many records in this table? What database are you using?
There are only 16 records in our table for demo purpose. Admin/COAPI/
Type Classes shows my CPAJ content type is depolyed. COAPI Flex beta
showed no conflicts within this content type. COAPI Metadata crashed
my IE7 and COAPI Schema returned a blank page. I'm wondering if I
should re-deploy the content type. But how?
Thanks again.
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---