MyBB Community Forums

Full Version: Header Information Already Sent Out
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I had this problem like a min ago and it still shows up for guest.

I didn't know how it went away for me but it's just gone.

Do you see the problem?

http://www.elitev2.com
If site is down, the problem is that there showed up a warning, saying that index.php:6 had already sent out information then some orange about inc/functions
The following warnings occurred:
Warning [2] Cannot modify header information - headers already sent by (output started at /home/elitev2/public_html/index.php:6) - Line: 1548 - File: inc/functions.php PHP 5.2.13 (Linux)
File 	Line 	Function
[PHP] 	  	errorHandler->error
/inc/functions.php 	1548 	header
/inc/class_session.php 	365 	my_setcookie
/inc/class_session.php 	98 	session->load_guest
/globa

On inc/functions.php at line 1548 it said header($cookie, false);
This is only viewed for guests, and only at the index page.
I've tried reuploading functions.php and class_sessions but same problem
inc/functions.php

You have characters before the <?php which you should not. Could also be in index.php or global.php.
The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>).
re-upload index.php , global.php and inc/fuctions.php IF no changes were made prior to this error.
This could also be caused by a plugin, try disabling them one by one.
Thanks to all for the help, I did not have any character before the php tags so I re-uploaded index.php and global.php and it worked Smile
It was index.php with the error.