1. Assign a node to a Taxonomy-based Workbench Access section
2. Delete the term
3. View or edit the node
Notice: Trying to get property of non-object in taxonomy_workbench_access_load() (line 193 of sites/all/modules/workbench_access/modules/taxonomy.workbench_access.inc).
Notice: Trying to get property of non-object in taxonomy_workbench_access_load() (line 194 of sites/all/modules/workbench_access/modules/taxonomy.workbench_access.inc).
Notice: Trying to get property of non-object in taxonomy_workbench_access_load() (line 195 of sites/all/modules/workbench_access/modules/taxonomy.workbench_access.inc).
This error might happen with Menu access too, I haven't yet checked.
I think this should fail more gracefully, i.e. it should treat the node's Workbench Access section as "Unassigned" when the section's term no longer exists.
I will see if I can come up with a patch later.
Comments
Comment #1
agentrickardIt also applies to menu because, apparently, we can't have the taxonomy hooks inside the module include files anymore.
This used to work. What version of Drupal are you running?
Comment #2
agentrickardComment #3
agentrickardBetter patch, to ensure no orphaned terms are used.
Comment #4
agentrickard[edit] The old code was old. Here's what Token is doing now:
Comment #5
agentrickardNew patch that ensures our files are loaded.
Comment #7
agentrickardSlightly improved docs.
Comment #8
agentrickardLooks good. Waiting for testbot.
Comment #10
agentrickardLooks like testbot doesn't clear cache / rebuild the stack the same as runtime Drupal.
Comment #11
agentrickardCommitting.
Very frustrated that no one ever bothered to review this patch.