Re: HTTP - header issue with QFC (again)
| From: | Bertrand Mansion | Date: | Thu, 20 Nov 2003 12:47:56 +0000 |
| Subject: | Re: HTTP - header issue with QFC (again) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9060@lists.php.net to get a copy of this message | ||
<barry@hpfm.biz> wrote :
> Hello again,
> I'm hitting another perplexing issue. I have the same file (diff => no
> differences) in two separate directories, and referencing different
> databases.
>
> I'm building a report, it runs in a test area but in the user area on
> the same machine, I get -
>
> Warning: Cannot add header information - headers already sent by (output
> started at /www/slsa/SLSA_Incidents/include/database_config.php:34) in
> /usr/share/pear/HTML/QuickForm/Action/Jump.php on line 53
>
> database_config.php - has only 33 lines. and I don't use the 'Jump'
> button at all!
>
> How does one track down this? What is the right technique to clearly
> identify what is causing the issue? What does one look for?
> I'm really more interested in the technique rather than a specific
> answer to this problem.
>
> This is very confusing.
QFC uses sessions to store data about the form you use.
So, it has to do some work before any content is sent to the client. The
error message you get is because you send something to the client before all
work involved by the section is finished. You should watch for echo, print
and html output (or even a whitespace outside the php tags) and delay the
output once you are done with QFC.
Bertrand Mansion
Mamasam