Title: Syntax Error: Cannot modify header info
Last modified: August 19, 2016

---

# Syntax Error: Cannot modify header info

 *  [nicky2time](https://wordpress.org/support/users/nicky2time/)
 * (@nicky2time)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-cannot-modify-header-info/)
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/obie2x/public_html/wp-content/themes/atahualpa/functions/bfa_get_options.
   php:207) in /home/obie2x/public_html/wp-includes/pluggable.php on line 868
 * the above line is a new error I am getting after I tried to plug in the following
   code into my BFA get_options.php section.
 * if ( is_archive() AND !(is_tag() OR is_author() OR is_date() OR is_category())){
   
   $cols = 3; /* center column + number of sidebars */ $left_col = “on”; # $left_col2
   = “on”; $right_col = “on”; #$right_col2 = “on”; }
 * I got this code from a different forum’s suggestion so I could try and figure
   out why my sidebar would disappear when I tried to use some custom taxonomy. 
   When I did that I got a syntax error message about the $end code being wrong,
   which completely locked out access to my blog. So, I deleted above code and thought
   I figured it out by adding a closing bracket (which I think I accidentally erased
   when I erased above code) Once I did this, the error went away and my website
   showed up again. Now, I get the above error when I try to access dashboard, and
   all my sidebars are gone on category pages and I can no longer access my dashboard.
 * Is this enough info to get some help or do I need to provide more? Thank you 
   in advance to the guru who will hopefully help me out.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [nicky2time](https://wordpress.org/support/users/nicky2time/)
 * (@nicky2time)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-cannot-modify-header-info/#post-1436521)
 * Addition: Here is some of the code from the pluggable.php file
 * **Line 868: header(“Location: $location”, true, $status);**
 * */
    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 ) {
    header(“Refresh: 0;url=$location”); } else { if ( php_sapi_name()!
   = ‘cgi-fcgi’ ) status_header($status); // This causes problems on IIS and some
   FastCGI setups header(“Location: $location”, true, $status); } } endif;
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-cannot-modify-header-info/#post-1436626)
 * The error message is telling you to look at bfa_get_options.php line 207. More
   than likely, you have a blank line or extra spaces in the file that are getting
   sent to the browser before the header is started. Especially look at the end 
   of the file for extra lines.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Syntax Error: Cannot modify header info’ is closed to new replies.

## Tags

 * [syntax errors](https://wordpress.org/support/topic-tag/syntax-errors/)
 * [troubleshooting](https://wordpress.org/support/topic-tag/troubleshooting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-cannot-modify-header-info/#post-1436626)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
