Title: Pluggable.php Warning
Last modified: August 30, 2016

---

# Pluggable.php Warning

 *  Resolved [adengfx](https://wordpress.org/support/users/adengfx/)
 * (@adengfx)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/pluggablephp-warning-help/)
 * When going onto my clients website, in the /wp-admin I keep getting this error:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/medisymp/public_html/wp-content/themes/flatastic/functions.php:1) in/
   home/medisymp/public_html/wp-includes/pluggable.php on line 1207
 * I have looked into the PHP file but cannot seem to find any errors on lines 1119-
   1220, what am I doing wrong?
 *     ```
       if ( ! $location )
       		return false;
   
       	$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;
       }
       endif;
   
       if ( !function_exists('wp_sanitize_redirect') ) :
       /**
        * Sanitizes a URL for use in a redirect.
        *
        * @since 2.3.0
        *
        * @return string redirect-sanitized URL
        **/
       ```
   

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

 *  [demiloca](https://wordpress.org/support/users/demiloca/)
 * (@demiloca)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/pluggablephp-warning-help/#post-6739825)
 * I have the same warning on a number of sites I updated to 4.3.1… preventing me
   from accessing backend WP.
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/pluggablephp-warning-help/#post-6739856)
 * [@adengfx](https://wordpress.org/support/users/adengfx/): The error message can
   be a bit misleading if you aren’t aware of how it works. The error is actually
   on line 1 of `wp-content/themes/flatastic/functions.php` and what usually causes
   it is having extra whitespace before the opening PHP tag. The easiest way to 
   fix it is to download the theme’s ZIP file, extract just `functions.php` and 
   upload it to the proper place. If not, can you post the contents of `functions.
   php` to [Pastebin](http://pastebin.com) and post the link here?
 * [@demiloca](https://wordpress.org/support/users/demiloca/): Unless you’re using
   the same theme as the OP and have the exact same error, your problem isn’t the
   same and you should start your own thread for your own problem.
 *  Thread Starter [adengfx](https://wordpress.org/support/users/adengfx/)
 * (@adengfx)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/pluggablephp-warning-help/#post-6739869)
 * [@stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * Thanks for your help Stephen however I have solved the problem by just replacing
   the functions.php file by redownloading the theme, before seeing your post, however,
   thanks for taking your time to help me 🙂

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

The topic ‘Pluggable.php Warning’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [adengfx](https://wordpress.org/support/users/adengfx/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/pluggablephp-warning-help/#post-6739869)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
