HI,

With the new version of Entity API, I am getting the following php notices -

Notice: Trying to get property of non-object in entity_metadata_no_hook_node_access() (line 620 of .../sites/all/modules/contrib/entity/modules/callbacks.inc).

This is on a node/add page which has an entity reference to a node of another content type.

Not sure if this is a dupe of similar issues ...

Eric

Comments

aitala’s picture

Ok, I am following the last issue...

Thanks,
E

joecrespo’s picture

Status: Active » Needs review
StatusFileSize
new883 bytes

Some modules are not successfully passing $node as an object when calling function entity_metadata_no_hook_node_access($op, $node = NULL, $account = NULL)

The solution is to swap out isset($node) with is_object($node) on line 620.

Status: Needs review » Needs work

The last submitted patch, Trying to get property of non-objec-entity-1986168.patch, failed testing.