• Resolved p-koustrup

    (@p-koustrup)


    Hey. and tanks for a great blog system πŸ™‚
    iam trying to instal it on my website i followed the “Famous 5-minute install” and i get to nr 5.

    here i get this error
    Warning: Cannot modify header information - headers already sent by (output started at /data/web/Perfkdk/Perfk.dk/wp-config.php:1) in /data/web/Perfkdk/Perfk.dk/wp-admin/install.php on line 15

    i cant log in if i ignore it. i have tryed to look on the forum for help ( no luck) and i have tryed what is mention in the FAQ (no luck)

    so now iam asking. what can i do?. it is a fresh install from a file i just downloaded from wordpress.org only changed what i had to do in wp-config.php

    Hope someone can help me

    /Per Koustrup.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Warning: Cannot modify header information – headers already sent by (output started at /data/web/Perfkdk/Perfk.dk/wp-config.php:1)

    The error message tells you exactly what you need to know. You changed your wp-config.php file incorrectly.

    You’re supposed to only modify the username and password and mysql server and such. Not insert blank or empty lines at the beginning of the file.

    It is very, very important that wp-config.php start with <?php and end with ?> with nothing outside of those lines. Not blank lines, not spaces, not tabs, not anything.

    Correct your wp-config.php file and try again.

    Thread Starter p-koustrup

    (@p-koustrup)

    This is my wp-config.php file

    <?php
    define('DB_NAME', 'Perfkdk');
    define('DB_USER', 'Perfkdk');
    define('DB_PASSWORD', 'XXXXXXXXX');
    define('DB_HOST', 'mysql.webzero.dk');
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
    $table_prefix  = 'wp_';
    define ('WPLANG', '');
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    there is no blank spaces anywere… πŸ™

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    There’s not any room for debate on this, something is before the initial <?php line. Just because you can’t see it doesn’t necessarily mean that it isn’t there.

    What text editor are you using? Try using a very simple text editor, like notepad. Start with a fresh copy of the wp-config-sample.php file if you have to do so.

    Thread Starter p-koustrup

    (@p-koustrup)

    It took me some time.

    but now it works πŸ™‚

    I went trugh evry file that it told me was an error in (8-9 files)

    put them trough Wordpad, deleted the <?php and ?> and typed it in my selth.

    And then it worked πŸ™‚ thx for the help πŸ™‚

    Hello, I couldn’t believe what is written above, but tried ist myself. And yes: The downloaded Version itself is wrong programmed – even if one only writes in the asked data and leaves everything as it is. This is the code which – after hours – does work:

    <?php // ** MySQL settings ** //
    define(‘DB_NAME’, ‘XXX’); // The name of the database
    define(‘DB_USER’, ‘XXX’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘XXX’); // …and password
    define(‘DB_HOST’, ‘XXX’); // 99% chance you won’t need to change this value
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);
    define(‘WPLANG’, ‘de’);

    // You can have multiple installations in one database if you give each a unique prefix
    //$table_prefix = ‘wpkho_’; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to ‘de’
    // to enable German language support.

    /* That’s all, stop editing! Happy blogging. */

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

    Maybe this helps someone else.
    Greetings from Germany.

    Make sure nothing is after the ?> at the end of the wp-config.php file… no spaces and no line returns. A couple line breaks showed up at the end when I was editing in Dreamweaver for some reason. Once I took them out, all was good. Thanks for the help Otto42!

    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://&#8221;.$domain.$path.”/wp-admin/admin.php;

    echo “<script>”;
    echo “location = ‘$urlnew’;”;
    echo “</script>”;
    echo $urlnew;
    ?>
    Purab Kharat

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Warning: Cannot modify header information’ is closed to new replies.