Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#1 | workbench_moderation-undefined-property-notices-2113315-0.patch | 496 bytes | kienan |
Comments
Comment #1
kienan CreditAttribution: kienan commentedI didn't try to find the root cause, just stop the issue. This simple patch did the trick for me.
Comment #2
DamienMcKennaDoes it still apply against v7.x-1.x-dev?
Comment #5
DDM486 CreditAttribution: DDM486 commentedI 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.
Comment #6
DamienMcKennaThe patch needs to be rerolled against 7.x-3.x.