Warning: Cannot modify header information - headers already sent by (output started at /home/tritown1/public_html/index.php(1) : eval()'d code:7) in /home/tritown1/public_html/wp-includes/pluggable.php on line 866
I have tried debugging the site by renaming all the plugins and themes via FTP, which doesn’t change the message. I have also commented out the function of which line 866 is a part. That changes the message to say the function is not found, but the site is still not available. Has anyone else come across this problem and gotten to the root of the problem? I’d appreciate some help.
Oh yes. The offending line is the third from the end in:
if ( !function_exists('wp_redirect') ) :
/**
* Redirects to another page.
*
* @since 1.5.1
* @uses apply_filters() Calls 'wp_redirect' hook on $location and $status.
*
* @param string $location The path to redirect to
* @param int $status Status code to use
* @return bool False if $location is not set
*/
wp_redirect($location, $status = 302) {
global $is_IIS;
$location = apply_filters('wp_redirect', $location, $status);
$status = apply_filters('wp_redirect_status', $status, $location);
if ( !$location ) // allows the wp_redirect filter to cancel a redirect
return false;
$location = wp_sanitize_redirect($location);
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);
}
endif;
Warning: Cannot modify header information - headers already sent by (output started at /home/tritown1/public_html/index.php(1) : eval()'d code:4) in /home/tritown1/public_html/wp-includes/pluggable.php on line 866
I made no changes to cause this. Anyone have a clue as to why it suddenly appeared and how to fix it?