WordPress.org

Ready to get started?Download WordPress

Forums

'Cannot modify header information' Problem. (10 posts)

  1. uploa
    Member
    Posted 1 year ago #

    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

  2. uploa
    Member
    Posted 1 year ago #

    By the way, I'm facing this problem only when I'm logged on.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

  4. uploa
    Member
    Posted 1 year ago #

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

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    What exactly did you do?

  6. jpantone
    Member
    Posted 1 year ago #

    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.

  7. jpantone
    Member
    Posted 1 year ago #

    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.

  8. mycupandchaucer
    Member
    Posted 1 year ago #

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

  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @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.

  10. mycupandchaucer
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic