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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1487 Views

Avatar
rainerh

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,
Rainer