Support » Fixing WordPress » WP Style Switcher problems :/

  • OK see the error in action here
    Try to change the style…at the top of the page you should see the error:
    Warning: Cannot modify header information – headers already sent by (output started at /home/syphon/public_html/index.php:4) in /home/syphon/public_html/wp-content/plugins/wp-style-switcher.php on line 36
    Warning: Cannot modify header information – headers already sent by (output started at /home/syphon/public_html/index.php:4) in /home/syphon/public_html/wp-content/plugins/wp-style-switcher.php on line 37
    These two lines in question are:
    header(“Location: “.get_settings(‘siteurl’));
    The wierd thing is, the default theme loads fine, as if there is no problem with it, but the other styles do not load at all! Also when you click to change the style, the default does not develop a hyperlink so there is no way of changing back! I asked Alex but he pointed me over here saying that he thinks that I have put unnecessary line breaks in the wp-style-switcher.php, but I haven’t edited this file at all!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Nope there is none 🙁
    If I change the style selector to showing samples, the sample .gif shows up so it can’t be a problem with reading from the directory surely?

    I know you looked but most likely it is a problem with whitespace in the plugin. Use an editor other than Notepad and again make sure there are no spaces before <?php and after ?>

    I am using the .php as it comes from Alex’s website so that really can’t be the problem unless that file is screwed.

    Mark (podz)


    Support Maven

    What’s on line 4 of your index.php ?

    Just a thought
    Have you checked to make sure your style.css is in your relevant directories?
    I tried to access and could not get to the file but it is working in the pre-defined blue fade directory for instance.

    Mine looks like this:
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “”>
    <html xmlns=”” xml:lang=”en”>
    /* Don’t remove this line. */
    <title>James’s Weblog</title>
    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
    <style type=”text/css” media=”screen”>
    @import url( <?php wp_stylesheet(); ?> );

    Haha changed it to what you provided Beel and it works perfectly 😀 Thank you guys all so much you’re the best!

    Read this if your index.php is UTF-8 encoded:

    Having just solved the exact problem but using a solution not mentioned here, I thought I’d jot down the solution for posterity 🙂 I use WP 1.2.1.

    Make sure your text editor is not writing BOM header to your UTF-8 file! For example, in a power editor like UltraEdit, the configuration setting lets you turn this feature on or off.

    After reconverting my index.php to UTF-8 without BOM header, the annoying “header already sent” was gone. Hurray!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP Style Switcher problems :/’ is closed to new replies.