Closed (duplicate)
Project:
Entity API
Version:
7.x-1.0
Component:
Code - misc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2013 at 08:38 UTC
Updated:
2 Oct 2013 at 00:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
paravibe commentedComment #2
bleen commentedcan you paste in the exact error you are getting?
Comment #3
paravibe commentedYes, please:
Notice: Trying to get property of non-object in entity_metadata_no_hook_node_access() (line 615 of sites\all\modules\contrib\entity\modules\callbacks.inc).
Comment #4
EWB commentedI am getting this as well. The patch in #1 worked.
This notice occurred immediately after upgrading to 7.x-1.0 (from 7.x-1.0-rc3 ) and presents (as drupalrv noted) when editing a node that has entity reference fields.
Notice: Trying to get property of non-object in entity_metadata_no_hook_node_access() (line 615 of /Applications/sites/all/modules/contrib/entity/modules/callbacks.inc).
Comment #5
JvE commentedDuplicate of #1780646: entity_access() fails to check node type specific create access
Comment #6
bkmatwa commentedI was getting the same error as 'drupalrv' and 'EWB' was getting when I was adding videos to a new node via the Brightcove Integration module/API (version 7.x-3.4). Tried applying the patch, but now my Brightcove API doesn't work. Any suggestions to get these two to play together nicely?
Comment #7
valderama commentedPatch in #1 worked for me.
I have a brightcove field on another content-type, where I do not have an entity-reference field - and even after applying the patch I still browse and add brightcove videos. @bkmatwa - what are your exact problems with the brightcove API after you applied the patch?
Comment #8
Anonymous (not verified) commentedJust had same issue and #1 worked for me too. I have two content types, artist and photocard. I'm using corresponding entity reference in order to use views_field_view so I can pass through artist nid to a view of photocards which I embed in the view.
hth
Comment #9
stevieb commentedpatch #1 worked here too
Comment #10
paravibe commentedComment #11
JvE commentedDuplicate of #1780646: entity_access() fails to check node type specific create access
Comment #12
johnlaine commentedI was getting this error on node creation page when node had an entity reference field and also using the "Inline Entity Form" to create the referenced entity.
#1 patch worked perfectly, Thanks!
Comment #13
mrcniceguy commentedThe Trick in Patch #1 worked in my Custom module, Thankx.
Comment #14
ladybug_3777 commentedPatch in #1 worked for me, but seeing the duplicate patch discussion page makes me wonder if I've picked the correct fix or not.
So far no issues with the patch that I can see though.....
Comment #15
tseven commentedThank you drupalrv for the Patch in #1, it worked for me as well.
When can we expect this to be merged?
Comment #16
alexkb commentedFor those wondering: as #1780646: entity_access() fails to check node type specific create access has been committed and rolled into the v1.3 release of entity api, this patch appears to be no longer needed. Since updating to v1.3, I can't seem to reproduce the error anymore.