WORDPRESS – Warning: Cannot Modify Header Information – Headers Already Sent By

You receive an error message on your browser “Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34)” right after upgrading your WordPress or a new WordPress installation.

Solution: Remove Spaces, New Lines, Or Other Garbage In Wp-Config.Php

  1. Download wp-config.php via FTP.
  2. Open wp-config.php.
  3. Remove all spaces before <?php.
  4. Make sure the first characters are <?php, placed at the first line with no space in between.Header Error - 10 Most Common WordPress Errors (+Solutions)
  5. Remove all spaces after ?>
  6. Make sure the last characters are ?>, placed at the last line with no space in between.Header Error - 10 Most Common WordPress Errors (+Solutions)

This error could happen on other files too. Read the error message carefully as it states the specific file name where the error occurred.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s