Hello,
I think that I've found a display issue related to the Taxonomy Access Control module. I'm using SHS on one of my node types and when I display the field that uses it I get the following notice if the user doesn't have permission to view that particular term, using Taxonomy Access Control:

Notice: Trying to get property of non-object in shs_field_formatter_view() (line 510 of /.../sites/all/modules/shs/shs.module).

I looked in the module code and saw that there is a check to see if the term ID exists, but not the actual term data. Since TAC suppresses the term data from being sent to this function and the term object seems to be required in this foreach it seemed like an easy fix to modify the condition to prevent the notice:

line 497, change:
if (empty($item['tid'])) {
to
if (!is_object($item['term'])) {

Could the module author please review this fix and propose a better solution if one exists?

Thank you for your module!

Comments

stBorchert’s picture

Version: 7.x-1.6 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Could you please use the latest development version and check if the error still exists?

stBorchert’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
Related issues: +#2450041: display node linked to a previously deleted taxonomy term bug