Re: [symfony-users] Re: headers already sent

2010-08-30 Thread Stéphane
You mean you are writting HTML within actions ?


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Mon, Aug 30, 2010 at 3:18 PM, bibob  wrote:

> Hi,
> If I write "return sfView::NONE;" at the end of the function, the
> problem is solved, but I'm not sure that it is very clean and elegant.
> I rather think that I have to rewrite the functions and expurgate all
> the HTML instructions from them.
> Thank you all for your help.
>
> On 25 août, 19:11, Florian  wrote:
> > IMHO, this is not a HTML header problem but a HTTPheadersproblem. It
> > happens when php tris to send httpheaders(via header() function )
> > after havingsentsome http body response!
> >
> > On 25 août, 12:57, Lutz  wrote:
> >
> > > This message generally occurs, when the webserver is asked to send the
> > > header of the HTML-page, but some content of the body-section had
> > >alreadybeen send to the  client (and so the header).
> > > I experienced this behaviour when working with symfony (1.4), when you
> > > do have an 'echo' or any other html-output in your action class.
> > > Use the action class for actions and for output the templates, this
> > > should solve the problem.
> >
> > > The comment about the space, carriage return or closing '?>' I saw
> > > several times as solution for this issue also, but me personally was
> > > never able to reproduce that in my cases.
> >
> > > BR,
> > > Lutz
> >
> > > On 25 Aug., 11:33, bibob  wrote:
> >
> > > > Hi,
> > > > Thank you for your answer.
> > > > I don't find a "bad" space character anywhere in the actions.class or
> > > > templates of my project.
> > > > It's curious because when I modify a existing report, I have no
> > > > problem, but when I create a new one, the problem appears.
> > > > Maybe, I miss a step !
> >
> > > > On 20 août, 23:25, Jochen Daum  wrote:
> >
> > > > > > Hi,
> >
> > > > > > On Sat, Aug 21, 2010 at 1:13 AM, bibob 
> wrote:
> > > > > >> Bonjour,
> > > > > >> lors du lancement d'un rapport d'administration au format .csv
> dans
> > > > > >> l'actions.class.php du module concerné, j'ai le message, en fin
> de
> > > > > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > > > > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un
> paquet de
> > > > > >> commandes HTML
> > > > > >> J'ai vérifié la présence d'espace dans les scripts que j'ai
> modifiés,
> > > > > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il
> une
> > > > > >> solution ? Merci
> >
> > > > > > its nearly always some characters after the closing ?> of the
> file. I
> > > > > > think this happens because of transmission/charset problems most
> of th
> > > > > > time.
> >
> > > > > > Short term solution is to find the file which has the additional
> space
> > > > > > characters. Long term remove ?> at the end of files. I don't know
> what
> > > > > > Symfony's policy is for that.
> >
> > > > > > Kind Regards,
> >
> > > > > > Jochen Daum
> >
> > > > > > P.S.: My french is very weak.- Zitierten Text ausblenden -
> >
> > > > - Zitierten Text anzeigen -
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: headers already sent

2010-08-30 Thread bibob
Hi,
If I write "return sfView::NONE;" at the end of the function, the
problem is solved, but I'm not sure that it is very clean and elegant.
I rather think that I have to rewrite the functions and expurgate all
the HTML instructions from them.
Thank you all for your help.

