Pagina 1 van 1

Fatal error: Call to undefined function: get_buddies()

Geplaatst: 12 okt 2004, 10:44
door michiel87
Ik ben mijn forum aan het updaten van 2.0.7 naar 2.0.10

Dan heb ik 3 foutmeldingen:
Fatal error: Call to undefined function: get_buddies() in /home/httpd/vhosts/auto-banden.nl/httpdocs/rc/portal.php on line 318
Regel 64 tot 82:

Code: Selecteer alles

// 
// Buddylist actions 
// 
$buddy_id = ( isset($HTTP_GET_VARS['b']) ) ? intval($HTTP_GET_VARS['b']) : 0; 
$buddy_action = ( isset($HTTP_GET_VARS['buddy']) ) ? $HTTP_GET_VARS['buddy'] : ''; 
if( $buddy_id && $buddy_action != '' ) 
{ 
  if( $buddy_action == 'add' ) 
  { 
    add_buddy($userdata['user_id'], $buddy_id); 
  } 
  else if( $buddy_action == 'remove' ) 
  { 
    remove_buddy($userdata['user_id'], $buddy_id); 
  } 
} 
// 
// END: Buddylist actions 
// 
Regel 315 tot 324:

Code: Selecteer alles

//
// Generate the page
//
get_buddies($userdata);
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Bij de index is het hetzelfde:
Fatal error: Call to undefined function: get_buddies() in index.php on line 492
Regel 34 tot 52 is hetzelfde als regel 64 tot 82 in portal.php.
Regel 489 tot 497 is hetzelfde als regel 315 tot 324 in portal.php.

Bij privmsg.php:
Fatal error: Call to undefined function: get_buddies() in privmsg.php on line 2170
Regel 2170 tot 2175:

Code: Selecteer alles

get_buddies($userdata);
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Regel 116 tot 134:

Code: Selecteer alles

//
// Buddylist actions
//
$buddy_id = ( isset($HTTP_GET_VARS['b']) ) ? intval($HTTP_GET_VARS['b']) : 0;
$buddy_action = ( isset($HTTP_GET_VARS['buddy']) ) ? $HTTP_GET_VARS['buddy'] : '';
if( $buddy_id && $buddy_action != '' )
{
	if( $buddy_action == 'add' )
	{
		add_buddy($userdata['user_id'], $buddy_id);
	}
	else if( $buddy_action == 'remove' )
	{
		remove_buddy($userdata['user_id'], $buddy_id);
	}
}
//
// END: Buddylist actions
//

Ik heb nu tijdelijk

Code: Selecteer alles

get_buddies($userdata);
op de pagina's weggehaald, dan kan het forum wel gebruikt worden

Geplaatst: 12 okt 2004, 10:57
door michiel87
Heb de oplossing al gevonden :D

Deze code:

Code: Selecteer alles

include($phpbb_root_path . 'includes/functions_buddylist.'.$phpEx);
in common.php zetten :thumb: :lol: