ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Cannot modify header information - headers already sent problem

March 04, 2008 9:47pm

Subscribe [10]
  • #16 / Sep 02, 2010 4:55pm

    Mojtaba

    2 posts

    i’ve had the same problem with session. i looked for any extra spaces in any file but nothing found!
    i just turned on output_buffering in php.ini and yess it workedd!

  • #17 / Sep 02, 2010 8:08pm

    Bart v B's avatar

    Bart v B

    227 posts

    i’ve had the same problem with session. i looked for any extra spaces in any file but nothing found!
    i just turned on output_buffering in php.ini and yess it workedd!

    I think that is working around the real problem here..  😛

    Did you put the end tags on youre files?

    say something like this:

    <?php
    
    echo 'hello world!';
    
    ?>

    Then you can remove the end tag (?>), and maybe youre problem is solved..
    A better example:

    <?php
    
    class Test extends Controller()
    {
      public function index()
      {
        echo 'Controller Test called!';
      }
    }
    
    ?> <- this end tag must be removed..
  • #18 / Jul 15, 2011 5:42am

    dekaru

    1 posts

    Hey guys! This post helped me a lot 😊 Apparently I also had some issues with encoding and line endings. I edited some files and it was all running smoothly again 😊

    I posted my experience here:

    http://www.ixpiabot.com/?p=209

    Thanks!

  • #19 / Oct 11, 2011 10:58am

    Philippe

    1 posts

    On windows with wamp there is no error. However on a linux bug persist. .... To solve it :
    remove all echo, print, before you call the redirect function in (system/URL_HELPER.php).
    Take care also on your encoding (ansi,utf8) file saving. Prefered ANSI.

  • #20 / Nov 09, 2011 7:43am

    Dear Bilal

    1 posts

    Here is 1 more thing i wanna tell you.i was getting same error checked my code thrice got not space So at least after spending 20 mins i got the solution it was actually something wrong with Title/Encoding of document.

    if you are using dreamweaver open the file mentioned in error and press CTRL+j go to “Title/Encoding” and make sure “Unicode Normalization Form” is set to “None” and Include Unicode Signature(BOM) is unchecked. look at attached image.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases