Hello,
I just installed this module. When I save the configuration at admin/config/people/fboauth, I get the following error message.
Notice: Undefined index: fboauth_user_fields in fboauth_field_form_submit() (line 60 of C:\wamp\www\mysite\sites\all\modules\contrib\fboauth\includes\fboauth.field.inc).
Warning: array_filter() expects parameter 1 to be array, null given in fboauth_field_form_submit() (line 60 of C:\wamp\www\mysite\sites\all\modules\contrib\fboauth\includes\fboauth.field.inc).
BTW, I noticed that the function fboauth_field_form_submit() is receiving two arguments, but using only one.
Comments
Comment #1
djmy commentedjust installed it as well and i get the same issue too
Comment #2
areynolds commentedThe patch and advice in http://drupal.org/node/1305340 should resolve this issue; try those out and re-open this issue if it's a problem. Quicksketch should be committing that code soon, but let us know on the other issue if the patches work.
Thanks for the report!
Comment #3
djmy commentedhi areynolds! Unfortunately the patch didn't fix it. I attached a screenshot of the error.
Comment #4
phantom21 commentedI had already applied your patch. In the absence of the patch, I could not even get the configuration screen to show. After applying your patch I could see the config screen, but as soon as I click the save button, I get the above errors.
Comment #5
quicksketchI found that this problem is easy to reproduce on a clean install of Drupal 7. The error occurs whenever there are no fields assigned to the User object, so the $form_state['values']['fboauth_user_fields'] value is not even set, which causes the array_filter() warning.
This patch fixes the warning, but even without the patch the warning is merely cosmetic and doesn't affect the functionality of the module. I'll be putting out a 1.2 release after addressing other issues in the queue. I've committed the attached patch.
Comment #6
djmy commentedThank you! Awesome module!
Comment #7.0
(not verified) commentedremoved the site name