Hi

When creating a new or open a submitted task from the task list I get the following errors

Notice: Undefined property: stdClass::$workbench_moderation in workbench_moderation_view_tab_title() (line 337 of /sites/all/modules/contrib/workbench_moderation/workbench_moderation.module).
Notice: Undefined property: stdClass::$workbench_moderation in _workbench_moderation_access_current_draft() (line 639 of /sites/all/modules/contrib/workbench_moderation/workbench_moderation.module).
Notice: Undefined property: stdClass::$workbench_moderation in workbench_moderation_edit_tab_title() (line 305 of /sites/all/modules/contrib/workbench_moderation/workbench_moderation.module).

Any idea what this is about? All moderation modules/services are enabled.

Thanks

Comments

gnorf created an issue.

gnorf’s picture

update: switched off Workbench Moderation Profiles by Node Type module, errors went away.

the function does appear to be correctly set up.

thanks

gnorf’s picture

I still experience the same issue after updating to latest version. Seems only to occur on tasks pages if you open a given task and when moderation profile module is active

Notice: Undefined property: stdClass::$workbench_moderation in workbench_moderation_view_tab_title() (line 337 of /modules/contrib/workbench_moderation/workbench_moderation.module).
Notice: Undefined property: stdClass::$workbench_moderation in _workbench_moderation_access_current_draft() (line 639 of /modules/contrib/workbench_moderation/workbench_moderation.module).
Notice: Undefined property: stdClass::$workbench_moderation in workbench_moderation_edit_tab_title() (line 305 of /modules/contrib/workbench_moderation/workbench_moderation.module).

Apparently the error has no impact on the actual use of tasks, but i have just started to test it :)

Any help appreciated.

gnorf’s picture

Solution: keep the Moderation Profiles by Node Type module switched off. But it would be cool to know how to resolve the errors still :)