Title: Error using style switcher
Last modified: August 18, 2016

---

# Error using style switcher

 *  [ronda](https://wordpress.org/support/users/ronda/)
 * (@ronda)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/)
 * I get this error (and yes, I think I followed all the directions): Warning: Cannot
   modify header information – headers already sent by (output started ….wp-style-
   switcher.php on line 37
    So what did I do wrong? Thanks for your help!

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

 *  Thread Starter [ronda](https://wordpress.org/support/users/ronda/)
 * (@ronda)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34702)
 * I made a change and I’m now getting the same error, but for lines #28 and #29.
 *  Thread Starter [ronda](https://wordpress.org/support/users/ronda/)
 * (@ronda)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34705)
 * Never mind – fixed it…
 *  [syrion](https://wordpress.org/support/users/syrion/)
 * (@syrion)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34873)
 * My “problem” is not worth a new thread so let’s fo it this way:
    At my [site](http://www.syrion.net/eye/)
   I can easily switch between the styles. But when TechGnome tried to swap back
   from ‘Toxic’ to ‘The Red End’ he didn’t get the css. My first guess was because
   of the spaces in the template name (and also the template directory). I took 
   a look to the source and found out it links to “the+red+end” instead of “the%
   20red%20” end. Is this the problem? And if so, how can I avoid it? (Note: I would
   like to see “the red end” in my links and not the+red+end or so) Thanks in advance!
 *  [alexkingorg](https://wordpress.org/support/users/alexkingorg/)
 * (@alexkingorg)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34877)
 * You’ll need to edit the hack to get it to behave that way.
 *  [syrion](https://wordpress.org/support/users/syrion/)
 * (@syrion)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34912)
 * ok, I’ve looked into it but can’t find out which part needs to be edited. Can
   anyone help me with this?
    Thanks in advance!
 *  [direcow](https://wordpress.org/support/users/direcow/)
 * (@direcow)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34977)
 * I got the same problem as ronda: ronda, how did you fix it?
 *  [alexkingorg](https://wordpress.org/support/users/alexkingorg/)
 * (@alexkingorg)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34978)
 * Search for the error message on this board, there are a number of posts about
   it.
 *  [misterx](https://wordpress.org/support/users/misterx/)
 * (@misterx)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-34987)
 * If the spaces are indeed your problem, you could use [eregi_replace](http://us2.php.net/eregi_replace)
   to strip the spaces from the style name, so `The style I Like` becomes `The-style-
   I-Like`
    Not sure if that helps…
 *  [cyron](https://wordpress.org/support/users/cyron/)
 * (@cyron)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-35078)
 * Ok, I’ve tried, I’ve really tried to avoid asking. But I’m having the same problem
   ronda had. I’ve searched the forums, I’ve googled, I’ve hacked away manually,
   but I simply don’t know how to solve this problem.
    Can someone please pretend
   like they’re talking to an idiot and give me a helping hand? 🙂

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

The topic ‘Error using style switcher’ is closed to new replies.

 * 9 replies
 * 6 participants
 * Last reply from: [cyron](https://wordpress.org/support/users/cyron/)
 * Last activity: [21 years, 11 months ago](https://wordpress.org/support/topic/error-using-style-switcher/#post-35078)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
