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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

CMS Workflow - Error with Site Content Author

Go to End



Community Member, 23 Posts

28 January 2010 at 11:38am

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,