title: Cannot modify header information - headers already sent by… Wordpress Issue
body: <p>I'm encountering this error. and I have no idea dealing with this.</p>
  
  <blockquote>
    <p>Cannot modify header information - headers already sent by (output
    started at
    /home/ben213/public_html/wp-content/themes/Bendaggers/functions.php:9)
    in /home/ben213/public_html/wp-includes/pluggable.php on line 934</p>
  </blockquote>
  
  <p><strong>my Functions.php file line # 9 is:</strong></p>
  
  <pre><code>&lt;?php if(function_exists('register_sidebar'))register_sidebar();?&gt;
  </code></pre>
  
  <p><strong>while my pluggable.php # 934 is</strong></p>
  
  <p>function wp_redirect($location, $status = 302) {
      global $is_IIS;</p>
  
  <pre><code>$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 &amp;&amp; php_sapi_name() != 'cgi-fcgi' )
      status_header($status); // This causes problems on IIS and some FastCGI setups
  
  header("Location: $location", true, $status);}
  endif;
  </code></pre>
  
  <p>I'm having a hard time figuring this out since im not a programmer. what seems to be wrong? kindly help me please...</p>