• Resolved chsmail

    (@chsmail)


    Dear all,
    I am really struggling getting the minification of both js and css to work.
    I have set it to manual mode because of errors that I get in the browser console and misbehavior of the site.
    But if I add even a single js and/or css in the minify section of w3TC, the minified files seem to be not created. Accessing the website I get the following errors:
    GET https://…/wp-content/cache/minify/2e259.default.include.b60b44.css net::ERR_ABORTED 403 (Forbidden)
    GET https://…/wp-content/cache/minify/2e259.default.include.eb73da.js net::ERR_ABORTED 403 (Forbidden)

    I checked on the server filesystem, and both files do not exist.
    wp-content/cache/minify contains two files (.htaccess and index.html) and a directory 2e259. This directory has the following two files:
    default.include.css.id:
    s:6:”b60b44″;

    default.include.js.id:
    s:6:”eb73da”;

    Nothing else.
    I did not see any error messages that were reported by W3TC.

    Webserver is Apache.
    Used wordpress Theme: The7

    Let me know what further information I can provide to help getting to the root of this issue.

    Thank you very much for your help in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chsmail

    Thank you for reaching out and I am happy to assist you with this.
    Can you please confirm you are getting the same problem with both Auto and Manual minify?
    1. Check the Performance>Minify settings and make sure that the Rewrite URL structure checkbox is enabled.
    2. Check the wp-content/cache/minify/.htaccess file and make sure that the rules are the same as in the suggested rules in the plugin Performance>Install.
    3. If you are using any proxy service like Nginx proxy, there is a chance that the static files are being handled by the Nginx so please let me know if this may be the case.

    Thanks!

    Thread Starter chsmail

    (@chsmail)

    Hello @vmarko,
    thank you for your answer.
    I do not get the same problem with auto minify. Then the generated, minified files are directly in the wp-content/cache/minify/ folder – no subfolders. But the auto setting has other problems, affecting the functionality of the website caused by js errors.
    1) Rewrite URL structure is enabled
    2) wp-content/cache/minify/.htaccess is identical with the the suggested rules from Performance>Install.
    html/.htaccess was slightly differently ordered, # BEGIN W3TC Page Cache core block came after the # BEGIN W3TC Browser Cache block. So I replaced the blocks in the .htaccess with the suggested rules from the Install page, but it did not have any effect. Of course, in that .htaccess, there are modifications of other plugins as well – for example, iThemes security. I have deactivated iThemes and removed other changes here as well – no effect.
    3) I am not aware of any proxy and there should be no nginx involved.

    Is it expected that with the manual minify setting the folder structure of wp-content/cache/minify/ is as described? So this would lead me to the conclusion that since the requested files are not there, they must be somehow be generated on the fly or be some kind of indirection involved which would lead to the actual minified files – but is not working in this case?

    Thank you!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chsmail

    Thank you for the information.
    I’ve tried to replicate the problem, however, I was unable to as the Minified files are created and there is no 403 error. And I am using Stackpath and Cloudflare.
    I” ve checked the minify folder and the files are there.
    If the files are not within the Minify folder there might be some problem with permissions.
    You should try to delete the entire minify folder, go back to Dashboard, save all settings and purge the cache.
    Thanks!

    Thread Starter chsmail

    (@chsmail)

    Hi @vmarko,
    after further investigation I found out that another plugin was the reason why it did not work.
    I had Block Bad Queries Firewall installed (https://www.ads-software.com/plugins/block-bad-queries/) and it prohibits requests that contain the pattern “*.inc*”, which of course matches the minified files by W3TC.

    All the best and thank you for trying to look into it!

    Jeff Starr

    (@specialk)

    @chsmail I will remove .inc from BBQ next update. Thanks for reporting.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chsmail

    Thank you for the information and your feedback.
    @specialk Thank you for looking into this!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘minified files do not exist in /wp-content/cache/minify’ is closed to new replies.