WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "Cannot modify header information" issue (4 posts)

  1. musto
    Member
    Posted 4 years ago #

    Hi,

    I've just installed wordpress and edited my wp-config. Install was ok. Now, when I access: http://www.website.com/wp-login.php I have the following lines of errors above the login form:

    Warning: Cannot modify header information - headers already sent by (output started at /home/oza/www/wp-config.php:1) in /home/oza/www/wp-login.php on line 314

    When I log in as an admin I have blank screen with:

    Warning: Cannot modify header information - headers already sent by (output started at /home/oza/www/wp-config.php:1) in /home/oza/www/wp-login.php on line 302

    Warning: Cannot modify header information - headers already sent by (output started at /home/oza/www/wp-config.php:1) in /home/oza/www/wp-login.php on line 314

    Warning: Cannot modify header information - headers already sent by (output started at /home/oza/www/wp-config.php:1) in /home/oza/www/wp-includes/pluggable.php on line 665

    Warning: Cannot modify header information - headers already sent by (output started at /home/oza/www/wp-config.php:1) in /home/oza/www/wp-includes/pluggable.php on line 666

    Warning: Cannot modify header information - headers already sent by (output started at /home/oza/www/wp-config.php:1) in /home/oza/www/wp-includes/pluggable.php on line 667

    Warning: Cannot modify header information - headers already sent by (output started at /home/oza/www/wp-config.php:1) in /home/oza/www/wp-includes/pluggable.php on line 868

    `

    I've Read the FAQ about that. I don't have any character before or after <?PHP ?>.
    As well I created a new wp-config from wp-config-sample and ovverwrittien the existing one a couple of times.
    I don't have any quotes missing in wp-config.

    Actually, I noticed there is no ?> at the end of my wp-config-sample, is that normal?

    It ends with:

    ...
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    I tried adding ?> but I still have the same issue.

    I've had a look at all files just after unzipping wordpress-2.9.2.zip, some of them including wp-config-sample don't and have ?> at the end and some of them appear to have a carriage return character after the ?>

    I've tried unzipping with winrar and 7zip, same result.

    I you have any Idea, it would be much appreciated.
    Cheers.

  2. musto
    Member
    Posted 4 years ago #

    Uninstalled - reinstalled works fine now...

  3. skins
    Member
    Posted 4 years ago #

    hi,

    i have exactly the same problem!

    except I can reach the website, it's the admin that doesn't work. I uninstalled-reinstalles but when I reach the /wp-admin/ page, I got an error:

    Warning: Cannot modify header information - headers already sent by (output started at /wp-config.php:1) in /wp-includes/pluggable.php on line 868

    When I'm on the /wp-login.php page, I got these errors:

    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-login.php on line 302
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-login.php on line 314
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 665
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 666
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 667
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 868

    I login, and then I got errors on /wp-login.php

    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-login.php on line 302
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-login.php on line 314
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 665
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 666
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 667
    Warning: Cannot modify header information - headers already sent by (output started at /home/ju82093/wp-config.php:1) in /home/ju82093/wp-includes/pluggable.php on line 868

    What should I do?

    Thanks

  4. batrachoid
    Member
    Posted 4 years ago #

    What should I do?

    First, you should start a new thread instead of piggybacking on one, especially one marked "resolved."

    Second, eliminate any blank spaces at the beginning of your wp-login.php file.

Topic Closed

This topic has been closed to new replies.

About this Topic