On 25 août, 19:11, Florian  wrote:
> IMHO, this is not a HTML header problem but a HTTPheadersproblem. It
> happens when php tris to send httpheaders(via header() function )
> after havingsentsome http body response!
>
> On 25 août, 12:57, Lutz  wrote:
>
> > This message generally occurs, when the webserver is asked to send the
> > header of the HTML-page, but some content of the body-section had
> >alreadybeen send to the  client (and so the header).
> > I experienced this behaviour when working with symfony (1.4), when you
> > do have an 'echo' or any other html-output in your action class.
> > Use the action class for actions and for output the templates, this
> > should solve the problem.
>
> > The comment about the space, carriage return or closing '?>' I saw
> > several times as solution for this issue also, but me personally was
> > never able to reproduce that in my cases.
>
> > BR,
> > Lutz
>
> > On 25 Aug., 11:33, bibob  wrote:
>
> > > Hi,
> > > Thank you for your answer.
> > > I don't find a "bad" space character anywhere in the actions.class or
> > > templates of my project.
> > > It's curious because when I modify a existing report, I have no
> > > problem, but when I create a new one, the problem appears.
> > > Maybe, I miss a step !
>
> > > On 20 août, 23:25, Jochen Daum  wrote:
>
> > > > > Hi,
>
> > > > > On Sat, Aug 21, 2010 at 1:13 AM, bibob  
> > > > > wrote:
> > > > >> Bonjour,
> > > > >> lors du lancement d'un rapport d'administration au format .csv dans
> > > > >> l'actions.class.php du module concerné, j'ai le message, en fin de
> > > > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > > > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un paquet 
> > > > >> de
> > > > >> commandes HTML
> > > > >> J'ai vérifié la présence d'espace dans les scripts que j'ai modifiés,
> > > > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> > > > >> solution ? Merci
>
> > > > > its nearly always some characters after the closing ?> of the file. I
> > > > > think this happens because of transmission/charset problems most of th
> > > > > time.
>
> > > > > Short term solution is to find the file which has the additional space
> > > > > characters. Long term remove ?> at the end of files. I don't know what
> > > > > Symfony's policy is for that.
>
> > > > > Kind Regards,
>
> > > > > Jochen Daum
>
> > > > > P.S.: My french is very weak.- Zitierten Text ausblenden -
>
> > > - Zitierten Text anzeigen -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: headers already sent

2010-08-25 Thread Stéphane
Yes, it is the HTTP headers, not the HTML  thing.

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Wed, Aug 25, 2010 at 7:11 PM, Florian wrote:

> IMHO, this is not a HTML header problem but a HTTP headers problem. It
> happens when php tris to send http headers (via header() function )
> after having sent some http body response!
>
>
> On 25 août, 12:57, Lutz  wrote:
> > This message generally occurs, when the webserver is asked to send the
> > header of the HTML-page, but some content of the body-section had
> > already been send to the  client (and so the header).
> > I experienced this behaviour when working with symfony (1.4), when you
> > do have an 'echo' or any other html-output in your action class.
> > Use the action class for actions and for output the templates, this
> > should solve the problem.
> >
> > The comment about the space, carriage return or closing '?>' I saw
> > several times as solution for this issue also, but me personally was
> > never able to reproduce that in my cases.
> >
> > BR,
> > Lutz
> >
> > On 25 Aug., 11:33, bibob  wrote:
> >
> >
> >
> > > Hi,
> > > Thank you for your answer.
> > > I don't find a "bad" space character anywhere in the actions.class or
> > > templates of my project.
> > > It's curious because when I modify a existing report, I have no
> > > problem, but when I create a new one, the problem appears.
> > > Maybe, I miss a step !
> >
> > > On 20 août, 23:25, Jochen Daum  wrote:
> >
> > > > > Hi,
> >
> > > > > On Sat, Aug 21, 2010 at 1:13 AM, bibob 
> wrote:
> > > > >> Bonjour,
> > > > >> lors du lancement d'un rapport d'administration au format .csv
> dans
> > > > >> l'actions.class.php du module concerné, j'ai le message, en fin de
> > > > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > > > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un
> paquet de
> > > > >> commandes HTML
> > > > >> J'ai vérifié la présence d'espace dans les scripts que j'ai
> modifiés,
> > > > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> > > > >> solution ? Merci
> >
> > > > > its nearly always some characters after the closing ?> of the file.
> I
> > > > > think this happens because of transmission/charset problems most of
> th
> > > > > time.
> >
> > > > > Short term solution is to find the file which has the additional
> space
> > > > > characters. Long term remove ?> at the end of files. I don't know
> what
> > > > > Symfony's policy is for that.
> >
> > > > > Kind Regards,
> >
> > > > > Jochen Daum
> >
> > > > > P.S.: My french is very weak.- Zitierten Text ausblenden -
> >
> > > - Zitierten Text anzeigen -
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: headers already sent

