![]() |
HELP!!! Header already sent... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: HELP!!! Header already sent... (/showthread.php?tid=41261) |
HELP!!! Header already sent... - El Forum - 05-03-2011 [eluser]herlos[/eluser] Hello, I'm just freaking out!! Never had this error before and can't find the reason... Since 30 minutes, I get the following error, when I open a page: Quote:A PHP Error was encountered Could you please help me?? Already removed ALL the code from my controller, excepting the constructor, but still get that error. Like I said, never got that before... Thank you! Johannes HELP!!! Header already sent... - El Forum - 05-03-2011 [eluser]Sudz[/eluser] post the first line of admin.php. "<?php" must be the first word in your php file withot any space. HELP!!! Header already sent... - El Forum - 05-03-2011 [eluser]herlos[/eluser] Yeah, it is. I found the reason: Changed the coding from UTF-8 to ANSI, now it's working again ... changed it to URF-8 before, because of umlauts. But please tell me, why the coding can be a reason? Does a file in the UTF-8 format contain chars before the content?? HELP!!! Header already sent... - El Forum - 05-03-2011 [eluser]Sudz[/eluser] I don't know about 'UTF-8 to ANSI', but if you echoed somthing prior to sending header or leaving any space prior to '<?php' tag in the first line of a file You will get same error. as i experienced HELP!!! Header already sent... - El Forum - 05-03-2011 [eluser]WanWizard[/eluser] Do not change the encoding from utf-8 to something else, that will lead to issues in your views. Just make sure you use a proper text editor, that can save utf-8 files without a BOM header. HELP!!! Header already sent... - El Forum - 05-03-2011 [eluser]InsiteFX[/eluser] If you want to change the encoding you need to copy the code to the clipboard and paste it in to a new utf8 document, this is because it saves the byte marker with the code in the file! InsiteFX |