Closed (fixed)
Project:
Facebook OAuth (FBOAuth)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2012 at 05:11 UTC
Updated:
7 Jan 2013 at 20:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
goron commentedOk. This was a not-very-telling warning that was coming from a simple problem.
I have the profile module enabled, but no profile fields set up. This results in the following code saving a NULL value for the variable fboauth_user_profile, since in this case $form_state['values']['fboauth_user_profile'] is undefined:
This actually also results in an undefined index error when the form is saved, but I didn't notice it because I never saved that form on this site. I actually exported that variable to a feature using strongarm on another site and enabled that feature on this site. Strongarm exported the variable as the empty string, which led to the error mentioned in the first post.
The actual problem is that the submit callback doesn't check if any value actually exists for ['fboauth_user_profile']. Patch below fixes that.
Comment #2
silverbell commentedThanks @goron. This patch fixed the error message on my site.
Comment #3
quicksketchThankg guys! I fixed this with an identical patch in #1621120: Error when saving configuration: "array_filter() first argument should be an array" when no profile fields available.