• Hi,

    I just installed W3 Total Cache and the main features works fine.

    But now, i want to try minify CSS and JS, but i found no way to make that works for me.

    When i activate CSS Minify and add the CSS :
    wp-content/themes/f2/style.css
    to the list.

    The site appears with no CSS at all.

    The source page contains a CSS like that :
    http://www.baptiste-wicht.com/wp-content/w3tc/min/index.php?gg=default&g=include&t=css

    But if try to access it, i have the following messages :

    This file cannot be accessed directly

    The wp-content/w3tc/min directory is empty. But it’s write-able with 777 (i try other, but nothing works).

    I also try enabling/disabling the URL rewrite structure, but nothing changes at all.

    Does someone have an idea on how to solve this problem ?

    Thanks a lot.

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

Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter Baptiste Wicht

    (@wichtounet)

    The URL was not correct (i don’t know why ?).

    Now, if i try the correct URL : http://www.baptiste-wicht.com/wp-content/w3tc/min/index.php?gg=default&g=include&t=css

    I got a

    HTTP/1.0 400 Bad Request

    And i’ve some logs like that :

    “/kunden/homepages/27/d320312359/htdocs/homepages/27/d320312359/htdocs/wp-content/themes/f2/style.css” could not be found (or was not a file)
    [Sun, 18 Apr 2010 14:26:56 +0000] [/wp-content/w3tc/min/index.php?gg=default&g=include&t=css] The path “/kunden/homepages/27/d320312359/htdocs/homepages/27/d320312359/htdocs/wp-content/themes/f2/style.css” could not be found (or was not a file)

    Seems that the name of the server is added twice, no ?

    Hope that helps to solve the problems

    Thread Starter Baptiste Wicht

    (@wichtounet)

    I just try the development version.

    It’s a little better.

    The CSS files are good combined but not minified. And if a check to “Rewrite URL structure”, there is no combine and no minify.

    “Combine only” is not setted.

    The “Comment removal” works well.

    Frederick Townes

    (@fredericktownes)

    I can’t comment because I’m not sure what your settings are, nor what CSS files you’re minifying. At this point submitting a bug submission would be most useful so I can see your specific details.

    Thread Starter Baptiste Wicht

    (@wichtounet)

    Ok, I’ll submit a bug report tonight.

    One other information i found : JS combine is good (no minify) but the links are not removed from the page source.

    Thread Starter Baptiste Wicht

    (@wichtounet)

    Error πŸ™

    Thread Starter Baptiste Wicht

    (@wichtounet)

    Apparently, there is also errors with the JS Combination.

    The JS are apparently combined, but they are not recognized in the source page, so there they cannot be used from the page.

    Thread Starter Baptiste Wicht

    (@wichtounet)

    Nobody has an idea ?

    Or an other plugin that made the same things as W3 ?

    jmorrow

    (@jmorrow)

    Yeah, don’t worry.

    You can’t minify all JS/CSS. some just don’t work. When I switched to Hybrid framework, I found that most of my CSS/JS won’t minify without causing problems.

    The only solution is to try adding each file individually and see if it causes problems. Leave out the JS/CSS that causes problems.

    If you use Firefox/Firebug, and you see a question mark at the end of the JS, then you know it won’t minify.

    Anyway, I’ve had similar problems and it didn’t resolve from switching software (WP minify, WP Super Cache, WP total Cache)–it doesn’t matter, so it’s not a software issue.

    If you’re really set on minifying your CSS/JS, you’d have better luck to try changing themes.

    Frederick Townes

    (@fredericktownes)

    Jmorrow is correct. More minification engines will be added to future releases to make the success rate of minfication higher, for now only the default functionality of the open source minify project is used.

    godkid

    (@godkid)

    I just installed this and checked stuff using the firebug NET panel. What seems to be happening is that (as noted) the results of the minification is not being returned so I get a 400 Bad Request error as soon as I add ANY file to either of the lists under minify.

    I used to use WPMinify which I believe uses the same minification engine without a problem, so I don’t think the minification engine is the problem – the file default.include.css or .js simply isn’t being found/written (IMO). Not certain if it’s a server thing.

    My setup:
    Wp – 2.9.2
    WtC – latest from WP plugin site
    Hosting – shared (GoDaddy)

    Any ideas are welcome

    godkid

    (@godkid)

    sorry – forgot the link to the screenie -> http://www.dropbox.com/gallery/5176384/1/WTC%20Screenies?h=a4cf2b

    Thread Starter Baptiste Wicht

    (@wichtounet)

    Ok, perhaps my JS scripts cannot be minified, no problem. But normally all JS can be combined, no ?

    Frederick Townes

    (@fredericktownes)

    Sorry no, that’s not even true.

    godkid

    (@godkid)

    @fredericktownes – any ideas why the file isn’t being written to the folder in my case?

    Frederick Townes

    (@fredericktownes)

    Are there any errors in your error log?

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘[Plugin: W3 Total Cache] Unable to minify CSS or JS’ is closed to new replies.