2 Fehler nach update auf 3.0.7-pl1

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
3nVITr0
Mitglied
Beiträge: 20
Registriert: 18.05.2009 16:01

2 Fehler nach update auf 3.0.7-pl1

Beitrag von 3nVITr0 »

Hallo, ich habe nach dem lokalem update mit xamp auf 3.0.7-pl1 2 kleinere Probleme welche ich nicht gelöst bekommen.
Am meisten stört das problem mit dem SEARCH_UNREAD auf der Portal seite. Im Portal Forum habe ich bereits nachgefragt, diese sagten mir das es wohl an der phpbb sprachdatei etc liegen würde und somit der Portalmod nicht dafür verantwortlich wäre.

Kann mir jemand bitte bei der Fehlerbehebung helfen ?

Hier der output aus der debug config

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /portal/block/user_menu.php on line 94: Undefined index: SEARCH_UNREAD
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3995: Undefined variable: s_feed_news
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3997: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3998: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3999: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4000: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4001: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4002: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4003: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4004: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4005: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4006: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4007: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4008: Undefined variable: web_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4018: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3259)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4020: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3259)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4021: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3259)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4022: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3259)

greetz,envi
Benutzeravatar
dagobert50gold
Gesperrt
Beiträge: 1316
Registriert: 04.11.2009 16:52

Re: 2 Fehler nach update auf 3.0.7-pl1

Beitrag von dagobert50gold »

Das beste wäre ien Pastebin Eintrag von diesen beiden Dateien:
/portal/block/user_menu.php
/includes/functions.php

Vielleicht kannst du den Fehler mit der /includes/functions.php aber auch selber lösen. Schau mal nach, was oberhalb der Zeile 3995 falsch ist. Wenn du dich aber nicht so gut mit PHP auskennst, dann mach lieber auch hier den Pastebin.
Der kleine phpBB.de-Knigge - unsere HausordnungF1 WebTipp von Dr.DeathF1 WebTipp SQL-Updates
Kein Support per PN! Auch nicht zu den F1WebTipp-SQL-Updates!
Benutzeravatar
franki
Ehemaliges Teammitglied
Beiträge: 2823
Registriert: 21.10.2007 14:02
Wohnort: Sonsbeck
Kontaktdaten:

Re: 2 Fehler nach update auf 3.0.7-pl1

Beitrag von franki »

Hallo

1. Benutzt Du die orig. Styles prosilver oder subsilver2 ?
Meistens wird ein anderer Style verwendet und vergessen diesen auch zu aktualisieren.

2. Kontrolliere noch einmal die geänderten Dateien für den Portal-Mod laut der Portal install.xml.
Evtl. könnte beim update dort etwas verloren gegangen sein.
LG Franki
3nVITr0
Mitglied
Beiträge: 20
Registriert: 18.05.2009 16:01

Re: 2 Fehler nach update auf 3.0.7-pl1

Beitrag von 3nVITr0 »

Ich würde ja gerne die pastebin einträge machen wenn ich da nich so nen netten error bekommen würde:

Code: Alles auswählen

Allgemeiner Fehler
SQL ERROR [ mysqli ]

Data too long for column 'snippet_text' at row 1 [1406]

Beim Laden der Seite ist ein SQL-Fehler aufgetreten. Bitte kontaktiere die Board-Administration, falls dieses Problem fortlaufend auftritt.
Also mach ich das via code:

Hier die functions:

Code: Alles auswählen

<?php

