User reference case wont work.

Created on 27 September 2013, over 10 years ago
Updated 19 June 2024, 7 days ago

Problem/Motivation

@todo: Add a summary and steps to reproduce!
For now, please see comment #22 for instructions for testing the patch (and as such, an implied explanation of how to encounter the problem).

Remaining tasks

Review the patch on a site without user reference, to verify there aren't any side effects.

Original report by [username]

    Notice: Undefined index: uid in nodeaccess_delete_user_reference() (line 1234 of /var/www/drupal/sites/all/modules/nodeaccess/nodeaccess.module).
    Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of /var/www/drupal/includes/entity.inc).
    Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 350 of /var/www/drupal/includes/entity.inc).
    Notice: Trying to get property of non-object in nodeaccess_delete_user_reference() (line 1235 of /var/www/drupal/sites/all/modules/nodeaccess/nodeaccess.module).
    Notice: Undefined index: uid in nodeaccess_insert_user_reference() (line 1193 of /var/www/drupal/sites/all/modules/nodeaccess/nodeaccess.module).
    Notice: Undefined index: uid in nodeaccess_insert_user_reference() (line 1211 of /var/www/drupal/sites/all/modules/nodeaccess/nodeaccess.module).

when i try to save a content type with a user reference field this are the error displayed. need help.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇷🇴Romania valls

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024