[TYPO3-german] "headers already sent" bei normalem php-script

Martin Holtz typo3 at martinholtz.de
Tue Jan 17 20:01:40 CET 2006


Hi Christoph,

> Wenn ich ein PHP-Script in mein Template include, erhalte ich folgende
> Fehlermeldung:
> 
> Warning: session_register():
> Cannot send session cache limiter - headers already sent (output started
> at /home2/www/htdocs/fileadmin/templates/scripts/login.php:8)
> 
> in
> /home2/www/htdocs/typo3conf/ext/de_phpot/res1/phpot/class.tx_dephpot_phpopen
> tracker_container.php on line 39
> 
> 
> ich include das PHP-Script wie folgt:
> 
> lib.LeftContent = PHP_SCRIPT
> lib.LeftContent.file= fileadmin/templates/scripts/login.php
> 
> Den Inhalt des PHP-Scripts habe ich auf folgendes reduziert:
> 
> <?php
> $content =  'test';
> ?>
> 
> 
> Woher kommt der Fehler? Und was noch viel wichtiger ist: wie kann ich
> diesen verhinden? Hängt das mit der Session zusammen?
kann es sein, dass du vor oder nach dem <?php noch Leerzeichen oder
Zeilenumbrüche hast?
Vielleicht liegt es daran?

gruß,
martin



More information about the TYPO3-german mailing list