• I know that there are about 100 threads on this, but I tried everything and nothing works.

    It is a FRESH installation of wordpress. Nothing changed (except WP-config.php)

    Warning: Cannot modify header information - headers already sent by (output started at C:\Users\Breen\Documents\xampp\htdocs\wordpress\wp-config.php:1) in C:\Users\Breen\Documents\xampp\htdocs\wordpress\wp-includes\pluggable.php on line 694

    This is the error. Yes I’m using xXAMPP, I checked wp-config.php and functions.php for whitespace, but didn’t find any.

Viewing 14 replies - 1 through 14 (of 14 total)
  • the box in the upper right hand corner labeled search …

    https://www.ads-software.com/search/headers+already+sent+by+wp-config.php%3A1?forums=1

    its whitespace or linebreaks before the opening <?php in wp-config.php

    It always is, its never different.Its only the gazillionith post with the same problem.

    Thread Starter breen

    (@breen)

    <?php
    //** MySQL-Einstellungen **//
    define('DB_NAME', 'wordpress');    // Der Name der Datenbank
    define('DB_USER', 'root');     // Ihr MySQL-Benutzername
    define('DB_PASSWORD', ''); // Sowie das MySQL-Passwort
    define('DB_HOST', 'localhost');    // Diesen Parameter müssen Sie in den allermeisten F?¤llen nicht ?¤ndern
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
    
    // Wenn Sie mehrere WordPress-Installationen in einer Datenbank haben,
    // muss jede Installation ein eigenes "Tabellenpr?fix" bekommen
    $table_prefix  = 'wp_';   // Bitte nur Zahlen, Buchstaben und/oder Unterstriche
    
    // Setzen Sie für SECRET_KEY ein Passwort oder einen langen Satz ein. Sie
    // werden ihn sp?ter nicht mehr ben?tigen, daher machen Sie es ruhig lang und
    // kompliziert.  Unter https://api.www.ads-software.com/secret-key/1.0/ k?nnen Sie einen langen
    // Passwortsatz automatisch generieren lassen.
    define('SECRET_KEY', 'Fuegen Sie hier einen beliebigen Satz ein.');
    
    // ?ndern Sie den folgenden Parameter, wenn Sie eine übersetzte Version von
    // WordPress nutzen. Für die gewünschte Sprache muss eine MO-Datei in
    // wp-content/languages liegen.
    // Installieren Sie beispielsweise de_DE.mo in wp-content/languages und
    // setzen Sie WPLANG auf 'de_DE', um WordPress auf deutsch zu haben.
    define ('WPLANG', 'de_DE');
    
    /* Ab hier sind keine weiteren ?nderungen notwendig. Viel Spa? beim Bloggen! */
    
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    Tell me where the whitespace is.

    I already told you. And I should have known you would come back with that. Please, I beg, dont argue with me. I have 3 years experience on these forums, and another year running WP away from these forums. And Ive probably answered this same question 100 times. let me go look at my profile.

    191×30 = 5730 posts Nope, Im wrong, Ive probably answered this question 300 times.

    Its there, and you wont see it in a copy & paste.

    if you need to prove me right, upload a fresh copy of the sample wp-config.php, rename it.. and watch how THAT error goes away, and is replaced by the cannot connect to db messages.

    Thread Starter breen

    (@breen)

    https://breen-design.de/config.zip

    Here you go.

    I don’t want to argue, there is just nothing before the <?php

    .. moving on, sorry. Ive already answered your question.

    Thread Starter breen

    (@breen)

    Nice, didn’t help me at all.

    Breen… notepad?… or wordpad? or something better? confess.

    actually, Im NOT done. Im going to show you JUST so you can see.

    https://www.village-idiot.org/broke/argue-not-grasshoppa.gif

    The black is me removing my username on my box. The red shows not ONE but 2 locations where chars have been inserted into the file.

    You can clearly see the one right where I said it was.

    Next time dont be so sure of yourself. Like I said, Ive a little experience here.

    PS: youre welcome for the help

    edit: the second is caused by the german aumulaet or whatever that is.

    that’s why I asked if it was notepad… notepad will pick an encoding type based on the content of the file.

    use wordpad, if there’s nothing better around.

    and, by the way, I will admit I should have also included any sort of chars, like is in yours. In my haste I forgot to mention those. Not that it would have mattered.

    Thread Starter breen

    (@breen)

    Your server seems to be down or something. Isn’t working.
    I’d be glad to see the picture.

    I’m using Dreamweaver CS3, but also tried with Notepad, Wordpad and EasyEclipse.
    No whitespace for me.

    Thread Starter breen

    (@breen)

    Finally…
    I opened the file with OpenOffice and there were some strange icons. I deleted them, saved as .txt, renamed to .php and traraaa it works.

    Thank you very much, whooami.

    But your server still doesn’t work, ping neither.

    my server works fine . thank you. Your packets were prolly dropped since I dont care for a good deal of spammy european hosts.

    Use EditPlus or something similar to edit text files. And EditPlus also edits PHP, CSS, HTML, and other code language files. If you use something like that you shouldn’t get those kinds of problems.
    https://www.editplus.com/

    It’s not free, but it’s well worth the $35 for a single user license.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.