1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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

Discussion in 'Social Networks' started by excitewall, Jun 23, 2010.

  1. #1
    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.

    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 23, 2010 IP
  2. rahu_l_

    rahu_l_ Well-Known Member

    Messages:
    533
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    175
    #2
    put session start in 1st
     
    rahu_l_, Jun 25, 2010 IP
  3. excitewall

    excitewall Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How to put that Please give me code example I will be thankful its a big issue right now for my site... Thanks
     
    excitewall, Jun 25, 2010 IP