Seite 1 von 1

nach Serverumzug Fehler

Verfasst: 21.02.2008 21:42
von Mikro1986
Hi,

nach einem Serverumzug bekomme ich immer folgende Fehler:

Code: Alles auswählen

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/XXX/httpdocs/includes/usercp_register.php:1) in /var/www/vhosts/XXX/httpdocs/includes/page_header.php on line 746

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/XXX/httpdocs/includes/usercp_register.php:1) in /var/www/vhosts/XXX/httpdocs/includes/page_header.php on line 752

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/XXX/httpdocs/includes/usercp_register.php:1) in /var/www/vhosts/XXX/httpdocs/includes/page_header.php on line 753

Die Fehler beziehen sich auf folgende Zeilen (page_header Zeile 742 bis 753):

Code: Alles auswählen

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
kann mir da jmd helfen???

Verfasst: 21.02.2008 21:50
von sound-ks
Vll. Hilft Dir das weiter :

Was bedeutet 'headers already sent'?