Notice: Undefined index: 0 in theme_linkedin_profile_user_page_item() (line 29 of linkedin/linkedin_profile/linkedin_profile.theme.inc).
Notice: Undefined index: is-current in include() (line 14 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
Notice: Undefined index: is-current in include() (line 17 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
Notice: Undefined index: title in include() (line 18 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
Notice: Undefined index: company in include() (line 21 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
Notice: Undefined index: start-date in include() (line 28 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
Notice: Undefined index: end-date in include() (line 39 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
Notice: Undefined index: summary in include() (line 52 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php)
Notice: Undefined index: summary in include() (line 48 of linkedin/linkedin_profile/linkedin-user-page-position-item.tpl.php).
Notice: Undefined index: notes in include() (line 36 of linkedin/linkedin_profile/linkedin-user-page-education-item.tpl.php).
Notice: Undefined index: activities in include() (line 40 of linkedin/linkedin_profile/linkedin-user-page-education-item.tpl.php).

Comments

SocialNicheGuru’s picture

Title: Numerous undefined index notices in linkedin-user-page-postion.item.tpl.php » Numerous undefined index notices when module is enabled

change "0" to 'user' if ($item['value']['member-url']['url']) { // change "0" to 'url'

Edit:
above is incorrect. see next comment

SocialNicheGuru’s picture

Title: Numerous undefined index notices when module is enabled » Numerous undefined index notices in linkedin-user-page-postion.item.tpl.php

ahhh, I think that you have to test if the variables are test before you see if they are true or not.

for example

<?php if (isset($position['summary'])) : ?>  <--- added
<?php if ($position['summary']) : ?>
<div class="linkedin-position-summary">
  <?php print $position['summary']; ?>
</div>
<?php endif; ?>
<?php endif; ?> <-- added
Dynamic Ecology’s picture

Title: Numerous undefined index notices when module is enabled » Numerous undefined index notices in linkedin-user-page-postion.item.tpl.php

I added a couple of patches and every error went away except :

Notice: Undefined index: 0 in theme_linkedin_profile_user_page_item() (line 43 of /home3/REPLACE/REPLACE/sites/all/modules/linkedin/linkedin_profile/linkedin_profile.theme.inc).

Anyideas?

JCL324’s picture

I too am getting these undefined notices but only in the linkedin-user-page-position-item.tpl.php file.

JCL324’s picture

Issue summary: View changes

added more notices