Plugable.php error message

The website www.tritownrotary.org is throwing the error message:

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;

There must not be any output data when header() is called; otherwise you will get error messages such as one you reported.

I suspect your
if ( !function_exists(‘wp_redirect’) )
should be
if ( function_exists(‘wp_redirect’) )

I made that change. Now I get the error message

Parse error: syntax error, unexpected ‘{’ in /home/tritown1/public_html/wp-includes/pluggable.php on line 852

where line 852 is

wp_redirect($location, $status = 302) {

Your function wp_redirect() should be among your functions list (pluggable.php)
example:

<?php
   function 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");
   }

   function apply_filters($var1, $var2, $var3)
   {
	   // your code ...
	   return $var2;
   }

   function wp_sanitize_redirect($var1)
   {
	   // your code ...
	   return $var1;
   }

   function status_header($var1)
   {
	   // your code ...
   }
?>

And your script should now be something like this:

<?php
include ('pluggable.php');

if ( function_exists('wp_redirect') )
{
	wp_redirect('test.html');
}
else
	echo "function wp_redirect not found!";
?>

I just got this new error message at www.tritownrotary.org.

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?