The MU forums have moved to WordPress.org

Cannot modify header information (10 posts)

  1. Kyderoy
    Member
    Posted 19 years ago #

    I got the following error when I tried to create a new blog on a newly installed site.

    Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\Wordpress_MU\wp-content\themes\home\header.php:5) in C:\Inetpub\Wordpress_MU\wp-signup.php on line 341

    Any ideas on how to fix this?

  2. duckies
    Member
    Posted 19 years ago #

    same problem: error after trying to upload an image:
    Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/sitexx/fst/var/www/html/or/wp-admin/admin-functions.php:1885) in /home/virtual/sitexx/fst/var/www/html/or/wp-includes/functions.php on line 1151

  3. drmike
    Member
    Posted 19 years ago #

    What is your current setup of your server?

    Have you done any modifications to the code?

    Any plugins installed?

    How did this error occur?

    How about a URL?

    What version of the software are you running?

    Have you done a search of the forums already for previous threads on this topic?

    Folks, you don't give us a whole lot to go on here.

  4. duckies
    Member
    Posted 19 years ago #

    http://www.or.werkgroepen.net/index.php
    http://www.werkgroepen.net/or/index.php

    login
    admin / 123456
    upload a .jpg and the erro occurs..

    /
    /home/virtual/site66/fst/var/www/html/or/

    no plugins
    no modifications

    nightly wpmu 20060805 first error detected
    deleted everything., then installation with
    nightly wpmu 20060803

  5. duckies
    Member
    Posted 19 years ago #

    strangë:
    NOT logged in the root, as a sub-siteadmin so to say, there is no problem with uploading imagges. To blogs.dir/2/files, no problem

  6. mysticwolfpress
    Member
    Posted 19 years ago #

    I'm still trying to install and I started getting this while uploading wp-config.php

    It happened with an identical file that I had already used, and with everything since.

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'mysticwo_wp_5'); // The name of the database
    define('DB_USER', 'mysticwo_wp_1'); // Your MySQL username
    define('DB_PASSWORD', 'xxxx'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    define('VHOST', 'VHOSTSETTING');
    $base = '/';

    // double check $base
    if( $base == 'BASE' )
    die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );

    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    define( "WP_USE_MULTIPLE_DB", false );

    /* Stop editing */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    Thanks,
    Robert

  7. andrea_r
    Moderator
    Posted 19 years ago #

    Check for whitespace at the end of the file. That is, there shoudl be nothing - no space, no carriage return, NOTHING at the end of the file, except for the last ?>

  8. drmike
    Member
    Posted 19 years ago #

    The modify headers issue is discussed in the WP codex and we've discussed it a few times as well here in the forums. IIRC whitespace exists with one of the two files that Andrea mentions. (the first one?) Please check both files though.

  9. peakpeak
    Member
    Posted 19 years ago #

    I have the same error: Which two files are having whitespace? Is there a new download that amends this?

  10. purabdk
    Member
    Posted 17 years ago #

    i solved this problem
    use this code
    <?
    //dont use header function in wordpress-wp_signup.php
    global $domain;
    global $path;
    //change urlnew variable as per requirment
    $urlnew = "http://".$domain.$path."/wp-admin/admin.php;

    echo "<script>";
    echo "location = '$urlnew';";
    echo "</script>";
    echo $urlnew;
    ?>

About this Topic