Inchoo_SocialConnect icon indicating copy to clipboard operation
Inchoo_SocialConnect copied to clipboard

Notice: Undefined property: stdClass::$email

Open MagePsycho opened this issue 10 years ago • 3 comments

We are using this extension for our store. Today when i was checking the system.log, I saw the following error being logged:

Notice: Undefined property: stdClass::$email which refer to the following code: Inchoo_SocialConnect_FacebookController::_connectCallback()

Mage::helper('inchoo_socialconnect/facebook')->connectByCreatingAccount(
                $userInfo->email,
                $userInfo->first_name,
                $userInfo->last_name,
                $userInfo->id,
                $token
            );

MagePsycho avatar Mar 03 '14 09:03 MagePsycho

Hi MagePsycho, thanks for reporting. I did notice some strange behaviour there so I'll debug asap.

Marko-M avatar Jun 25 '14 12:06 Marko-M

Any luck on this issue fixing?

MagePsycho avatar Jul 13 '14 09:07 MagePsycho

Hi MagePsycho, from my findings issue is as follows:

http://stackoverflow.com/questions/7603644/intermittent-missing-email-address-in-facebook-api

Since we need an email for sending new Magento account email, I'll either disallow login with facebook if email field is empty, or do what I do for Twitter that doesn't give access to email, fake an email address and notify customer using message to update his profile email address. This needs work though, but at least we know what's causing it.

Regards

Marko-M avatar Jul 13 '14 11:07 Marko-M