Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After following and tweaking all I could find on this topic, the login keeps returning Linkedin debug : 401 : No LinkedIn account is associated with this user.
Comment | File | Size | Author |
---|---|---|---|
#19 | patch-linkedin-1065038-19.patch | 4.51 KB | ShaneOnABike |
Comments
Comment #1
digodrupal CreditAttribution: digodrupal commentedSame issue
Comment #2
combait CreditAttribution: combait commentedI got same issue: Linkedin debug : 401 : No LinkedIn account is associated with this user
This happens when i try to authenticate Linkedin at the user page and it also returns the following error:
* warning: Illegal offset type in isset or empty in /drupal-6.20/includes/bootstrap.inc on line 994.
* warning: Illegal offset type in /drupal-6.20/includes/bootstrap.inc on line 995.
* warning: Illegal offset type in /drupal-6.20/includes/bootstrap.inc on line 999.
Anyone have any ideas ?
Comment #3
Anoop Tech CreditAttribution: Anoop Tech commentedI am also facing this issue .. Please help Me...
Comment #4
davad CreditAttribution: davad commentedWhen you're logged in as a user that doesn't have a LinkedIn account associated and if you have the linkedin module's debug turned on, you'll get this message regularly (in fact, if debug is turned on, you'll get this message when using drush).
If that's not the case, could you give some more details about your problem?
Comment #5
davad CreditAttribution: davad commentedComment #6
surcouf CreditAttribution: surcouf commentedHi, same problem when debug mode is on.
In /user/edit the tab is empty, nothing appear.
What can I do ?
Many Thx
Comment #7
martijnboekema CreditAttribution: martijnboekema commentedSame Issue. I've been at it for DAYYSS now..
The problem is that the user page or specifically the following url: http://mydomain.com/?q=user/%/edit/linkedin, just returns a save and delete button. There is NO further content.
I have tried re-installing, checked the modules, permissions, auth codes, basically everything.
But I CANNOT get this to work!!
Help is highly appreciated!
Comment #8
devtherock CreditAttribution: devtherock commentedI was getting same error but form D7 version, my solution was using 2 function, I got data from linkedin which we expect in
$user->linkedin
Hope this help you guyz.
Thanks.
Comment #9
surcouf CreditAttribution: surcouf commentedthanks Devtherock. Unfortunately, it doesn't solve my problem.
I checked everything I could: modules settings, permissions (all are enabled for authenticated users and anonymous, all linkedin profile fields are enabled and I use "user page" as a profile display type.
My drupal admin login/email matches the one I use on linkedin.com
Login to drupal with linkedin authentication submod works only after a very weird behavior/procedure...
1. when I first click on the linkedin login button, it rings linkedin.com and ask to grant access. Then, it returns on drupal with
Access to this page is denied.
On the linkedin.com authorized applications page, nothing has been added.2. Now, on the drupal login page, linkedin button doesn't show anymore. So, I try to log in via my drupal account and it automatically rings linkedin.com to grant access. Then it returns to drupal with this message
Linkedin debug : LinkedIn.com answered "401 : [unauthorized]. The token used in the OAuth request is not valid:XXXtokennumberXXX.
But, I'm loged in drupal now... and, on the linkedin.com authorized applications page, my drupal application has been added properly.3. After loging out, the drupal login page shows the linkedin login button. When I click, it works, i loged in my drupal site.... but still same error from the begining
Error 401: No LinkedIn account is associated with this user
and on the user/account/edit/linkedin page, no content !How could it be that I have no access to the call-back page in step 1 if permissions are all enabled ?
Anybody on this one with his/her ChrIsTmAs WaNd ?
Comment #10
TheThumbPuppy CreditAttribution: TheThumbPuppy commentedsame issue here
Comment #11
surcouf CreditAttribution: surcouf commentedhello, please help ... I'm desperate. Many thanks
Comment #12
bellesmanieres CreditAttribution: bellesmanieres commentedSeems to indicate it's indeed working ok (despites the " Error 401: No LinkedIn account is associated with this user", which is due to the debug mode displaying this wrongly.) Just turn out debug mode, it's only there to troubleshoot api/keys/setup issues.
Comment #13
ShaneOnABike CreditAttribution: ShaneOnABike commentedWell in my case I am getting the same debug message, but unfortunately not able to ever associate a LinkedIn account (beta1) to my user account. Each time I click on the "Go LinkedIn" I get ..
Which is a bit frustrating since it's not clear why this is happening? Should I be using the latest dev... and if so shouldn't we deploy another release rather than getting people to use dev? I'll try dev none-the-less if it's recommended.
Comment #14
ShaneOnABike CreditAttribution: ShaneOnABike commentedAs an update I'm using the latest dev and still getting the same issue when I click the button (whether or not I'm logged into LinkedIn)
Comment #15
amrit_b CreditAttribution: amrit_b commentedI was getting this issue. Guys check CURL is enabled or not in PHP. It should be enabled. Also, It dosen't create a drupal user automatically it seems.
I will write a patch which will create a drupal user account if anoynomous user clicks on it...
Just now came accross http://drupal.org/node/1075778 - following up there.
Comment #16
ShaneOnABike CreditAttribution: ShaneOnABike commentedI downloaded the latest dev and it's working for the most part not since we are synching our clock. We are having the same issue with creating a new user though. It doesn't seem to connect the two accounts (if your email matches) which would be super duper!
**Update** We do have cURL installed on our server and working through Drupal.
Comment #17
aneeeshp CreditAttribution: aneeeshp commentedI am also facing the same issue. Nothing other than Delete and Save button in user/%user/edit/linkedin page. 'Linkedin debug : 401 : No LinkedIn account is associated with this user' displayed when debug is enabled. CURL is installed and enabled.
Comment #18
ShaneOnABike CreditAttribution: ShaneOnABike commentedI actually don't think the way that the user form is being generated is correct. It's not clear to me why but in my case I don't think it's actually calling all the proper hooks? Therefore, the form is super messed up. When I comment out ...
From linkedin_auth.pages.inc the forms is back to normal so something in the prepare or creating the initial form is wrong?
Maybe this should just be a hook using form alter rather than rolling your own?
Comment #19
ShaneOnABike CreditAttribution: ShaneOnABike commentedSorry fo the delay here is the patch that I created. I basically rewrote it to use the original user registration form. It seems a bit better but perhaps could use a bit more work. I like what the Drupal for Facebook group have done for this and perhaps we could steal some code from there (unfortunately I don't have time to sorry)
Let me know if you see any problems with this and I can fix it. I think in general it's better since it doesn't ignore all the custom calls for the user registration form.
Comment #20
faunapolis CreditAttribution: faunapolis commentedDid this patch make it into the D7-dev version? Thanks
Comment #21
greg.harveyIs this still relevant to the D7 dev branch?
Comment #22
davad CreditAttribution: davad commentedI'm not sure. I haven't been able to reproduce it in the D7 branch, but I think I've seen something similar reported in another issue.