Cannot Modify Header Warning

I am getting the following warning output from my site:

Warning: Cannot modify header information - headers already sent by (output started at /www/doc/ in /www/doc/ on line 1195.

first line in functions.php is

line 1195 is:

$location = wp_sanitize_redirect($location);

if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' )
    status_header($status); // This causes problems on IIS and some FastCGI setups

    **header("Location: $location", true, $status);**

    return true;

"header("Location: $location", true, $status);"

Read more here: Cannot Modify Header Warning

Leave a Reply

Your email address will not be published. Required fields are marked *