MyBB Community Forums

Full Version: Index error - headers already sent.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I have got a problem I was installing some plugins and after deleting them the mybb show error:

Warning [2] Cannot modify header information - headers already sent by (output started at /var/www/vhosts/pgc-cs.eu/httpdocs/index.php:1) - Line: 1542 - File: inc/functions.php PHP 5.2.8-1hardy~ppa1 (Linux)
File 	Line 	Function
[PHP] 	  	errorHandler->error
/inc/functions.php 	1542 	header
/inc/class_session.php 	106 	my_setcookie
/global.php 	56 	session->init
/index_staty.php 	15 	require_once
/index.php 	17 	require_once

header($cookie, false); 
-> line from functions

What should I fix to make it work good?

Sorry for english but I worte it very quickly.
Did you manually edit one or more .php files with Notepad?
Yes, I do.

But I have go proble when I replace my index.php with oryginal index.php the subforums are not working.
Make any edits that you need to make with a text editor other than Notepad. Use Wordpad, Notepad++, Notepad2, etc.

So, download the original files and then make the changes you need to with another text editor.