WordPress.org

Ready to get started?Download WordPress

Forums

How to I debug "Cannot modify header information (4 posts)

  1. LennartF
    Member
    Posted 9 years ago #

    I have successfully installed WordPress on Linux and the default blog shows upp.
    However, when I try to log in, the last step in the install process, I get

    Warning: Cannot modify header information - headers already sent by (output started at /home/frantze/public_html/wp/wp-config.php:34) in /home/frantze/public_html/wp/wp-login.php on line 123

    and 7 other similar lines.
    I have red the forum and I know that this is a pretty common problem.
    I dropped the database, deleted the entire wordpress directory, uploaded the files a second time, and I still get the error. So it can hardly be a file corruption problem.
    So how do I debug this show stopper?
    I have checked the wpp-config.php file and there is no crud before or after the only <?php tag and endtag there.
    I have not touched the php-login.php file at all, and it looks perfectly OK. There is nothing that catches the eye on line 123 in wp-login.php. My file permissions are 755, which ought to be correct.
    Any suggestions

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It's whitespace, very probably after the last ?>
    Open wp-config, go to the last line.
    It should just be
    ?>
    Put the cursor on the ? and hold DELETE down for a few seconds
    Now type the ?> again, then save without doing anything else at all.
    Whitespace
    http://faq.wordpress.net/view.php?p=7

  3. LennartF
    Member
    Posted 9 years ago #

    Whao, you guys are good! That was it. Thanx a whole lot!

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Glad it's working :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.