I believe I was getting this warning when saving the Bio content type because the content type had no fields and resulted in a NULL array using CCK 1.6-1:

The first argument should be an array in bio\bio_views.inc

Checking if it's a valid array before calling array_keys fixes the problem.

CommentFileSizeAuthor
bio_views.inc_.patch763 bytesrobloach

Comments

Caleb G2’s picture

I saw this error pop up for me when I installed too. (dev version)

mlncn’s picture

Status: Needs review » Reviewed & tested by the community

Applied

sudo patch < bio_views.inc_.patch 
(Stripping trailing CRs from patch.)
patching file bio_views.inc

And it works. No errors on saving an unadorned Biography node type.

benjamin, Agaric Design Collective

webchick’s picture

Awesome. Thanks for testing! Will commit this tomorrow, hopefully.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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