• Hi,

    I have looked at a lot of posts on this (most are old) and have done everything they have said. Change permissions on folders so they’re writable, update .htaccess files, turn off other plugins, switch to manual minify etc but I am still getting a 404 on the requested JS (and CSS but I don’t have it on at this point) file. I’ve verified the URL of the file I’m trying to minify too.

    The dir has been created and I can see one JS file (default.include.js.id) but the requested file isn’t there making me think it’s a folder permissions problem?

    Also when I click on the Minify Help Wizard button I can’t see any files?

    I am running WordPress 3.4.1 and W3 Total Cache 0.9.2.4.

    URL: http://staging.squirrel.co.nz/

    What have I missed???

    Any help is appreciated.

    Thanks in advance.

    http://ww.wp.xz.cn/extend/plugins/w3-total-cache/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try switching off Rewrite URL structure under the Minify tab. Sounds like a rewrite issue to me.

    Thread Starter cgardyne

    (@cgardyne)

    Thanks,

    I switched off re-write URL and navigated to the file and got:

    W3TC Minify Error

    Enable debug mode to see error message.

    The URL is here -> http://staging.squirrel.co.nz/wp-content/w3tc/min/index.php?file=49f99/default.include.be5422.js.

    In WP it gives me an error of:
    Recently an error occurred while creating the CSS / JS minify cache: File “/var/www/colin/wp-content/w3tc/min/var/www/colin/wp-content/themes/squirrel/assets/js/mylibs/Test.js” doesn’t exist.

    In the JS section for minify the URL to the file is:
    wp-content/themes/squirrel/assets/js/mylibs/Test.js – which verifies

    Where do I fix where it should be looking for the file?

    Thanks for your help.

    I would suggest playing around with the minify settings, or do as it says and enable debug mode to see exactly what is wrong.

    Thread Starter cgardyne

    (@cgardyne)

    If I enable debug mode wont it just say “File doesnt exist” because the path is all buggered?

    I’ll play with the minify settings, but could anything in an .htaccess file be doing the damage?

    Thanks for you help.

    Thread Starter cgardyne

    (@cgardyne)

    When I look at the error log I get the error:

    File “/var/www/colin/wp-content/w3tc/min/var/www/colin/wp-content/themes/squirrel/assets/js/mylibs/Test.js” doesn’t exist

    In the minify section I have added the JS file with the URL:
    “wp-content/themes/squirrel/assets/js/mylibs/Test.js”

    It verifies the URL fine, but when it goes to add the file its taking the full path to the file “var/www/colin/wp-content/themes/squirrel/assets/js/mylibs/Test.js” and appending to the RewriteBase URL “var/www/colin/wp-content/w3tc/min”

    I can’t fully qualify the URL as it removes the domain and protocol from the URL and truncates to “wp-content/themes/squirrel/assets/js/mylibs/Test.js”

    Can anyone help with this?

    Thanks.

    Did you apply the configuration provided on the ‘Install’ tab?

    Thread Starter cgardyne

    (@cgardyne)

    Yeah I’ve updated all the .htaccess files.

    Not quite sure where I’ve gone wrong.

    Thanks for your help so far!

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    I think it’s best to submit a bug submission form from the support tab of the plugin please.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: W3 Total Cache] Minify 404 JS file’ is closed to new replies.