I get this error after saving or editing content.
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138 of /var/aegir/platforms/drupal7/drupal-7.0/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module).
Status message
Comments
Comment #1
danielb commentedI can't reproduce this?
What other fields are you using in the node?
Comment #2
danielb commentedComment #3
udomeier commentedI get the same error message - by default fields...
Comment #4
danielb commentedAh I think I've deleted my body field :P
Comment #5
danielb commentedStill can't reproduce it.
Actually this could be affected by when you downloaded the References module, and whether the field it is an upgrade from D6.
#1032808: Undefined index: module in node_reference_content_migrate_instance_alter
Comment #6
udomeier commentedthat's it:
nodeaccess_userreference.module
old - with error message
if ($field['display']['default']['module'] == 'user_reference') {
new
if ($field['display']['default']['module'] = 'user_reference') {
or?
Comment #7
danielb commentedNo, don't do that mate.
Comment #8
andrebonfanti commentedI have the same notice, but with "line 137":
Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 137 of /home/(mydomain)/public_html/sites/all/modules/nodeaccess_userreference/nodeaccess_userreference.module)I found also here #1066814: Notice: Undefined index: module in nodeaccess_userreference_node_access_records() (line 138.
In my configuration It appears between other notices, related to the locale.module.
The notices began to appear when I installed the media.module which gave me some issues, so I disabled it.
Now I'm using exif.module and the notices appearing are this kind:
But they're not related to Node access user reference module.
Comment #9
thomas4019 commentedI have so fields (Link, Text) which for some reason don't have the module defined and thus have been cusing this notice. I was able to fix it by changes line 137 to the following.
if (isset($field['display']['default']['module']) && $field['display']['default']['module'] == 'user_reference') {Comment #10
romantaran commentedThanks! It works.
Comment #11
Sentrashy commentedThe same, on the line 137 =(
Comment #12
danielb commentedOh I see, the error is coming from fields other than user_reference....ah. OK We'll go with thomas4019's suggestion and pray there are no outlier cases where a user_reference field doesn't have that property/index.
Comment #13
danielb commented