Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

CMS Workflow - Error with Site Content Author




28 January 2010 at 11:38am Community Member, 23 Posts

Hello everybody,

I'm using two-step workflow mode. When I log in as a user which as a member of "Site Content Authors" and go to the SiteContent in the admin section I receive a "Trying to get property of non-object" error which occurs in SiteTreeCMSTwoStepWorkflow.php (Line 109):

if(!$this->owner->CanPublishType || $this->owner->CanPublishType == 'Anyone') return true;

After some little debugging (or taking a closer look at the error message) it turned out that that object does not have a property owner. Since I imported lots of pages it could be the case that the owner attribute was not set properly. Which field in the database is used for storing it? In table SiteTree I haven't found an OwnerID or something similiar.

Thanks in advance,