/**
*
* @package - Board3portal
* @version $Id: user_menu.php 596 2009-12-25 13:02:46Z marc1706 $
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

if (!defined('IN_PHPBB') || !defined('IN_PORTAL'))
{
   exit;
}

//
// + new posts since last visit & you post number
//
if ($user->data['is_registered'])
{
	$ex_fid_ary = array_unique(array_merge(array_keys($auth->acl_getf('!f_read', true)), array_keys($auth->acl_getf('!f_search', true))));
	
	if ($auth->acl_get('m_approve'))
	{
		$m_approve_fid_ary = array(-1);
		$m_approve_fid_sql = '';
	}
	else if ($auth->acl_getf_global('m_approve'))
	{
		$m_approve_fid_ary = array_diff(array_keys($auth->acl_getf('!m_approve', true)), $ex_fid_ary);
		$m_approve_fid_sql = ' AND (p.post_approved = 1' . ((sizeof($m_approve_fid_ary)) ? ' OR ' . $db->sql_in_set('p.forum_id', $m_approve_fid_ary, true) : '') . ')';
	}
	else
	{
		$m_approve_fid_ary = array();
		$m_approve_fid_sql = ' AND p.post_approved = 1';
	}

	$sql = 'SELECT COUNT(distinct t.topic_id) as total
				FROM ' . TOPICS_TABLE . ' t
				WHERE t.topic_last_post_time > ' . $user->data['user_lastvisit'] . '
					AND t.topic_moved_id = 0
					' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
					' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '');
	$result = $db->sql_query($sql);
	$new_posts_count = (int) $db->sql_fetchfield('total');

	// your post number
	$sql = "SELECT user_posts
		FROM " . USERS_TABLE . "
		WHERE user_id = " . $user->data['user_id'];
	$result = $db->sql_query($sql);
	$you_posts_count = (int) $db->sql_fetchfield('user_posts');
	
	// unread posts
	$sql_where = 'AND t.topic_moved_id = 0
					' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
					' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '');
	$unread_list = array();
	
	if (!empty($unread_list))
	{
		$sql = 'SELECT COUNT(distinct t.topic_id) as total
			FROM ' . TOPICS_TABLE . ' t
			WHERE ' . $db->sql_in_set('t.topic_id', array_keys($unread_list));
		$result = $db->sql_query($sql);
		$unread_posts_count = (int) $db->sql_fetchfield('total');
	}
	else
	{
		$unread_posts_count = 0;
	}
}
//
// - new posts since last visit & you post number
//


// Get user avatar and rank
$user_id = $user->data['user_id'];
$username = $user->data['username'];
$colour = $user->data['user_colour'];
$avatar_img = get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']);
$rank_title = $rank_img = '';
get_user_rank($user->data['user_rank'], $user->data['user_posts'], $rank_title, $rank_img, $rank_img_src);


// Assign specific vars
$template->assign_vars(array(
	'L_NEW_POSTS'	=> $user->lang['SEARCH_NEW'] . '&nbsp;(' . $new_posts_count . ')',
	'L_SELF_POSTS'	=> $user->lang['SEARCH_SELF'] . '&nbsp;(' . $you_posts_count . ')',
	'L_UNREAD_POSTS'=> $user->lang['SEARCH_UNREAD'] . '&nbsp;(' . $unread_posts_count . ')',

	'B3P_AVATAR_IMG'    => $avatar_img,
	'B3P_RANK_TITLE'    => $rank_title,
	'B3P_RANK_IMG'        => $rank_img,
	'RANK_IMG_SRC'    => $rank_img_src,

	'USERNAME_FULL'        => get_username_string('full', $user_id, $username, $colour),
	'B3P_USERNAME'            => get_username_string('username', $user_id, $username, $colour),
	'B3P_USER_COLOR'        => get_username_string('colour', $user_id, $username, $colour),
	'U_VIEW_PROFILE'	=> get_username_string('profile', $user_id, $username, $colour),

	'U_NEW_POSTS'			=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=newposts'),
	'U_SELF_POSTS'			=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=egosearch'),
	'U_UNREAD_POSTS'		=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=unreadposts'),
	'U_UM_BOOKMARKS'		=> ($config['allow_bookmarks']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&mode=bookmarks') : '',
	'U_UM_MAIN_SUBSCRIBED'	=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&mode=subscribed'),
	'U_MCP'					=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '', 
));

?>
Und hier die user_menu: ( wobei ich hier die datei aus dem portal order aus dem root genommen habe )

Code: Alles auswählen

<?php

/**
*
* @package - Board3portal
* @version $Id: user_menu.php 596 2009-12-25 13:02:46Z marc1706 $
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

if (!defined('IN_PHPBB') || !defined('IN_PORTAL'))
{
   exit;
}

//
// + new posts since last visit & you post number
//
if ($user->data['is_registered'])
{
	$ex_fid_ary = array_unique(array_merge(array_keys($auth->acl_getf('!f_read', true)), array_keys($auth->acl_getf('!f_search', true))));
	
	if ($auth->acl_get('m_approve'))
	{
		$m_approve_fid_ary = array(-1);
		$m_approve_fid_sql = '';
	}
	else if ($auth->acl_getf_global('m_approve'))
	{
		$m_approve_fid_ary = array_diff(array_keys($auth->acl_getf('!m_approve', true)), $ex_fid_ary);
		$m_approve_fid_sql = ' AND (p.post_approved = 1' . ((sizeof($m_approve_fid_ary)) ? ' OR ' . $db->sql_in_set('p.forum_id', $m_approve_fid_ary, true) : '') . ')';
	}
	else
	{
		$m_approve_fid_ary = array();
		$m_approve_fid_sql = ' AND p.post_approved = 1';
	}

	$sql = 'SELECT COUNT(distinct t.topic_id) as total
				FROM ' . TOPICS_TABLE . ' t
				WHERE t.topic_last_post_time > ' . $user->data['user_lastvisit'] . '
					AND t.topic_moved_id = 0
					' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
					' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '');
	$result = $db->sql_query($sql);
	$new_posts_count = (int) $db->sql_fetchfield('total');

	// your post number
	$sql = "SELECT user_posts
		FROM " . USERS_TABLE . "
		WHERE user_id = " . $user->data['user_id'];
	$result = $db->sql_query($sql);
	$you_posts_count = (int) $db->sql_fetchfield('user_posts');
	
	// unread posts
	$sql_where = 'AND t.topic_moved_id = 0
					' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
					' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '');
	$unread_list = array();
	
	if (!empty($unread_list))
	{
		$sql = 'SELECT COUNT(distinct t.topic_id) as total
			FROM ' . TOPICS_TABLE . ' t
			WHERE ' . $db->sql_in_set('t.topic_id', array_keys($unread_list));
		$result = $db->sql_query($sql);
		$unread_posts_count = (int) $db->sql_fetchfield('total');
	}
	else
	{
		$unread_posts_count = 0;
	}
}
//
// - new posts since last visit & you post number
//


// Get user avatar and rank
$user_id = $user->data['user_id'];
$username = $user->data['username'];
$colour = $user->data['user_colour'];
$avatar_img = get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']);
$rank_title = $rank_img = '';
get_user_rank($user->data['user_rank'], $user->data['user_posts'], $rank_title, $rank_img, $rank_img_src);


// Assign specific vars
$template->assign_vars(array(
	'L_NEW_POSTS'	=> $user->lang['SEARCH_NEW'] . '&nbsp;(' . $new_posts_count . ')',
	'L_SELF_POSTS'	=> $user->lang['SEARCH_SELF'] . '&nbsp;(' . $you_posts_count . ')',
	'L_UNREAD_POSTS'=> $user->lang['SEARCH_UNREAD'] . '&nbsp;(' . $unread_posts_count . ')',

	'B3P_AVATAR_IMG'    => $avatar_img,
	'B3P_RANK_TITLE'    => $rank_title,
	'B3P_RANK_IMG'        => $rank_img,
	'RANK_IMG_SRC'    => $rank_img_src,

	'USERNAME_FULL'        => get_username_string('full', $user_id, $username, $colour),
	'B3P_USERNAME'            => get_username_string('username', $user_id, $username, $colour),
	'B3P_USER_COLOR'        => get_username_string('colour', $user_id, $username, $colour),
	'U_VIEW_PROFILE'	=> get_username_string('profile', $user_id, $username, $colour),

	'U_NEW_POSTS'			=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=newposts'),
	'U_SELF_POSTS'			=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=egosearch'),
	'U_UNREAD_POSTS'		=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=unreadposts'),
	'U_UM_BOOKMARKS'		=> ($config['allow_bookmarks']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&mode=bookmarks') : '',
	'U_UM_MAIN_SUBSCRIBED'	=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&mode=subscribed'),
	'U_MCP'					=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '', 
));

?>
Du hattest mit deiner vermutung bedingt recht .. Ich benutze kein subsilver bzw prosilver .. aber ich habe nachgeschaut und gesehen das auch bei den 2 standart styles der selbe fehler vorliegt.

Das portal habe ich nach der install anweißung geupdatet. Daran scheint es wie gesagt nicht zu liegen. Zu mal der Eintrag "unread postings" nicht stimmen kann wenn bei " neue beiträge " mindestens 1 neuer dabei is .. somit müsste bei ungelesen auch mindestens eine 1 dabei sein.


sry, für die code variante.

Greetz envi
3nVITr0
Mitglied
Beiträge: 20
Registriert: 18.05.2009 16:01

Re: 2 Fehler nach update auf 3.0.7-pl1

Beitrag von 3nVITr0 »

leider geht die tante edith nich in meinem posting davor.

Das Problem mit dem search_unread habe ich gelöst bekommen. Es lag an der common.php da hat der betreffende befehl/verweiß gefehlt.

die anderen Probleme sind nach wie vor vorhanden und einen Lösungsansatz habe ich dafür leider noch nicht gefunden :(
Benutzeravatar
Würzi
Ehemaliges Teammitglied
Beiträge: 3187
Registriert: 30.10.2005 02:51
Wohnort: Niedernberg
Kontaktdaten:

Re: 2 Fehler nach update auf 3.0.7-pl1

Beitrag von Würzi »

Moin,

vergleiche doch einfach mal deine includes/functions.php mit einer orginal 3.0.7-PL1 includes/functions.php
Zu empfehlen ist hierfür die Software Winmerge.

Mfg dat Wuerzi
Kein Support per PN, dafür ist das Forum da! Eine PN hilft einen, ein öffentlicher Beitrag allen. - Styles für phpbb3
Benutzeravatar
dagobert50gold
Gesperrt
Beiträge: 1316
Registriert: 04.11.2009 16:52

Re: 2 Fehler nach update auf 3.0.7-pl1

Beitrag von dagobert50gold »

3nVITr0 hat geschrieben:leider geht die tante edith nich in meinem posting davor.
Das Editieren von Beiträgen ist hier auf phpBB.de zeitlich beschränkt (Ausnahme: 1. Beitrag in Mods in Entwicklung"). Daher greift dann der Topic-Bump, da steht´s drin: KB:16
Der ist immer nach schon 24 Stunden erlaubt :wink: !
Der kleine phpBB.de-Knigge - unsere HausordnungF1 WebTipp von Dr.DeathF1 WebTipp SQL-Updates
Kein Support per PN! Auch nicht zu den F1WebTipp-SQL-Updates!
Antworten

Zurück zu „[3.0.x] Mod Support“