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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Trying to get property of non-objec-entity-1986168.patch | 883 bytes | joecrespo |
Comments
Comment #1
imclean commentedPossibly:
#1986168: "Trying to get property of non-object' message
#1879714: Trying to get property of non-object in entity_metadata_no_hook_node_access()
#1780646: entity_access() fails to check node type specific create access
Comment #2
aitala commentedOk, I am following the last issue...
Thanks,
E
Comment #3
joecrespo commentedSome 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.