WordPress.org

Forums

[Plugin: WordPress.com Custom CSS] Not Working cannot fin (16 posts)

  1. smcmillan
    Member
    Posted 5 years ago #

    This does not seem to be working in MU script cannot custom-css.php

    script '/var/www/custom-css.php' not found or unable to stat

    http://wordpress.org/extend/plugins/safecss/

  2. Brian Colinger
    Member
    Posted 5 years ago #

    Hi,
    Can you send me more details on your server setup so that I can try to reproduce this issue that you are having.
    Are you uploading the plug-in to the normal plug-ins directory or the mu-plugins directory?

  3. Scott McMillan
    Member
    Posted 5 years ago #

    I placed it in plugins/safecss.
    The env is MU 2.8.6 with subfolders. I do not even see a custom-css.php in the download.

  4. Brian Colinger
    Member
    Posted 5 years ago #

    The plug-in file is named safecss.php.
    Try uploading the safecss directory to the wp-content/mu-plugins/ directory on your server.

  5. leisegang
    Member
    Posted 5 years ago #

    i tried this plugin too. and it doesnt work for me.
    it outputs:

    <link rel="stylesheet" type="text/css" href="http://sub.domain.com/custom-css.php?blog=16&cache=4&rev=1" />
    </head>

    edited the domain

  6. Nick Momrik
    Member
    Posted 5 years ago #

    @leisegang Are you running the plugin from mu-plugins? Any errors in the logs? What happens when you visit http://sub.domain.com/custom-css.php?blog=16&cache=4&rev=1 ?

  7. leisegang
    Member
    Posted 5 years ago #

    Hi.
    i use wpmu 2.9.1.1 with buddypress
    i have it in wp-content/plugins/ it is activated sitewide.

    i get a CSS file when i open the URL...

    #header {
    background:url('http://sub.domain.com/files/2009/12/Header-3.jpg') 0 0 no-repeat;
    height:400px;
    }

    the custom-css.php?blog=16&cache=4&rev=1 is written like this when i choose display sourcecode:

    ?blog=16& amp; cache=4& amp; rev=1" (without the spaces)

  8. leisegang
    Member
    Posted 5 years ago #

    i know bumping is not allowed.

    anyone?

  9. Ovidiu
    Member
    Posted 5 years ago #

    does it work or not with wpmu?
    has anyone tried it from the mu-plugins folder so far?

  10. ecenica
    Member
    Posted 5 years ago #

    This isn't working for our WPMU install either.

  11. Michael Nolan
    Member
    Posted 5 years ago #

    I needed to do two things to make it work:

    On line 131 change is_int() to is_numeric():

    if ( is_numeric( $blog_id ) ) {
                            switch_to_blog( $blog_id );
                            $current_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
                    }

    Then in my .htaccess add the following:

    RewriteRule ^custom-css.php /index.php [L,QSA]

    Now works a treat.

  12. Ovidiu
    Member
    Posted 5 years ago #

    @mikenolan:

    I guess you installed it into the normal plugins folder and then activated it site-wide?

  13. Michael Nolan
    Member
    Posted 5 years ago #

    @Ovidiu: Yes.

  14. wpmubp
    Member
    Posted 5 years ago #

    Plugin says as follows:

    1.Upload the safecss folder to the /wp-content/plugins/ directory
    2.Activate the plugin through the 'Plugins' menu in WordPress

    I'd assume there're less people installing this under mu-plugins.

  15. Ovidiu
    Member
    Posted 5 years ago #

    @takuya:

    so what? it doesn't even say if its compatible with wpmu, doesn't have wpmu as a tag, so I think the question regarding usage from within /plugins or /mu-plugins folder is allowed here.

    The folder is irrelevant except if the /plugins folder is hard-coded into the plugin anyway.

  16. Ovidiu
    Member
    Posted 4 years ago #

    @mikenolan:

    whats the Rewrite rule doing exactly? care to elaborate? this setup still valid for the latest version of the plugin?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags