Page 1 of 1

Cannot modify header information

Posted: 5. July 2008 22:00
by okidoki
I! Im trying to install this mod, but Im getting thir error.

[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3533: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3535: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3536: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3537: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)

And I Cannot acess ACP, because that:

[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/constants.php:249)

How I fix it?

Look>

http://www.portaldetonando.com.br/forum/

Thank!

Re: Cannot modify header information

Posted: 6. July 2008 00:35
by thomas.d
Hi okidoki (here we greet each other ... ;) )

are the files that you have edited saved in the correct format "UTF-8 without BOM"?

Which editor you have used?

Re: Cannot modify header information

Posted: 6. July 2008 02:10
by clyde4210
looks like you have did one of your edits incorrect. recheck all your edits. if your style doesn't use the same tags as the styles edits, you'll have to change them lines to look like your styles tag.

Re: Cannot modify header information

Posted: 6. July 2008 12:48
by Kevin
thomas.d wrote:are the files that you have edited saved in the correct format "UTF-8 without BOM"?
Especially the language files - have you done edits to them?

Re: Cannot modify header information

Posted: 6. July 2008 16:07
by okidoki
Thanks for the answers!

I will check my edits.

Im using subsilver2. I used wordpad, and dont maked any edits in language files yet.

Re: Cannot modify header information

Posted: 6. July 2008 16:09
by okidoki
I checked my edits in notepad, saved e uploaded again. The bug still.
I dont maked the instructions for the theme prosilver, because I use subsilver2, then I maked the instructions for subsilver2.

Here are all my edited files:

http://www.portaldetonando.com.br/edits.zip


In time:

I dont maked any modifications on .htaccess, cause I couldnt find it.

Re: Cannot modify header information

Posted: 6. July 2008 18:24
by thomas.d
Hi okidoki,

without looking closer to your edits, I see that you have at least one blank space/line after "?>" in constants.php.

Remove these (so the end of the file is "?>" and nothing behind it!) and try again.

Re: Cannot modify header information

Posted: 6. July 2008 22:44
by Kevin
okidoki wrote:I dont maked any modifications on .htaccess, cause I couldnt find it.
Configure your FTP client to display hidden files, than you'll see the .htaccess.

Re: Cannot modify header information

Posted: 6. July 2008 23:39
by okidoki
Thanks guys!
To remove the spaces from constants.php worked.

But now I destroyed some thing in templates files. I edited the main_menu.html and now this message appears:

Parse error: syntax error, unexpected '}' in /home/pdl755/public_html/forum/cache/tpl_subsilver2_overall_header.html.php on line 163

I got the overall_header.html, renamed to tpl_subsilver2_overall_header.html.php and putted in the cache folder. Now the pages is this:

Image

I tryed to purge chace several times, but the first message always come back.

:oops:

Re: Cannot modify header information

Posted: 7. July 2008 00:21
by thomas.d
Hi okidoki,

go and upload fresh main_menu.html and overall_header.html. Look, if it works.

If so, re-edit the files carefully!

No, you will not upload files manually to the cache-folder!

Delete tpl_subsilver2_overall_header.html.php from your cache folder and purge the cache via the ACP after uploading the edited files.

Re: Cannot modify header information

Posted: 7. July 2008 05:13
by okidoki
I always did my own edits in phpbb, but now something very crazy are happening.

I deleted all the subsilver cache and upload the original files of subsilver. This work and the forum come back.

After that, I edited de main_menu.html again. Only this file, by editor of cpanel.

Now, my forum are always in blank page. I restored the original main_menu.html file, but the forum still in black page. For luck, I'm in logged in ACP. The preview of prosilver not work too.

How I understand that? I didnt nothing!

Sorry, I´m not so stupid always.

Re: Cannot modify header information

Posted: 7. July 2008 13:06
by thomas.d
Hi okidoki,

don't worry, we don't assume you as stupid ... ;)

Blank pages are most often caused by simple errors like a whitespace added before the <?php at the start of one of the files, or some other typographical error - the whitespace issue is most most often caused by using the wrong text editor. Some text editors can't save the file in the correct format - causing extra junk to get placed at the start of the file.

Re: Cannot modify header information

Posted: 8. July 2008 04:59
by okidoki
I think that now I will win. :)

The problem was a wrong edit of language file.

Thanks!!!!!! Amazing support!

(More questions are comming, wait...) :oops:

Re: Cannot modify header information

Posted: 8. July 2008 08:05
by Kevin
Kevin wrote:Especially the language files - have you done edits to them?
okidoki wrote:The problem was a wrong edit of language file.
So the hint was already there a few posts before. ;)