Support » Fixing WordPress » 'Cannot modify header information' Problem.

  • Hi buddies,
    I’m facing this problem for few days now. I went through the forums and searched, but I couldn’t find the solution for my problem.
    Thanks for anyone who can help!

    Warning: Cannot modify header information – headers already sent by (output started at /home/wrestli2/public_html/wp-content/themes/custom-community/header.php:3) in /home/wrestli2/public_html/wp-includes/pluggable.php on line 876

Viewing 9 replies - 1 through 9 (of 9 total)
  • By the way, I’m facing this problem only when I’m logged on.

    esmi

    (@esmi)

    Forum Moderator

    Thank you for you fast reply, but it doesn’t work.
    I’ve tried it before I posted.

    esmi

    (@esmi)

    Forum Moderator

    What exactly did you do?

    Also have a similar problem, getting
    Warning: Cannot modify header information – headers already sent by (output started at /home/content/39/7829339/html/wp-content/themes/twentyten/functions.php:1) in /home/content/39/7829339/html/wp-login.php on line 368

    when attempting to login to my blog.

    I cannot seem to find any such directories or files.

    Wow! Talk about obscure!

    I managed to fix my problem by downloading (FTP) my twentyten/functions.php
    I then edited it with a text editor (GEDIT) and saw nothing wrong – however I suspected bad chars at the beginning of the file and/or near the end of the first line where there was a ?> <?php

    I carefully placed my cursor at the end of the first line of the file and moved it left until it was to the left of the <?php

    I then backspaced up to and including the > of the ?> and then re-added the > and pressed the enter – all that to be sure no non-printing chars were between the ?> and the <?php

    I then went to the first line of the file, placed the cursor well into the line and backed up to the < of the <?php – I pressed enter, then used ctl-shift-home to select everyting in the file from there to the top. (Should have been nothing, but apparently it wasn’t) – i deleted the selected “spaces”.

    saving the file and uploading (FTP) back over the previous twentyten/functions.php then going to the login page on my browser.

    All is well.

    Much of this foolishness could be avoided by using a text editor which would show ALL characters, printing or otherwise.

    tl;dr There were non-printing chars in the first line of my twentyten/functions.php

    I did NOT put them there – never edited the file before – I have no idea how they got there. Not happy about that.

    That process isn’t working for me and I’m still getting the error message. Any one else have any suggestions?

    @mycupandchaucer – please start your own thread and post the actual error you are getting — it shows which file has the problem — so that makes it easier for someone to help you fix it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘'Cannot modify header information' Problem.’ is closed to new replies.