This is probably related to other bug reports, but is a different widget, so I'll report it here. When I try to create a userference field I get several errors:

warning: Missing argument 3 for userreference_field_settings() in [drupal path]\modules\cck\userreference.module on line 31 (repeated multiple times on different screens)

warning: Invalid argument supplied for foreach() in [drupal path]\modules\cck\content.module on line 787.

I continue to get the error on line 31 whenever I I try to manage or edit that field on the content types management screen, but I no longer see a message about an error on line 787 after the field is created.

The field is created in spite of the error and appears on the node input form.

My steps:

1) install module
2) create content type
3) add several fields of different types

CommentFileSizeAuthor
#1 node_user_reference.patch1.24 KBRayZ

Comments

RayZ’s picture

Status: Active » Needs review
StatusFileSize
new1.24 KB

It looks like the $scope variable was left in the definition of the hook_field_settings() implementation in both nodereference.module and userreference.module, presumably from some earlier version of the code.

This patch removes it from both places.

So this should fix some of the warnings mentioned in this issue as well.

karens’s picture

This took care of the error for me. Thanks.

jonbob’s picture

Title: userreference field » Missing argument 3 for userreference_field_settings()
Status: Needs review » Fixed

Applied. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)