Viewing the profile data, I get
"Notice: Undefined index: picture-url in include() (line 15 of /var/www/nkd7/TRUNK/drupal/sites/all/modules/contrib/linkedin/linkedin_profile/linkedin-user-page.tpl.php)."
I guess this is because this line
<?php if ($profile['picture-url']) : ?>
needs to use isset() or a similar check. It might be good to put the check in all such if statements in the templates.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1312628--linkedin-notice-missing-fields--6.patch | 3.76 KB | alexiswatson |
Comments
Comment #1
deltab commentedAlso in linkedin_profile.module, I get the following on trying to display Positions and Educations information
Notice: Undefined index: id in linkedin_profile_user_load() (line 117 of /var/www/html/sites/all/modules/linkedin/linkedin_profile/linkedin_profile.module).Comment #2
alexiswatson commenteddeltab: This is probably better brought up as a separate issue (which I've also encountered).
As for the original issue, I'll roll a patch for it when I'm not headed to bed. :]
Comment #3
alexiswatson commentedNoticed the problem is a bit more generic than that. I'll whip up a patch that addresses as many as I can see.
Comment #4
paulhk commentedI am also facing issues with the integration -
Notice: Undefined index: position in linkedin_profile_user_load() (line 114 of /home/website/public_html/website.com/sites/all/modules/linkedin/linkedin_profile/linkedin_profile.module).
Comment #5
alexiswatson commentedSorry for the delay. Some of these are fixed in #1357840: Position Template Always Interprets 'is-current' as TRUE and #1357846: Multivalue Structured Field Templates Not Receiving Variables. I'll be working on a few more of these in the near future.
Comment #6
alexiswatson commentedAnd here's a patch for the rest. Try all three of them; if there's one that I missed, feel free to add to this one.
Comment #7
helmo commentedThanks the patch still applies and fixes the notice.
Comment #8
jaesperanza commentedPatch still applies resolves issue. Just to add another error on line item not included in the patch, the same fix on "summary" item in case anyone else encounters this.
Notice: Undefined index: summary in include() (line 50 of /sites/all/modules/linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
in linkedin-user-page-position-item.tpl.php, changed:
to