Please Help..Fatal error: Call to a member function getIdentity()

Discussion in 'Programming' started by excitewall, Jun 26, 2010.

  1. #1
    Please Help..Fatal error: Call to a member function getIdentity()

    On my social network site which is using social engine. This error comes on many of profiles Means when I click on the profile it give this error. It is not for all profile but for 50% of profiles.

    Notice: Undefined offset: 652 in /home/....../public_html/mysite.com/application/modules/User/widgets/profile-friends/index.tpl on line 133
    # Fatal error: Call to a member function getIdentity() on a non-object in /home/.../public_html/mysite.com/application/modules/User/widgets/profile-friends/index.tpl on line 136

    Because of this error many of my users are leaving my site Please someone help me

    The code on these line is this
    Line 133: $member = $this->friendUsers[$membership->user_id];
    Line 134: ?>
    Line 135:
    Line 136: <li id="user_friend_<?php echo $member->getIdentity() ?>">

    Please Guide me..
     
    excitewall, Jun 26, 2010 IP