My CCK node definition contains a user reference field that uses a list box. When I go to create content, I get the following error message:

warning: array_filter() [function.array-filter]: The first argument should be an array in example.com\modules\cck\userreference.module on line 141.

Comments

KarenS’s picture

Status: Active » Fixed

This is a duplicate of the original issue at http://drupal.org/node/103736. You need to update your database. See the instructions in the CCK Handbook at http://drupal.org/node/103796

liquidcms’s picture

Status: Fixed » Active

i posted original issue that Karen is referring to - and when i did the update it did seem to fix my problem - but problem is back now and update isn't fixing it.

same error, same line number (141) - can zoon_unit verify that the update fixed problem

KarenS’s picture

Unable to replicate this. What options did you select when you created the field? Do you have any users that meet the criteria you selected or will that be an empty set?

KarenS’s picture

Status: Active » Fixed

OK, I tried a clean install and now I see the error. The transpose array function is empty on a new node so it needs to be forced to an array type so it won't throw errors. Committing changes now...

Anonymous’s picture

Status: Fixed » Closed (fixed)