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

---

# Warning: Cannot modify header information

 *  Resolved [yatin](https://wordpress.org/support/users/yatin_/)
 * (@yatin_)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/)
 * Please guys it’s urgent . When I want to enter in my admin account of wordpress,
   the following error is coming.
    Cannot modify header information – headers already
   sent by (output started at /wp-content/themes/lifestyle-pro/lib/my_functions.
   php.php:1) in /wp-includes/pluggable.php on line 1173 I tried to remove the spaces
   in my_function.php.php. I am presenting you it’s code. Please help me out as 
   I am not getting the way out. <?php
 * /**
    * My Custom Functions */ //* Customize the credits add_filter( ‘genesis_footer_creds_text’,‘
   sp_footer_creds_text’ ); function sp_footer_creds_text() { echo ‘<div class=”
   creds”><p>’; echo ‘Copyright © ‘; echo date(‘Y’); echo ‘ · [mydomain_name](http://mydomain_name)‘;
   echo ‘</p></div>’; } //* Customize the post info function add_filter( ‘genesis_post_info’,‘
   sp_post_info_filter’ ); function sp_post_info_filter($post_info) { if ( !is_page()){
   $post_info = ”; return $post_info; }} //* Customize the post meta function add_filter(‘
   genesis_post_meta’, ‘sp_post_meta_filter’ ); function sp_post_meta_filter($post_meta){
   if ( !is_page() ) { $post_meta = ”; return $post_meta; }} //* Add support for
   post formats add_theme_support( ‘post-formats’, array( ‘aside’, ‘audio’, ‘chat’,‘
   gallery’, ‘image’, ‘link’, ‘quote’, ‘status’, ‘video’ ) ); //* Modify the length
   of post excerpts add_filter( ‘excerpt_length’, ‘sp_excerpt_length’ ); function
   sp_excerpt_length( $length ) { return 31; // pull first 31 words } // Changing
   excerpt more function new_excerpt_more($more) { global $post; return ‘… ID) .‘”
   >’ . ‘Read More »’ . ‘‘; } add_filter(‘excerpt_more’, ‘new_excerpt_more’); //*
   Add new image sizes add_image_size(‘single-thumbnail’, 580, 145, TRUE); add_action(‘
   genesis_entry_header’, ‘sk_show_featured_image_single’ ); function sk_show_featured_image_single(){
   if ( is_single() && has_post_thumbnail() ) { echo ‘<div class=”single-thumbnail”
   >’; genesis_image( array( ‘size’ => ‘single-thumbnail’ ) ); echo ‘</div>’; } }

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

 *  Thread Starter [yatin](https://wordpress.org/support/users/yatin_/)
 * (@yatin_)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/#post-5490825)
 * Cannot modify header information – headers already sent by (output started at/
   wp-content/themes/lifestyle-pro/lib/my_functions.php.php:1) in /
 * > wp-includes/pluggable.php
 *  on line 1173
 * pluggable.php file is in block letters. So the problem is in pluggable.php file
   or my_function.php.php file.
    This is the following code of pluggable php from
   line 1170 to 1177: if ( !$is_IIS && php_sapi_name() != ‘cgi-fcgi’ ) status_header(
   $status); // This causes problems on IIS and some FastCGI setups
 *  header(“Location: $location”, true, $status);
 *  return true;
    } endif;
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/#post-5490829)
 * The problem is here:
 * > output started at /wp-content/themes/lifestyle-pro/lib/my_functions.php.php:
   > 1
 * That means that there’s one or more characters before the opening `<?php` tag.
   You will need to remove everything before this tag.
 *  Thread Starter [yatin](https://wordpress.org/support/users/yatin_/)
 * (@yatin_)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/#post-5490832)
 * Following are the lines of my_funtion.php.php file from line 1 to 6:
    <?php
 * /**
    * My Custom Functions */ //* Customize the credits I had nothing before 
   this tag before also but even then I am having this problem. Please help
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/#post-5490834)
 * There can sometimes be hidden or un-displayable characters in front of the file.
   It’s rare but it does happen sometimes, and it’s a pain to fix.
 * The best thing to try is to use FTP to download the file to your locla PC, then
   use a plain text editor, like NotePad (do NOT use Word or WordPad) and then try
   to do a couple of back-spaces before that tab just in case there is something
   there.
 *  Thread Starter [yatin](https://wordpress.org/support/users/yatin_/)
 * (@yatin_)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/#post-5490837)
 * Thanks for replying catacaustic (nice name). What I did was I removed my my_function.
   php.php file from my ftp account and then reinstalled it.
 *  [ankitverma02](https://wordpress.org/support/users/ankitverma02/)
 * (@ankitverma02)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/#post-5490843)
 * Hi
    Put ob_start at the top of the pluggable.php.

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

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

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 3 participants
 * Last reply from: [ankitverma02](https://wordpress.org/support/users/ankitverma02/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-149/#post-5490843)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
