Fatal error: Call to undefined function phpbb_get_banned_user_ids()

Shorty1968

Erfahrenes Mitglied
Hallo ich bekomme bei mir beim Thema/Beitrag erstellen auf einmal:
Code:
Fatal error: Call to undefined function phpbb_get_banned_user_ids() in /var/www/web0/html/includes/functions_posting.php on line 1210
Die Zeile die angemekert wird sieht so aus:
Code:
$sql_ignore_users = phpbb_get_banned_user_ids();
Zehn Zeilen davor:
Code:
if (($topic_notification && !$config['allow_topic_notify']) || ($forum_notification && !$config['allow_forum_notify']))
	{
		return;
	}

	$topic_title = ($topic_notification) ? $topic_title : $subject;
	$topic_title = censor_text($topic_title);

	// Exclude guests, current user and banned users from notifications
	if (!function_exists('phpbb_get_banned_user_ids'))
	{
		include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
	}
ca Zehn Zeilen danach:
Code:
$sql_ignore_users[ANONYMOUS] = ANONYMOUS;
	$sql_ignore_users[$user->data['user_id']] = $user->data['user_id'];

	$notify_rows = array();

	// -- get forum_userids	|| topic_userids
	$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber
		FROM ' . (($topic_notification) ? TOPICS_WATCH_TABLE : FORUMS_WATCH_TABLE) . ' w, ' . USERS_TABLE . ' u
		WHERE w.' . (($topic_notification) ? 'topic_id' : 'forum_id') . ' = ' . (($topic_notification) ? $topic_id : $forum_id) . '
			AND ' . $db->sql_in_set('w.user_id', $sql_ignore_users, true) . '
			AND w.notify_status = ' . NOTIFY_YES . '
			AND u.user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')
			AND u.user_id = w.user_id';
	$result = $db->sql_query($sql);

	while ($row = $db->sql_fetchrow($result))
Es ist ein Orginal eintrag in der Datei,warm mekert er da,was ist Falsch?
 
Die Meldung ist doch klar zu verstehen: die Funktion phpbb_get_banned_user_ids() existiert nicht. Da bringt es auch nichts, dass Du dir den Quellcode vor oder nach der Zeile anschaust. Du musst prüfen, ob und wenn ja wo diese Funktion deklariert wird.
 
Du hast wahrscheinlich vergessen eine Datei zu includen. Oder hast du den Code irgendwo aus dem Internet kopiert?
 

Neue Beiträge

Zurück