00852: Page Custom : "Cannot modify header information"

Summary: Page Custom : "Cannot modify header information"
Created: 2007-01-02 09:47
Status: Closed - replied
Category: Bug
From: xa?
Assigned:
Priority: 1
Version: 2006/12
OS: Apache / PHP 4.4.0

Description: Error when trying to customize a page in the /local folder. I just added <?php

      $PageLogoUrl = "/myimages/chess.gif";

...as in the example.

Got the error message : "Warning: Cannot modify header information - headers already sent by (output started at /data/www/a/s/xxx/Accueil.Présentation.php:2) in /data/www/a/s/xxx/pmwiki.php on line 885"

Line 885 is :

    foreach($HTTPHeaders as $h) (@$sent++) ? @header($h) : header($h);

I also put every folder on 777.

please help...

This happens when the <?php is not the very first thing of the file. Make sure there are no spaces or other characters before it. --Petko July 07, 2009, at 10:32 PM