2010-08-25 Thread Florian
IMHO, this is not a HTML header problem but a HTTP headers problem. It
happens when php tris to send http headers (via header() function )
after having sent some http body response!


On 25 août, 12:57, Lutz  wrote:
> This message generally occurs, when the webserver is asked to send the
> header of the HTML-page, but some content of the body-section had
> already been send to the  client (and so the header).
> I experienced this behaviour when working with symfony (1.4), when you
> do have an 'echo' or any other html-output in your action class.
> Use the action class for actions and for output the templates, this
> should solve the problem.
>
> The comment about the space, carriage return or closing '?>' I saw
> several times as solution for this issue also, but me personally was
> never able to reproduce that in my cases.
>
> BR,
> Lutz
>
> On 25 Aug., 11:33, bibob  wrote:
>
>
>
> > Hi,
> > Thank you for your answer.
> > I don't find a "bad" space character anywhere in the actions.class or
> > templates of my project.
> > It's curious because when I modify a existing report, I have no
> > problem, but when I create a new one, the problem appears.
> > Maybe, I miss a step !
>
> > On 20 août, 23:25, Jochen Daum  wrote:
>
> > > > Hi,
>
> > > > On Sat, Aug 21, 2010 at 1:13 AM, bibob  wrote:
> > > >> Bonjour,
> > > >> lors du lancement d'un rapport d'administration au format .csv dans
> > > >> l'actions.class.php du module concerné, j'ai le message, en fin de
> > > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un paquet de
> > > >> commandes HTML
> > > >> J'ai vérifié la présence d'espace dans les scripts que j'ai modifiés,
> > > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> > > >> solution ? Merci
>
> > > > its nearly always some characters after the closing ?> of the file. I
> > > > think this happens because of transmission/charset problems most of th
> > > > time.
>
> > > > Short term solution is to find the file which has the additional space
> > > > characters. Long term remove ?> at the end of files. I don't know what
> > > > Symfony's policy is for that.
>
> > > > Kind Regards,
>
> > > > Jochen Daum
>
> > > > P.S.: My french is very weak.- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: headers already sent

2010-08-25 Thread Lutz
This message generally occurs, when the webserver is asked to send the
header of the HTML-page, but some content of the body-section had
already been send to the  client (and so the header).
I experienced this behaviour when working with symfony (1.4), when you
do have an 'echo' or any other html-output in your action class.
Use the action class for actions and for output the templates, this
should solve the problem.

The comment about the space, carriage return or closing '?>' I saw
several times as solution for this issue also, but me personally was
never able to reproduce that in my cases.

BR,
Lutz

On 25 Aug., 11:33, bibob  wrote:
> Hi,
> Thank you for your answer.
> I don't find a "bad" space character anywhere in the actions.class or
> templates of my project.
> It's curious because when I modify a existing report, I have no
> problem, but when I create a new one, the problem appears.
> Maybe, I miss a step !
>
> On 20 août, 23:25, Jochen Daum  wrote:
>
>
>
> > > Hi,
>
> > > On Sat, Aug 21, 2010 at 1:13 AM, bibob  wrote:
> > >> Bonjour,
> > >> lors du lancement d'un rapport d'administration au format .csv dans
> > >> l'actions.class.php du module concerné, j'ai le message, en fin de
> > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un paquet de
> > >> commandes HTML
> > >> J'ai vérifié la présence d'espace dans les scripts que j'ai modifiés,
> > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> > >> solution ? Merci
>
> > > its nearly always some characters after the closing ?> of the file. I
> > > think this happens because of transmission/charset problems most of th
> > > time.
>
> > > Short term solution is to find the file which has the additional space
> > > characters. Long term remove ?> at the end of files. I don't know what
> > > Symfony's policy is for that.
>
> > > Kind Regards,
>
> > > Jochen Daum
>
> > > P.S.: My french is very weak.- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: headers already sent

2010-08-25 Thread bibob
Hi,
Thank you for your answer.
I don't find a "bad" space character anywhere in the actions.class or
templates of my project.
It's curious because when I modify a existing report, I have no
problem, but when I create a new one, the problem appears.
Maybe, I miss a step !

