Title: Warning: Cannot modify header information
Last modified: August 19, 2016

---

# Warning: Cannot modify header information

 *  Resolved 756651
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/)
 * When i want to login i only get this message. Don’t understand it. :/
 *     ```
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/web521/html/trashpage/wp-config.php:1) in /var/www/web521/html/trashpage/wp-login.php on line 260
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/web521/html/trashpage/wp-config.php:1) in /var/www/web521/html/trashpage/wp-login.php on line 272
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/web521/html/trashpage/wp-config.php:1) in /var/www/web521/html/trashpage/wp-includes/pluggable.php on line 595
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/web521/html/trashpage/wp-config.php:1) in /var/www/web521/html/trashpage/wp-includes/pluggable.php on line 596
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/web521/html/trashpage/wp-config.php:1) in /var/www/web521/html/trashpage/wp-includes/pluggable.php on line 597
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/web521/html/trashpage/wp-config.php:1) in /var/www/web521/html/trashpage/wp-includes/pluggable.php on line 770
       ```
   

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

 *  [Roy](https://wordpress.org/support/users/gangleri/)
 * (@gangleri)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813321)
 * Start [here](http://codex.wordpress.org/Answers-Troubleshooting#Headers_already_sent).
   
   If necessary, read a little more [here](http://wordpress.org/search/cannot+modify+header+information?forums=1).
 *  Thread Starter 756651
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813324)
 * I read the [Answers Trouble Shooting](http://codex.wordpress.org/Answers-Trouble_Shooting)
   about this problem, but i don’t get it. I deleted <?php and ?> and reworte it,
   and there aren’t any spaces… :/
 *  Thread Starter 756651
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813325)
 * Now i’ve eddited the wp-config.php 1000 times and deleted all spaces,
 * >  1. Place the cursor between the ? and >
   >  2. Now press the DELETE key on your
   > computer 3. Keep that key pressed 4. For at least 15 seconds 5. Now type > 
   > and 6. save without pressing any other key at all. 7. If you press another 
   > key, you will bring the problem back.
 * in this way, it doesn’t work. I added nothing to config.php, i downloaded wp-
   config-sample again and did it again and again :/
 *  [Roy](https://wordpress.org/support/users/gangleri/)
 * (@gangleri)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813328)
 * Hm, it’s the most likely problem. What if you take the wp-config sample from 
   the WP download, insert the right information (again), save as wp-config and 
   reupload?
 * Otherwise, I can only suggest to read some other ‘cannot modify header information’
   treads to see if it could be something else…
 *  Thread Starter 756651
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813333)
 * > i downloaded wp-config-sample again and did it again and again :/
 * u see, i tried it.
 * I used the Windows “Editor” und “Dreamweaver”, both doesn’t work.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813346)
 * You must use a simple text editor like Notepad or clone.
    Also, have you disabled
   all of your plugins?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813355)
 * its not a plugin issue. the error you pasted is caused by characters **or** line
   breaks **or** spaces before the opening `<?php` in your wp-config.pgp
 *  Thread Starter 756651
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813397)
 * I’ve downloaded Notepad and did it again and again, doesn’t work!
 * Hier is the full code:
 *     ```
       <?php
       //** MySQL-Einstellungen **//
       define('DB_NAME', 'XXX');    // Der Name der Datenbank
       define('DB_USER', 'XXX');     // Ihr MySQL-Benutzername
       define('DB_PASSWORD', 'XXX'); // 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 AUTH_KEY, SECURE_AUTH_KEY und LOGGED_IN_KEY ein Passwort oder
       // einen langen Satz ein. Sie werden ihn später nicht mehr benötigen, daher
       // machen Sie ihn ruhig lang und kompliziert. Unter http://api.wordpress.org/secret-key/1.0/
       // können Sie einen langen Passwortsatz automatisch generieren lassen.
       define('AUTH_KEY', 'Fuegen Sie hier einen beliebigen Satz ein.');
       define('SECURE_AUTH_KEY', 'Fuegen Sie hier einen beliebigen Satz ein.');
       define('LOGGED_IN_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');
       ?>
       ```
   
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813402)
 * what you paste here doesnt show anything — since you wont see it in a copy and
   paste. If you have shell access you can see the problem by performing a cat on
   the file.
 * This has been covered time and time and time again..
 * [http://wordpress.org/search/wp-config.php%3A1+already+sent?forums=1](http://wordpress.org/search/wp-config.php%3A1+already+sent?forums=1)
 * `Warning: Cannot modify header information - headers already sent by (output 
   started at /var/www/web521/html/trashpage/wp-config.php:1)`
 *  Thread Starter 756651
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813459)
 * I read about 100 of these threads…
 *  Thread Starter 756651
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813460)
 * Now it works.. i can’t believe it. I downloaded the original wp-config-sample
   and eddited it again with all programms, and it worked with some shit, called“
   the coder maker” from italy….
 * Thank you guys!
 *  [mrmist](https://wordpress.org/support/users/mrmist/)
 * (@mrmist)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813461)
 * Good-o. 🙂
 *  [Dns](https://wordpress.org/support/users/dns/)
 * (@dns)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813470)
 * Please link me this shit 🙁 i got same problem
 *  [purabdk](https://wordpress.org/support/users/purabdk/)
 * (@purabdk)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813529)
 * 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](http://&#8221);.$domain.$path.”/wp-admin/admin.php;
 * echo “<script>”;
    echo “location = ‘$urlnew’;”; echo “</script>”; echo $urlnew;?
   > Purab Kharat

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

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

## Tags

 * [cannot](https://wordpress.org/support/topic-tag/cannot/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [information](https://wordpress.org/support/topic-tag/information/)
 * [Modify](https://wordpress.org/support/topic-tag/modify/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 14 replies
 * 7 participants
 * Last reply from: [purabdk](https://wordpress.org/support/users/purabdk/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-18/#post-813529)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
