Seite 1 von 2
[Erledigt] phpBB-Debug beim Antworten (PN)
Verfasst: 29.01.2009 14:15
von Christian Spitzhüttl
Hi!
Finde kein passendes Forum und keine wirklich passenden Betreff.
Wenn ich auf eine PN antworte, schreibt mir der phpBB-Debug folgendes:
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_pm_compose.php on line 257: Undefined index: forum_id
Auszug aus der usp_pm_compose.php Zeile: 250-259
Code: Alles auswählen
}
}
trigger_error('NO_MESSAGE');
}
// Passworded forum?
if ($post['forum_id'])
{
$sql = 'SELECT forum_password
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $post['forum_id'];
$result = $db->sql_query($sql);
$forum_password = (string) $db->sql_fetchfield('forum_password');
$db->sql_freeresult($result);
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 29.01.2009 17:45
von Miriam
Schreibe mal in diese Datei vor
und poste nach nochmaligem Aufruf der problematischen Aktion hier mal die SQL Query, die das Script an die DB übergeben möchte.
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 29.01.2009 18:19
von Christian Spitzhüttl
Miriam hat geschrieben:und poste nach nochmaligem Aufruf der problematischen Aktion hier mal die SQL Query, die das Script an die DB übergeben möchte.
Gemacht, nur ändern tut sich nichts. Und bitte, was soll ich jetzt posten?
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 29.01.2009 20:06
von Miriam
??? Das kann nicht sein... Lösche mal den Cache und probier' es nochmal.
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 29.01.2009 20:10
von Christian Spitzhüttl
Es passiert aber nichts!
Code: Alles auswählen
// Passworded forum?
if ($post['forum_id'])
{
$sql = 'SELECT forum_password
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $post['forum_id'];
print $sql;
$result = $db->sql_query($sql);
$forum_password = (string) $db->sql_fetchfield('forum_password');
$db->sql_freeresult($result);
if ($forum_password)
{
login_forum_box(array(
'forum_id' => $post['forum_id'],
'forum_password' => $forum_password,
));
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_pm_compose.php on line 257: Undefined index: forum_id
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 29.01.2009 22:41
von Miriam
Dann ist der von Dir gepostete Code nicht auf Zeile 257. Da steht zumindest bei mir:
Code: Alles auswählen
if (($post['forum_id'] && !$auth->acl_get('f_read', $post['forum_id'])) || (!$post['forum_id'] && !$auth->acl_getf_global('f_read')))
{
trigger_error('NOT_AUTHORISED');
}
Lade mal die Datei neu hoch. und lösche den Cache. Sichere VORHER die alte.
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 30.01.2009 11:06
von Christian Spitzhüttl
Die Zeile 257 fängt bei mir so an:
Code: Alles auswählen
if ($post['forum_id'])
{
$sql = 'SELECT forum_password
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $post['forum_id'];
print $sql;
$result = $db->sql_query($sql);
$forum_password = (string) $db->sql_fetchfield('forum_password');
$db->sql_freeresult($result);
if ($forum_password)
{
login_forum_box(array(
'forum_id' => $post['forum_id'],
'forum_password' => $forum_password,
));
Eingebaut wurde dort nur folgender Mod:
Klick mich An!
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 30.01.2009 13:49
von Miriam
Zeig mal bitte die ganze Datei her. KB:datei.
Und schreib mal vor
das hier ->
Und lösche das print wieder raus.
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 30.01.2009 15:09
von Christian Spitzhüttl
Habe ich gemacht. Jetzt schreibt er mich folgendes als Debug:
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_pm_compose.php on line 257: Undefined index: forum_id
NULL [phpBB Debug] PHP Notice: in file /includes/ucp/ucp_pm_compose.php on line 258: Undefined index: forum_id
Die Datei zum Download!
Re: phpBB-Debug beim Antworten (PN)
Verfasst: 30.01.2009 15:57
von Miriam
Neuer Versuch:
Tausche
gegen
aus.