Closed (duplicate)
Project:
Node access user reference
Version:
7.x-3.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2011 at 22:46 UTC
Updated:
13 Jun 2012 at 14:16 UTC
Jump to comment: Most recent
Comments
Comment #1
mariusz.slonina commentedThe warning raises when nodeaccess_userreference_node_access() is called from node_access in i18n/i18n_node module (i18n_node.pages.inc line 81). If I change
to
the warning goes away. Is it the issue of the nodeaccess_userreference or i18n?
Comment #2
danielb commentedHmm this might have to do with some recent additions regarding 'create' functionality. I need to debug the workflow of that.
Comment #3
danielb commentedActually I think i18n is doing the wrong thing. It is calling node_access('create', $node) rather than node_access('create', 'node type');
Not sure they're allowed to do that :/
Comment #4
mariusz.slonina commentedI will mark this for now as duplicate, I posted separate issue on i18n queue #1262800: node_access in i18n_node: ('create', $node) or ('create', $node->type) or ('update', $node).
Comment #5
kdub commentedI've also has this issue. But it appears to be site wide. If I preview any newly created node, I receive that same "Warning: Illegal offset type in isset or empty in nodeaccess_userreference_field_settings()" above my previewed content. I'm on D7.8
Comment #6
hbergin commentedkdub, I was just debugging the same issue you're having when I saw your post. I'm using D7.9. I've only seen the error when:
Comment #7
hbergin commentedAs a workaround, I've made the following edits to the module file at line 387 for me, which seem to stop the error being displayed, with no side effects I can see.
Comment #8
kdub commentedThank you hbergin. That did the trick!
Comment #9
Anonymous (not verified) commentedSolution also works for me in today'sdev version of the module (to be patched in line 424). The problem occured with preview on for the nodetype.
Comment #10
adelka commentedGreat solution! Thank you!
Comment #11
ryoken commentedDitto hbergin, and thank you for identifying the problem and providing the workaround - I've been pulling my hair out until I came across your post. For the record, I'm currently running D7.14 with NAUR 7.x-3.8 (but don't have any internationalisation modules installed).