On certain moderated pages I received the following two notices. Clearing the cache would temporarily resolve the problem. This occured with workbench_moderation 1.3.

Notice: Undefined property: stdClass::$workbench_moderation in workbench_moderation_view_tab_title() (line 337 of /web/sites/all/modules/workbench_moderation/workbench_moderation.module).

Notice: Undefined property: stdClass::$workbench_moderation in _workbench_moderation_access_current_draft() (line 580 of /web/sites/all/modules/workbench_moderation/workbench_moderation.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kienan’s picture

Status: Active » Needs review
FileSize
496 bytes

I didn't try to find the root cause, just stop the issue. This simple patch did the trick for me.

DamienMcKenna’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Issue summary: View changes

Does it still apply against v7.x-1.x-dev?

Status: Needs review » Needs work
DDM486’s picture

I hate to bring up such an old topic but I'm having the same exact issue. The patch did not solve the issue for me. For me, this is happening on all nodes within content types that are not being moderated. I'm on the latest version of Workbench moderation, 7.x-3.0 and am using it with Open Atrium. I can provide more details about my setup if necessary.

DamienMcKenna’s picture

Version: 7.x-1.x-dev » 7.x-3.x-dev

The patch needs to be rerolled against 7.x-3.x.