I am getting this notice after logging in using DrupalOAuth2 provider.

Notice: Undefined index: profileURL in hybridauth_user_view() (line 402 of /home/ubuntu/mysite/docroot/sites/all/modules/contrib/hybridauth/hybridauth.module).

Comments

karthikkumarbodu created an issue. See original summary.

karthikkumarbodu’s picture

Status: Active » Needs review
StatusFileSize
new761 bytes

Attaching a patch file with a fix to the notice.

karthikkumarbodu’s picture

StatusFileSize
new761 bytes

Fixed syntax error in line 406 hybrdiauth.module

avni09’s picture

Status: Needs review » Reviewed & tested by the community

Verified.
The Notices are now handled and no longer appear upon login along with DrupalOAuth2 provider.

duozersk’s picture

Karthik Kumar Bodu,

Thank you for using the module and for the patch. I didn't get why you uploaded it two times, but it's OK :)

We should clearly understand why this notice appears only with this specific provider - the reason behind it is that all the HybridAuth provider implementations should return specific list of fields, and profileURL is one of these fields that is actually not implemented in the DrupalOAuth2 provider implementation. So the proper fix would be to fix the provider implementation in the HybridAuth library so that it returns this profileURL value OR fix the HybridAuth core library so that it checks for the values returned by the specific provider implementation and then adds empty values for the not implemented keys.

Thanks
AndyB

karthikkumarbodu’s picture

Status: Reviewed & tested by the community » Fixed

Andy,

Yes got a fix for this issue in DrupalOAuth2 provider library. I am marking this as fixed.

Thanks for your time to review the issue.

duozersk’s picture

Version: 7.x-2.13 » 7.x-2.x-dev

Status: Fixed » Closed (fixed)

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