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');