Hi,

I updated the module from 1.19 to 1.22.
But now, always when I start the cron process, a warning message will be found in the recent log when the process was finished.
The message text is:
Notice: Undefined index: field_type in nodeaccess_nodereference_get_referenced() (line 244 of /home/hroudtwolf/DrupalWorkspace2013/xxxxxxxxxxxx/www/sites/all/modules/contributed/nodeaccess_nodereference/nodeaccess_nodereference.module).

- Update.php was running successfuly (no error messages).
- Clearing cache doesn't solve the problem.

Best regards
Hroudtwolf

Comments

thirdender’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

I just had the same problem crop up on a site after I did the module update. The warning appeared when the client tried to save a node edit. I think the attached patch should help. It looks like the field_type index of an array isn't available when using Node Reference instead of Entity Reference. My patch double checks for the existence of the field_type array index… that's really the only change. In my quick testing it seems to work, although I'd appreciate a second pair of eyes.

masipila’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

I had the same issue. Reviewed and tested the patch, setting to RTBC.

Cheers,
Markus

  • danielb committed 9576c85 on 7.x-1.x authored by thirdender
    Issue #1896542 by thirdender: "Undefined index: field_type in...
danielb’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.