Help For Alex's Style Switcher / Root (5 posts)

  1. Sphyr
    Posted 11 years ago #

    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

    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.

  2. Beel
    Posted 11 years ago #

    I did set the style-switcher to the root directory just to see if I could. This is what I did:

  3. Sphyr
    Posted 11 years ago #

    That's the hack I mentioned in my post; perhaps I munged something, so I'll try again....
    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.

  4. Beel
    Posted 11 years ago #

    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.

  5. Sphyr
    Posted 11 years ago #

    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. :/

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.