Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter yatin

    (@yatin_)

    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;

    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

    (@yatin_)

    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

    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

    (@yatin_)

    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.

    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.