Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
KarenS CreditAttribution: KarenS commentedThis 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
Comment #2
liquidcms CreditAttribution: liquidcms commentedi 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
Comment #3
KarenS CreditAttribution: KarenS commentedUnable 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?
Comment #4
KarenS CreditAttribution: KarenS commentedOK, 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...
Comment #5
(not verified) CreditAttribution: commented