On 20 août, 23:25, Jochen Daum  wrote:
> > Hi,
>
> > On Sat, Aug 21, 2010 at 1:13 AM, bibob  wrote:
> >> Bonjour,
> >> lors du lancement d'un rapport d'administration au format .csv dans
> >> l'actions.class.php du module concerné, j'ai le message, en fin de
> >> fichier, "cannot modifiy header information -headerssentin /lib/
> >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un paquet de
> >> commandes HTML
> >> J'ai vérifié la présence d'espace dans les scripts que j'ai modifiés,
> >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> >> solution ? Merci
>
> > its nearly always some characters after the closing ?> of the file. I
> > think this happens because of transmission/charset problems most of th
> > time.
>
> > Short term solution is to find the file which has the additional space
> > characters. Long term remove ?> at the end of files. I don't know what
> > Symfony's policy is for that.
>
> > Kind Regards,
>
> > Jochen Daum
>
> > P.S.: My french is very weak.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Headers already sent

2010-05-18 Thread Raphael Schumacher
the  wrote:
> I'd add as common cases, classes with spaces BEFORE the http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Headers already sent

2010-05-18 Thread Thor
I'd add as common cases, classes with spaces BEFORE the  wrote:
> A HTTP response is composed of
>   a. HTTP headers
>   b. HTTP content
> If you try to do
> echo 'aaa';
> header('');
> You will get this error.
>
> Check if the action throws out an error or outputs something, for this
> do an exit before
> the first header() call in sfWebResponse.
>
> Common situations where I encountered this problem:
> 1. PHP tags closed that have extra white space at the end of the file
> 2. UTF-8 BOM signature
>
>    gabriel
>
> On May 18, 4:46 am, Samuel Morhaim  wrote:
>
>
>
>
>
> > I am trying to move my site from one host to another... same code on both..
> > however on the new server, one of my modules is throwing this
>
> > *Warning*: Cannot modify header information - headers already sent by
> > (output started at /var/www/
> > zizzerdog.com/httpdocs/apps/backend/modules/message/actions/actions.class.p 
> > hp:1)
> > in 
> > */usr/share/php/PEAR/symfony-1.4.4/lib/response/sfWebResponse.class.php*on
> > line
> > *336*
>
> > *Warning*: Cannot modify header information - headers already sent by
> > (output started at /var/www/
> > zizzerdog.com/httpdocs/apps/backend/modules/message/actions/actions.class.p 
> > hp:1)
> > in 
> > */usr/share/php/PEAR/symfony-1.4.4/lib/response/sfWebResponse.class.php*on
> > line
> > *357
>
> > Any ideas on how to fix this?  Its exactly the same code which is working
> > fine on the other host..
>
> > *
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Headers already sent

2010-05-17 Thread pghoratiu
A HTTP response is composed of
  a. HTTP headers
  b. HTTP content
If you try to do
echo 'aaa';
header('');
You will get this error.

Check if the action throws out an error or outputs something, for this
do an exit before
the first header() call in sfWebResponse.

Common situations where I encountered this problem:
1. PHP tags closed that have extra white space at the end of the file
2. UTF-8 BOM signature

   gabriel


On May 18, 4:46 am, Samuel Morhaim  wrote:
> I am trying to move my site from one host to another... same code on both..
> however on the new server, one of my modules is throwing this
>
> *Warning*: Cannot modify header information - headers already sent by
> (output started at /var/www/
> zizzerdog.com/httpdocs/apps/backend/modules/message/actions/actions.class.p 
> hp:1)
> in */usr/share/php/PEAR/symfony-1.4.4/lib/response/sfWebResponse.class.php*on
> line
> *336*
>
> *Warning*: Cannot modify header information - headers already sent by
> (output started at /var/www/
> zizzerdog.com/httpdocs/apps/backend/modules/message/actions/actions.class.p 
> hp:1)
> in */usr/share/php/PEAR/symfony-1.4.4/lib/response/sfWebResponse.class.php*on
> line
> *357
>
> Any ideas on how to fix this?  Its exactly the same code which is working
> fine on the other host..
>
> *
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en