Seite 1 von 1

[phpBB Debug] PHP Notice - Session.php

Verfasst: 21.04.2010 09:34
von MeSsIaHaS
Moin,

leider kenn ich mich nicht gut genug aus, um den Fehler zu beheben.

Bekomme den Fehler:
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1041: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3551)

session.php - Zeile 1041
header('Set-Cookie: ' . $name_data . (($cookietime) ? '; expires=' . $expire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);

function.php
echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";

Sry das ich so blöd frag, aber was muss ich tun ?
hab mir den Beitrag https://www.phpbb.de/kb/headers_already_sent schon durchgelesen, verstehs aber net.. :-(

Danke vorab.
Gruß
Jürgen

Re: [phpBB Debug] PHP Notice - Session.php

Verfasst: 21.04.2010 22:40
von o_spacy_o
Hallo,
hast Du etwas verändert? Wenn ja was?
Lösch doch mal den Servercache und vor allem Deinen Browsercache inkl. Cookies.
Dann noch einmal testen.

Grüße spacy

Re: [phpBB Debug] PHP Notice - Session.php

Verfasst: 22.04.2010 01:01
von DeepSurfer
Nunja.... alle cookies löschen wäre etwas übertrieben, es reicht den (die) cookies von der Domain zu löschen.

Re: [phpBB Debug] PHP Notice - Function.php

Verfasst: 22.04.2010 17:42
von MeSsIaHaS
Hallo,

ok, hat geklappt, Meldung weg..
Vielen Dank.

hab aber noch ne weitere Meldung(en)

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4998: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3551)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 5000: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3551)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 5001: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3551)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 5002: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3551)

Dazu noch ne Idee ?

Grüßle
Jürgen

Re: [phpBB Debug] PHP Notice - Session.php

Verfasst: 22.04.2010 18:18
von DeepSurfer
Ist das ein WindowServer ?

Re: [phpBB Debug] PHP Notice - Session.php

Verfasst: 23.04.2010 01:50
von Mahony
Hallo
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4998: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3551)
Siehe dazu auch KB:headers_already_sent

Grüße: Mahony

Re: [phpBB Debug] PHP Notice - Session.php

Verfasst: 23.04.2010 21:13
von MeSsIaHaS
Guten Abend..
DeepSurfer hat geschrieben:Ist das ein WindowServer ?
Meine Testumgebung ja.
Echtsystem nein...
Mahony hat geschrieben:Hallo
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4998: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3551)
Siehe dazu auch KB:headers_already_sent
Habe ich ja, verstehe ich aber net..

Die betreffenden Zeilen in der \includes\function.php sind:
header('Content-type: text/html; charset=UTF-8');

header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');

Was genau hat es damit auf sich ?
Gruß