![]() |
Cannot Modify Header Information Error - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Database Programming (https://www.supportforums.net/forumdisplay.php?fid=28) +---- Thread: Cannot Modify Header Information Error (/showthread.php?tid=2153) |
Cannot Modify Header Information Error - AnonymouS12 - 10-25-2009 Hello People, All members of my site have been randomly getting this error: Warning [2] Cannot modify header information - headers already sent by (output started at /home/alliance/public_html/forums/index.php:1) - Line: 1541 - File: inc/functions.php PHP 5.2.9 (Linux) File Line Function [PHP] errorHandler->error /inc/functions.php 1541 header /inc/class_session.php 106 my_setcookie /global.php 56 session->init /index.php 19 require_once It's not happening always. It's only on Index page and sometimes It loads fine without errors, but sometimes it displays the error above. I would like to know what does this mean and how can i fix it. Thanks in advance! RE: Cannot Modify Header Information Error - Solidus - 10-25-2009 Take a look at the default index.php & inc/functions.php and see how yours is different. That will be why you're getting an error. RE: Cannot Modify Header Information Error - AnonymouS12 - 10-25-2009 Thanks iBruteforce, i'll check if you are right. RE: Cannot Modify Header Information Error - Omniscient - 10-25-2009 Usually this is because data is sent to the browser before the script is executed properly. You can check to see if any characters exist before php is initiated and headers sent. <? There should not be anything before that line. Not even a space. You can try to upload the files included in the error from a fresh mybb download. You may have corrupted a file during an edit. RE: Cannot Modify Header Information Error - AnonymouS12 - 10-26-2009 I've checked both Functions.php and Index.php of my board and the default one's and didn't see anything different. However, recently I have screwed the footer of my theme, so I have copied and pasted the footer of default MyBB Theme. Maybe this could cause the problem? I don't really see anything that could cause it, however here's the footer : Code: <br /> RE: Cannot Modify Header Information Error - AnonymouS12 - 10-27-2009 I've compared another time to make sure and the files are completely same, no changes. What could be causing that? RE: Cannot Modify Header Information Error - AnonymouS12 - 10-28-2009 This is really annoying. I've compared all the files menitored in the error and checked it the board on the validators - Everything clean but the goddamn error is still showing! RE: Cannot Modify Header Information Error - Joshuam08 - 10-28-2009 This is what happens when you edit a PHP file in notepad ![]() RE: Cannot Modify Header Information Error - AnonymouS12 - 10-28-2009 Awesome. You was right. Thank you dude! RE: Cannot Modify Header Information Error - manipulate - 11-11-2009 Yeah Notepad is terrible for stuff like that; it always ends up adding weird characters- ALWAYS use something else. |