Title: &#8220;PHP Warning:  Cannot modify header information&#8221; ?
Last modified: August 19, 2016

---

# “PHP Warning: Cannot modify header information” ?

 *  Resolved [waxrecordingstudio](https://wordpress.org/support/users/waxrecordingstudio/)
 * (@waxrecordingstudio)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/)
 * Just got this message from the error log:
 * [10-May-2010 14:30:35] PHP Warning: Cannot modify header information – headers
   already sent by (output started at /var/www/html/wordpress/wp-config.php:67) 
   in /var/www/html/wordpress/wp-includes/classes.php on line 1586
 * anyone know how I might go about rectifying this problem?
 * Sincere Thank you in advance !

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

 *  Thread Starter [waxrecordingstudio](https://wordpress.org/support/users/waxrecordingstudio/)
 * (@waxrecordingstudio)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495169)
 * also this message:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/www/html/wordpress/wp-config.php:67) in /var/www/html/wordpress/wp-includes/
   functions.php on line 790
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/www/html/wordpress/wp-config.php:67) in /var/www/html/wordpress/wp-includes/
   functions.php on line 791
 *  [Darrell Schauss](https://wordpress.org/support/users/darrellonsite/)
 * (@darrellonsite)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495183)
 * There could be spaces/new lines in your config file before the opening or closing
   PHP tags.
 * [http://codex.wordpress.org/Answers-Troubleshooting#Headers_already_sent](http://codex.wordpress.org/Answers-Troubleshooting#Headers_already_sent)
 *  Thread Starter [waxrecordingstudio](https://wordpress.org/support/users/waxrecordingstudio/)
 * (@waxrecordingstudio)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495185)
 * wow OK THANKS!
 *  Thread Starter [waxrecordingstudio](https://wordpress.org/support/users/waxrecordingstudio/)
 * (@waxrecordingstudio)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495186)
 * <?php
    // Enable the WordPress Object Cache: define(‘WP_CACHE’, true); //Added
   by WP-Cache Manager define(ENABLE_CACHE, true); // ** MySQL settings ** // define(‘
   DB_NAME’, ‘wordpress’); // The name of the database
 * define(‘DB_USER’, ‘xxxxxx’); // Your MySQL username
 * define(‘DB_PASSWORD’, ‘xxxxx’); // …and password
 * define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
 * define(‘DB_CHARSET’, ‘utf8’);
 * define(‘DB_COLLATE’, ”);
 * // Change SECRET_KEY to a unique phrase. You won’t have to remember it later,
 * // so make it long and complicated. You can visit [http://api.wordpress.org/secret-key/1.0/](http://api.wordpress.org/secret-key/1.0/)
 * // to get a secret key generated for you, or just make something up.
 * define(‘SECRET_KEY’, ‘xxxxxxx’); // Change this to a unique phrase.
 * // You can have multiple installations in one database if you give each a unique
   prefix
 * $table_prefix = ‘wp_’; // 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.
 * define (‘WPLANG’, ”);
 * /* That’s all, stop editing! Happy blogging. */
 * define(‘ABSPATH’, dirname(__FILE__).’/’);
 * require_once(ABSPATH.’wp-settings.php’);
    ?>
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495193)
 * Posting the code of your `wp-config.php` file here really doesn’t help. You’ll
   have to look at the file and make the edit in your own text editor. The excess
   white space (either a single space or an entire line) is on line 67 of the `wp-
   config.php` file. See this for more info:
 * [http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  Thread Starter [waxrecordingstudio](https://wordpress.org/support/users/waxrecordingstudio/)
 * (@waxrecordingstudio)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495292)
 * Thanks guys – this is very helpful – all changes made : )
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495293)
 * You’re welcome!

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

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

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/php-warning-cannot-modify-header-information/#post-1495293)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
