WordPress.org

Support

Support » Plugins and Hacks » Trouble with javascript and css after latest upgrade of W3 Total Cache

Trouble with javascript and css after latest upgrade of W3 Total Cache

  • Greetings,

    After having a bit of trouble getting the previous version to work with my site- you really helped me alot by giving me some tips on how to get it to work and it was successful.

    This is the original thread that you helped me fix my css trouble before:
    http://wordpress.org/support/topic/296526?replies=5#post-1188541

    …Anyway, after upgrading to the latest version (v 0.7.5.1) I’m experience the same trouble with the plugin breaking my theme/css and some of the javascripts not working when minified. I didn’t change any of my settings (line/comment breaks disabled, etc.) that worked in fixing the issues I was experiencing with the previous version- so I’m kind of back at square one again. I’ve tried to clear the cache completely and reset all my settings including JS and CSS files to minify, but no luck. Right now I’m successfully running the page and database cache part of the plugin, but unable to use minify for my JS/CSS files.

    I’d really appreciate any help you can give. Thanks again for such a great plugin. Until I upgraded, it really made my site fly and I really hope I can get this working again soon. =)

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 15 replies - 1 through 15 (of 31 total)
  • Hi @wramos, what has changed since last time? Could you tell me all of your current settings so I can take try to resolve?

    Nothing that I know of. I’ve just upgraded to the most recent version of the plugin (0.7.5.2) and everything seems to work fine except when I try to minify my main css file- that breaks the layout of my site.

    My main settings are:

    Page Caching Enabled (APC)
    Minify Enabled (APC)
    Database Caching Enabled (Memcached)
    CDN (not enabled yet)

    On the minify settings:

    HTTP compression (gzip / deflate) – Enabled
    HTTP compression for MSIE6 – Enabled
    Rewrite URL Structure – Enabled
    Automatically upload modified files – Enabled

    Update external: 3600

    HTML: Minify & Don’t minify html for logged in users – both enabled
    JS: Minify – enabled
    CSS: Minify – enabled

    The only thing I tried to minify first is my main css style sheet- which, like I said- breaks the layout of my site.

    Any help would be greatly appreciated. Please let me know if you need any more info from me. Thanks again!! =)

    Does the include file inserted by the plugin exist or is it a 404?

    The include file (in this case my main CSS style sheet) does indeed exist and I’ve also validated the url through the plugin as well. It does load it, but various attributes within my style sheet appear to get mangled.

    Did you try to disable comment and line break removal?

    I did indeed.

    FYI: I just installed the latest version (v.8) and it appears that I’m unable to add javascript or css files in the minify section. I see a new drop-down list of groups for both- but when I enter my css or js files and hit save it does not seem to work. After adding the files and hitting save I’m returned to the minify settings screen but no list of the added files are displayed.

    Perhaps I’m just doing something wrong? Thanks in advance for your help! =)

    I am having the same problem. The .8 release loses the previous minify settings and I can’t add them back. I have done a Verify URI on the file path and the popup shows the CSS file.

    If I do a view generated source after clicking the add stylesheet button, I see

    <ol id="css_files">
                        			<li><input class="css_enabled" name="css_files_include[]" value="" size="100" type="text">&nbsp;<input class="css_file_delete css_enabled button" value="Delete" type="button">&nbsp;<input class="css_file_verify css_enabled button" value="Verify URI" type="button"></li></ol>
                    <ol id="css_files"></ol>
        			<input id="css_file_add" class="css_enabled button" value="Add a style sheet" type="button">

    However, if I look in the options function in lib/W3/Plugin/TotalCache.php I see

    $css_files = W3_Request::get_array('css_files');

    If I add _include to css_files there:

    $css_files = W3_Request::get_array('css_files_include');

    It changes the behavior and the CSS file setting that I enter shows on the subsequent page. However, it doesn’t actually include the CSS in the head. It does look like it removes the link if I enter one for the CSS manually in the head. I had to disable minify to get the site to work correctly.

    I cannot duplicate this issue. Structure changes to the core do break old settings (depending on what they are), however you should be able to save them when you re-add. Keep in mind, that if you’ve selected a group other than default when you clicked saved settings, the default group will be shown, so if your default group is empty that may be a cause of confusion.

    I haven’t had the problem of being unable to add CSS or JS files, but I did lose those I had previously (gone with the upgrade).

    The procedure I use to add scripts:
    1. select ‘general’
    2. click ‘add a script’
    3. type in details to the new blank box, then the verify URI
    4. click ‘save changes’.

    ps. could you look at this problem please?

    joefletcher

    @joefletcher

    I have the same problem on a fresh install of .8 (never installed previous versions) on 2.8.6.

    I just installed the latest version (v.8) and it appears that I’m unable to add javascript or css files in the minify section. I see a new drop-down list of groups for both- but when I enter my css or js files and hit save it does not seem to work. After adding the files and hitting save I’m returned to the minify settings screen but no list of the added files are displayed.

    Frederick Townes

    @fredericktownes

    For those of you having this issue, I apologize, it’s remedied in the next release.

    joefletcher

    @joefletcher

    Thanks, Frederick. I wanted to point out that I noticed it actually does save the last js I enter on the screen. So, if I enter 7 js’s, the last one entered get saved.

    Any rough ETA guestimate for the next release?

    Frederick Townes

    @fredericktownes

    Hopefully this week. Meanwhile you an edit the settings file manually if you have to. 🙁

    joefletcher

    @joefletcher

    Ah cool, I was going to ask about that. Good idea. Thanks!

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Trouble with javascript and css after latest upgrade of W3 Total Cache’ is closed to new replies.
Skip to toolbar