Title: problem with theme
Last modified: August 18, 2016

---

# problem with theme

 *  Resolved [davidspan](https://wordpress.org/support/users/davidspan/)
 * (@davidspan)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/problem-with-theme-2-2/)
 * I’m having a problem with a theme i created. when I change from my theme to another
   I get this error:
    `Warning: Cannot modify header information - headers already
   sent by (output started at C:\xampplite\htdocs\wp-content\themes\cleanly\functions.
   php:1) in C:\xampplite\htdocs\wp-includes\pluggable.php on line 329`
 * here is my code in that file:
 *     ```
       <?php
       if(function_exists('register_sidebar'));
       register_sidebar(array('name'=>'sidebar1'));
       register_sidebar(array('name'=>'sidebar2'));
       ?>
       ```
   
 * I have been over it with a fine…
 * I had tried to uplad this them to the theme viewer, but it wouldn’t work on there,
   thats when i found this bug… I’m not sure why this is happening and if it’s why
   it will not work on the themeviewer or not…

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/problem-with-theme-2-2/#post-592961)
 * _themes\cleanly\functions.php:1)_
 * You should read the Codex before posting!
    [http://codex.wordpress.org/Answers-Troubleshooting#Headers_already_sent](http://codex.wordpress.org/Answers-Troubleshooting#Headers_already_sent)
   See the Interpreting the Error Message section…
 *  Thread Starter [davidspan](https://wordpress.org/support/users/davidspan/)
 * (@davidspan)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/problem-with-theme-2-2/#post-592980)
 * yea read that,…checked that
 * still getting error
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/problem-with-theme-2-2/#post-592981)
 * Check it again.
    If you REALLY don’t have a space at the very beginning of that
   functions.php file – deactivate all your plugins: something must insert that 
   space there…
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/problem-with-theme-2-2/#post-592993)
 * its either a space before the opening <.. or after the closing ?>
 * Theres no ifs ands or buts about that, and its not a bug. Its called using the
   wrong editor 🙂
 *  Thread Starter [davidspan](https://wordpress.org/support/users/davidspan/)
 * (@davidspan)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/problem-with-theme-2-2/#post-592995)
 * Found problem file was encoded UFT-8 changed it to ANSI, seems to be working 
   now. Thanks moshu

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

The topic ‘problem with theme’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [davidspan](https://wordpress.org/support/users/davidspan/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/problem-with-theme-2-2/#post-592995)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
