Closed (fixed)
Project:
LinkedIn Integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2010 at 23:06 UTC
Updated:
18 Jan 2011 at 19:10 UTC
There was a similar issue.
I enable LInkedin
I get my api keys and install
If I choose disable I can navigate to my profile page
If I use any of the other options I get what I did above.
function linkedin_get_profile_fields is defined in
linkedin.inc:140:function linkedin_get_profile_fields($uid, $fields = array ())
But it is not being read in the submodule linkedin_profile.module
Comments
Comment #1
maddentim commentedI have this as well. I posted a couple comments on http://drupal.org/node/795936 but this issue seems to be narrower in focus. My twist to it is, I only get the failure when I go to system node paths (i.e. node/x). If I go to the alias path, no problem found.
Comment #2
deltab commentedThe module does not find linkedin.inc, Just put this in the first line of linkedin_profile.module
/*
* Require .inc
*/
module_load_include('inc', 'linkedin', 'linkedin');
Comment #3
socialnicheguru commentedoh so simple sometimes... that worked!
Comment #4
maddentim commentedOk, cool. I knew it was something simple.
Should this go alone or inside this function after the other module_load_include line?
Comment #5
socialnicheguru commentedit didn't work for me inside the init function.
Comment #6
deltab commentedIt has to be outside the init function, I got more intermittent errors with OAuth, and ended in copying almost everything from the linkedin.module init function into a new function linked_module_init.
Lousy coder here, so my patch might confuse most people, however, here is what I put
Comment #7
socialnicheguru commentedI tried #6 and all seems well for me.
Comment #8
bellesmanieres commentedShould be fixed in dev, by ensuring the file is loaded before calling the function.