This error happen in non canvas page. When you authorize the app (and this doesn't create a user, just sign/authoirze from facebook), then when you logged in you got this message.

This is because an error in the line 189 of fb_user.module:

_fb_user_set_map($account, $fbu);

$account is empty

$account = $GLOBALS['user'];
_fb_user_set_map($account, $fbu);
CommentFileSizeAuthor
#1 fb-fix-account-variable-2210919-1.patch461 bytesdariogcode

Comments

dariogcode’s picture

StatusFileSize
new461 bytes

Patch (or a good try) is attached.

Dave Cohen’s picture

Status: Active » Fixed

Thanks for this.

BTW, I ended up pushing this patch:

diff --git a/fb_user.module b/fb_user.module
index 2f21490..079e5d7 100644
--- a/fb_user.module
+++ b/fb_user.module
@@ -219,7 +219,7 @@ function _fb_user_process_new_token($token) {
       if ($uid = $GLOBALS['user']->uid) {
         // User is logged in and connected to facebook.
         if (in_array(FB_USER_OPTION_MAP_LOGGED_IN, $map_policy)) {
-          _fb_user_set_map($account, $fbu);
+          _fb_user_set_map($GLOBALS['user'], $fbu);
           return;
         }
       }
dariogcode’s picture

Thanks!

Status: Fixed » Closed (fixed)

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