• I searched first for a hack that changed the wp-style-switcher.php from “siteurl” to “home” but couldn’t get it to work. I’m a novice at php.
    I think the problem is that WordPress is installed in my /wordpress folder, and my url is my root. If I put the wp-style under /wordpress, the style loads fine, but I get the following error:

    Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid/gid is 21055/21056 is not allowed to access /home/content/c/h/a/chasingthewind/html owned by uid/gid 0/0 in /home/content/c/h/a/chasingthewind/html/wordpress/wp-content/plugins/wp-style-switcher.php on line 66
    Warning: opendir(wp-style/): failed to open dir: No such file or directory in /home/content/c/h/a/chasingthewind/html/wordpress/wp-content/plugins/wp-style-switcher.php on line 66
    Warning: closedir(): supplied argument is not a valid Directory resource in /home/content/c/h/a/chasingthewind/html/wordpress/wp-content/plugins/wp-style-switcher.php on line 73
    Style:

    If I move the wp-style folder off the root, the error goes away, but then the style doesn’t load.
    If I put it in *both* locations, the default loads fine, but trying to switch styles gives a 404 Error. I set the default using this mod to the index.php file:

    @import url( <?php wp_stylesheet(“Blue Swirly”); ?> );

    The wp-style-switcher is in the plugins folder, unmodified.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I did set the style-switcher to the root directory just to see if I could. This is what I did:
    http://wordpress.org/support/index.php?action=vthread&forum=3&topic=6851&page=0#post-26

    Thread Starter sphyr

    (@sphyr)

    That’s the hack I mentioned in my post; perhaps I munged something, so I’ll try again….
    <later>
    It seems to be working now if I put it in the /wordpress folder like the original style switcher suggested. I suppose I munged something. Thanks for the help.

    Looks good, glad you got it working. When I switched back to the regular style-switcher I had to delete the cookie to get it to work again, perhaps that was your problem the first time. Maybe we will never know, but who cares, it is working for you.

    Thread Starter sphyr

    (@sphyr)

    Perhaps. I was deleting cookies in between attempts. I suspect I munged up one of the changes from ‘siteurl’ to ‘home’ the first time.
    Of course, the style sheet I defaulted to is ugly as all get-out. :/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help For Alex’s Style Switcher / Root’ is closed to new replies.