I received this error:

warning: array_filter() [function.array-filter]: The first argument should be an array in /home/.../sites/all/modules/fboauth/includes/fboauth.profile.inc on line 67.

and I don't know what it means.

CommentFileSizeAuthor
#4 fboauth_submit_profile.patch598 bytesquicksketch

Comments

jhun vert’s picture

How can I fix this?

olec3000’s picture

Component: Miscellaneous » Code
Priority: Normal » Major

I am getting the same error. I don't see anything else about it when I search. Can someone help us out? Thanks!

lionsharz’s picture

same error - any ideas?

quicksketch’s picture

Priority: Major » Minor
Status: Active » Fixed
StatusFileSize
new598 bytes

Thanks for the report guys. This problem can occur when you have the Profile module enabled (part of core) but don't actually have any profile fields set up on your site (in which case you should probably disable Profile module). This makes it so that FBOAuth gets a NULL value when it expects an array, causing the error. It doesn't actually affect the module in a negative way though, so I've moved this issue to minor.

I've committed this patch which will prevent the problem. But as I mentioned, in your situation, you might be able to simply disable the Profile module if you're not using it.

quicksketch’s picture

Title: warning: array_filter() [function.array-filter]: » Error when saving configuration: "array_filter() first argument should be an array" when no profile fields available

Retitling for posterity.

Status: Fixed » Closed (fixed)

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