Veel fouten
Geplaatst: 15 feb 2005, 13:52
Hoi hoi
Moest voor iemand de volgende mod installeren: last_visit_1.2.8em
Had eerst netjes alle files van de server op de pc gezet en toen 1 voor 1 veranderd. Uploaden en kijken hoe het werkt.
Naja krijg dus volgende fout meldingen:
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/sessions.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/sessions.php on line 189
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/page_header.php on line 504
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/page_header.php on line 510
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/page_header.php on line 511
Maar in die regels kan ik geen fouten ontdekken
Sessions 188 & 189:
Page Header 500 t/m 511:
Ondertussen heb ik de dingen die veranderd moesten worden weer terug veranderd in hoe het was maar de fout blijft staan 
Moest voor iemand de volgende mod installeren: last_visit_1.2.8em
Had eerst netjes alle files van de server op de pc gezet en toen 1 voor 1 veranderd. Uploaden en kijken hoe het werkt.
Naja krijg dus volgende fout meldingen:
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/sessions.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/sessions.php on line 189
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/page_header.php on line 504
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/page_header.php on line 510
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site*/httpdocs/includes/functions.php:2) in /home/httpd/vhosts/site*/httpdocs/includes/page_header.php on line 511
Maar in die regels kan ik geen fouten ontdekken
Sessions 188 & 189:
Code: Selecteer alles
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);Code: Selecteer alles
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['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');