In-My-Opinion.org

»Headers sent error«







knn, i really could use some help if you get the time, i have an intermittant error during posting

Warning: Cannot modify header information - headers already sent in C:\Program Files\Apache Group\Apache2\htdocs\Forum\posting.php on line 732

this happens on approximately 20% of posts, i asked for help over on the phpbb website, but there refusing because i took your advice and changed the copywrite from

Powered by phpBB © 2001, 2003 phpBB Group

to

Pow3r3d By PHP ßß 2.0.19 © 2001 - 2005 PHP ßß Group

and yes its still linked to there site, to me its unreal and petty, to them it seems to be the end of the world. but lately there support has been very far from that.

i have made sure there are no spaces before the opening and closing php tags, any other advice ?

when you have time, no rush..

posted by Strigoi
  

in-my-opinion.org -> Technology, Computers, Science, Internet -> Software by the admin -> headers sent error



Strigoi:
Warning: Cannot modify header information - headers already sent in C:\Program Files\Apache Group\Apache2\htdocs\Forum\posting.php on line 732

Yup, that's a typical error if you output text and THEN output headers. Headers are sent at several places in phpBB, for example in "page_header.php". If you output something, e.g.

echo 'hallo'

AND THEN output header via calling page_header.php, e.g.

include 'page_header.php'

then you would get such error.


posted by knn



well ive looked it over several times, and cant seem to find the error

pirates-paradise.com...

theres the file if and when you have time.

Thnx


posted by Strigoi
  



The buggy line may not necessarily be in that file. It may be in bbcode.php for example. And then in line 732 of posting.php you get the error because you try to set cookies (= try to set cookies although some output has been made already).

Oh, I know a very tricky reason that can boil your brain and is hard to trace: Check all files php files whether you have a space or an empty line or some other chars before

<?php 

or after

?> 



Because these spaces or empty lines ARE output (just like any other letter) thus they would cause an error like that.


posted by knn
  





Reply to topic






RegisterRegister
Log inLog in
The time now is 24 May 2012, 22:51
php B.B.