I'm getting this because fb_user_get_local_user_by_email() is calling user_load(array('mail' => $email)) on l. 1042 of fb_user.module, which doesn't jive with the signature of the user_load method.

Comments

Meriial’s picture

user_load_by_mail() is the correct function to call.

I'm new to helping out. Should I make a patch?

Dave Cohen’s picture

I guess that changed going from D6 to D7. Thanks for the report. ANd yes a patch would be ideal. That makes it easiest for me to include the change. And its good practice. :)

Meriial’s picture

StatusFileSize
new630 bytes

Here is a patch, let me know if there are any problems with it.

steven jones’s picture

Status: Active » Reviewed & tested by the community

Fixes the issue for me, and the patch looks good.

dave reid’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new863 bytes

There is another user_load() call that is missing a fix.

jessepinho’s picture

Thanks Dave Reid—fixed it for me!

franzkewd’s picture

Thanks.

Dave Cohen’s picture

Status: Needs review » Fixed

Thanks for that!

Status: Fixed » Closed (fixed)

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