10389 Posts in 2200 Topics by 1712 members
| Go to End | Next > | |
| Author | Topic: | 1320 Views |
-
CMSWorkflow and SS 2.3.2

20 June 2009 at 3:59am
Hi All,
I am having an issue with CMS workflow and the latest release of SS.
I have just upgraded SS to 2.3.2, and have the latest version of cmsWorkflow from the trunk. I am getting the error:
[User Error] DataObject::getComponents(): Unknown 1-to-many component 'WorkflowRequests' on class 'HomePage'
Looks like the issue is in the method:
public function ClosedWorkflowRequests($filter = "", $sort = "", $join = "", $limit = "") {
$this->componentCache = array();
if($filter) $filter .= ' AND ';
$filter .= "Status IN ('Approved','Denied')";
return $this->owner->getComponents(
'WorkflowRequests',
$filter,
$sort,
$join,
$limit
);
}in SiteTreeCMSWorkflow.php
Anyone got any Ideas what might be causing this? A partial trace is as follows, any help would be appreciated (I know this isn't meant to be stable until 2.4, but if anyone could point out a workaround, that would be great):
DataObject::getComponents(): Unknown 1-to-many component 'WorkflowRequests' on class 'HomePage'
Line 1086 of DataObject.phpDataObject->getComponents(WorkflowRequests,Status IN ('Approved','Denied'),,,)
Line 259 of SiteTreeCMSWorkflow.phpSiteTreeCMSWorkflow->ClosedWorkflowRequests()
Line 139 of SiteTreeCMSWorkflow.phpSiteTreeCMSWorkflow->getWorkflowCMSFields()
Line 123 of SiteTreeCMSWorkflow.phpSiteTreeCMSWorkflow->updateCMSFields(FieldSet,,,,,,)
Line 741 of Object.phpObject->extend(updateCMSFields,FieldSet)
Line 1328 of SiteTree.phpSiteTree->getCMSFields()
Line 14 of Page.phpPage->getCMSFields()
Line 55 of HomePage.phpHomePage->getCMSFields(CMSMain)
Line 390 of CMSMain.phpCMSMain->getEditForm(1)
Line 925 of LeftAndMain.phpLeftAndMain->EditForm()
call_user_func_array(Array,Array)
Line 550 of ViewableData.php -
Re: CMSWorkflow and SS 2.3.2

20 June 2009 at 4:11am
Right, I have found a fix of sorts, adding:
public static $has_many = array(
'WorkflowRequests' => 'WorkflowRequest'
);To my page class gives it the association the page requires, but I am guessing this is meant to be handled by the plugin?
Mo
-
Re: CMSWorkflow and SS 2.3.2

21 June 2009 at 11:18pm
Yes, the SiteTreeSubsites.php file is supposed to add that relation. Did you try doing a ?flush=1 after you installed the plugin?
-
Re: CMSWorkflow and SS 2.3.2

22 June 2009 at 8:11pm Last edited: 22 June 2009 8:12pm
I did do a flush, it didn't make any difference.
Mo
-
Re: CMSWorkflow and SS 2.3.2

22 June 2009 at 8:32pm
Ok, here is something odd, the front end is fine, its only the admin area that gives me this error.
Very odd!
-
Re: CMSWorkflow and SS 2.3.2

23 June 2009 at 7:49pm
Okay, damn it, I thin this is a bug in the 2.3.2 release.
I've added a ticket here: http://open.silverstripe.com/ticket/4285
-
Re: CMSWorkflow and SS 2.3.2

23 June 2009 at 8:46pm
Ah, doh! Well glad I could be of some help.
Do you think 2.3.2 will be updated with this bugfix, or will we have to workaround until 2.3.3?
Cheers for your help so far,
Mo
-
Re: CMSWorkflow and SS 2.3.2

23 June 2009 at 9:21pm
Well, we never change 2.3.2, so if a fix is required then it will definitely be in 2.3.3. The real question is "if it's a bug how long before we release 2.3.3". And that I can't answer right now... ;-)
| 1320 Views | ||
| Go to Top | Next > |


