edcs
Forum Replies Created
-
Found another message too:
Recently an error occurred while creating the CSS / JS minify cache: Url/Filename is too long: 0/edcs.me/assets/js/jquery-1.7.2.min. Max length is 25.Should that message be showing the full file path? The
0and the missing.jsextension worries me.It doesn’t sound like any of you are having the same problem, unless you’re all forgetting to mention you’re running multi-site. I’d appreciate it if you started your own support threads because your issues don’t seem to be related to mine.
I’m still getting the same problem when trying to minify, however now I’m getting a more useful error message:
Minify Auto does not work properly. Try using Minify Manual instead or try another Minify cache method. You can also try a lower filename length value manually on settings pageThis gives me a link to a settings page, but I then get a permission denied message. I presume this is because I’m using multi-site and the plugin is in community mode as the link directs to the W3TC settings for that particular site. Anyway, if I manually go to the Minify settings and reduce the file name length to something shorter, like 25, I still get the same error.
Just updated to the latest version, I’m sorry to say that I’m still getting the same problem π
Forum: Plugins
In reply to: W3TC Minify Error – Duplicating Document RootI think this was solved in a subsequent release so the topic can be closed. I’m just waiting for the latest update to be released to see if it solves a different minify problem I’m having now.
Any thoughts?
Forum: Plugins
In reply to: W3TC Minify Error – Duplicating Document RootSupport request sent π
Forum: Plugins
In reply to: W3TC Minify Error – Duplicating Document RootDid you delete a reply? To answer the reply I got via e-mail, that config is what your plugin generated and if this issue has been addressed multiple times before how come I can’t seem to find any tutorials on how to fix it anywhere and why not provide a link to such answered questions?
Forum: Plugins
In reply to: W3TC Minify Error – Duplicating Document RootHere’s the contents of my w3tc.conf file, which is included in the configuration file for this virtual host:
# BEGIN W3TC Minify core rewrite ^/var/www/ecssrv.net/public/wp-content/w3tc(.*?)/min/w3tc_rewrite_test$ /var/www/ecssrv.net/public/wp-content/w3tc$1/min/index.php?w3tc_rewrite_test=1 last; rewrite ^/var/www/ecssrv.net/public/wp-content/w3tc(.*?)/min/(.+\.(css|js))$ /var/www/ecssrv.net/public/wp-content/w3tc$1/min/index.php?file=$2 last; # END W3TC Minify core # BEGIN W3TC Page Cache core rewrite ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 last; set $w3tc_rewrite 1; if ($request_method = POST) { set $w3tc_rewrite 0; } if ($query_string != "") { set $w3tc_rewrite 0; } if ($http_host != "ecssrv.net") { set $w3tc_rewrite 0; } set $w3tc_rewrite2 1; if ($request_uri !~ \/$) { set $w3tc_rewrite2 0; } if ($request_uri ~* "(sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?)") { set $w3tc_rewrite2 1; } if ($w3tc_rewrite2 != 1) { set $w3tc_rewrite 0; } set $w3tc_rewrite3 1; if ($request_uri ~* "(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|\/feed\/|wp-.*\.php|index\.php)") { set $w3tc_rewrite3 0; } if ($request_uri ~* "(wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php)") { set $w3tc_rewrite3 1; } if ($w3tc_rewrite3 != 1) { set $w3tc_rewrite 0; } if ($http_cookie ~* "(comment_author|wp\-postpass|wordpress_\[a\-f0\-9\]\+|wordpress_logged_in)") { set $w3tc_rewrite 0; } if ($http_user_agent ~* "(W3\ Total\ Cache/0\.9\.2\.4)") { set $w3tc_rewrite 0; } set $w3tc_domain ""; if ($http_host ~ ^(www\.)?([a-z0-9\-\.]+\.[a-z]+)\.?(:[0-9]+)?$) { set $w3tc_domain $2; } set $w3tc_ua ""; set $w3tc_ref ""; set $w3tc_ssl ""; set $w3tc_enc ""; if ($http_accept_encoding ~ gzip) { set $w3tc_enc _gzip; } set $w3tc_ext ""; if (-f "$document_root/var/www/ecssrv.net/public/wp-content/w3tc-$w3tc_domain/pgcache/$request_uri/_index$w3tc_ua$w3tc_ref$w3tc_ssl.html$w3tc_enc") { set $w3tc_ext .html; } if ($w3tc_ext = "") { set $w3tc_rewrite 0; } if ($w3tc_rewrite = 1) { rewrite .* "/var/www/ecssrv.net/public/wp-content/w3tc-$w3tc_domain/pgcache/$request_uri/_index$w3tc_ua$w3tc_ref$w3tc_ssl$w3tc_ext$w3tc_enc" last; } # END W3TC Page Cache core # BEGIN W3TC Page Cache cache location ~ /var/www/ecssrv.net/public/wp-content/w3tc.*?/pgcache.*html$ { add_header X-Powered-By "W3 Total Cache/0.9.2.4"; add_header Vary "Accept-Encoding, Cookie"; } location ~ /var/www/ecssrv.net/public/wp-content/w3tc.*?/pgcache.*gzip$ { gzip off; types {} default_type text/html; add_header X-Powered-By "W3 Total Cache/0.9.2.4"; add_header Vary "Accept-Encoding, Cookie"; add_header Content-Encoding gzip; } # END W3TC Page Cache cache # BEGIN W3TC Browser Cache gzip on; gzip_types text/css application/x-javascript text/x-component text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon; location ~ \.(css|js|htc)$ { add_header X-Powered-By "W3 Total Cache/0.9.2.4"; } location ~ \.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$ { add_header X-Powered-By "W3 Total Cache/0.9.2.4"; } location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ { add_header X-Powered-By "W3 Total Cache/0.9.2.4"; } # END W3TC Browser CacheSurely the issue is with the way W3TC figures out the document root of the .css and .js files it’s trying to minify though, rather than with the config file?
Forum: Plugins
In reply to: W3TC Minify Error – Duplicating Document RootI’ve configured W3TC to auto-install all the re-write rules into it’s own w3tc.conf file. It seems to pass the built in tests, but I still get this root directory duplication error.
My bad – should have checked the error logs! The plugin consumes vast amounts of memory and my memory_limit was set too low in php.ini π