Help - Search - Members - Calendar
Full Version: Fatal error: Call to undefined method?
HTMLHelp Forums > Programming > Server-side Scripting
Mavrik347
Fatal error: Call to undefined method skin_ahreputation_7::member_location() in /home/sever/public_html/ipb/sources/components_public/reputation.php on line 1628

Hello, I was hoping someone might be able to help me with something. I have installed a reputation mod into my forum and all is working well except this 1 error that occurs after you add reputation or check the reputation history.

Sadly the people that made the mod no longer support it, however it does work and their build is complete etc.

The area of code the error points to is this:

QUOTE

//-----------------------------------------
// Oh, no, not anonymous again!
//-----------------------------------------
if ($row['vis'] != 0 or $this->ipsclass->member['g_access_cp'])
{
$author['member_posts'] = $this->ipsclass->compiled_templates['skin_ahreputation']->members_posts( $this->ipsclass->do_number_format( $row['posts'] ) );

$author['avatar'] = $this->ipsclass->get_avatar( $row['avatar_location'], $this->ipsclass->member['view_avs'], $row['avatar_size'], $row['avatar_type'] );

$author['member_joined'] = $this->ipsclass->compiled_templates[ 'skin_topic' ]->member_joined( $this->ipsclass->get_date( $row['joined'], 'JOINED' ) );
$author['member_group'] = $this->ipsclass->compiled_templates[ 'skin_ahreputation' ]->member_group( $group_name );
$author['member_number'] = $this->ipsclass->compiled_templates[ 'skin_ahreputation' ]->member_number( $this->ipsclass->do_number_format($row['id']) );
$author['profile_icon'] = $this->ipsclass->compiled_templates[ 'skin_topic' ]->member_icon_profile( $row['id'] );
$author['message_icon'] = $this->ipsclass->compiled_templates[ 'skin_topic' ]->member_icon_msg( $row['id'] );
Line 1628 > $author['member_location'] = $row['location'] ? $this->ipsclass->compiled_templates[ 'skin_ahreputation' ]->member_location( $row['location'] ) : '';
$author['email_icon'] = ! $row['hide_email'] ? $this->ipsclass->compiled_templates[ 'skin_topic' ]->member_icon_email( $row['id'] ) : '';
$author['addresscard'] = $row['id'] ? $this->ipsclass->compiled_templates[ 'skin_topic' ]->member_icon_vcard( $row['id'] ) : '';


if ( $mid )
{
$author['addresscard'] = $this->ipsclass->compiled_templates['skin_ahreputation']->member_icon_vcard( $mid );
}

$author['id'] = $row['member_id'];


If you need anything more then I would be more than happy to provide it. You guys no doubt have more experiance than me at this so something may hopefully stand out.

Any help would be very much appreciated.


Matt
Brian Chandler
QUOTE
Fatal error: Call to undefined method skin_ahreputation_7::member_location() in /home/sever/public_html/ipb/sources/components_public/reputation.php on line 1628


It means that in the line marked there is a call to the member_location() method, which isn't defined in the class given. You probably need to hire a programmer (assuming you have no idea what all this is about) to go through the source and sort it out. You could try looking for somewhere other users of this stuff are discussing problems/updates. If the source is well-written and commented it might be quite easy, if not it might be easier to start again.

Sorry this doesn't help much, but I doubt if anyone here can help you more.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.