• Resolved evanr76

    (@evanr76)


    Our WordPress installation is in a subdirectory of our document root – /help

    Minify can’t find any of the sources, even though they all verify fine while being added. Any request to a minified file produces 400 Bad Request, with nothing in the minify log except:

    [Fri, 13 Aug 2010 00:03:19 -0700] [/help/wp-content/w3tc/min/98997b/default.include.0.css] A group configuration for “include” was not set

    One thing I’ve noticed is that the .htaccess file in w3tc/min has a RewriteBase that is a filesystem absolute path, rather than a URI absolute path, which is what I usually see in RewriteBase, i.e.

    # BEGIN W3TC Minify
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /var/www/help/wp-content/w3tc/min/
    RewriteRule ^([a-f0-9]+)\/(.+)\.(include(\-(footer|body))?(-nb)?)\.[0-9]+\.(css|js)$ index.php?tt=$1&gg=$2&g=$3&t=$7 [L]
    </IfModule>
    # END W3TC Minify

    Is that normal? I ask because I can’t even get min/index.php to run unless I change RewriteBase to /help/wp-content/w3tc/min/

    Also, I noticed W3TC patches the .htaccess in the document root, when I believe it would be more appropriate to patch it in the WordPress installation subdirectory.

    Is there a way to “teach” W3TC that WordPress is installed in a subdirectory?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Frederick Townes

    (@fredericktownes)

    Try to hardcode correct document root in wp-config.php: $_SERVER['DOCUMENT_ROOT'] = '/path/to/docroot'; or get the development version of the plugin which has a workaround.

    Hi,

    I have the latest version of W3 Total Cache installed (0.9.1.3) and I have I think similar problem. If I choose to minify css the stylesheet never loads. The same is with js but in this case the page loads forever.

    It worked perfect on the previous version 0.9.1.2. If you could please help me with this.

    The message says:

    Recently an error occurred while creating the CSS / JS minify cache: Some files were unavailable, please check your settings to ensure your site is working as intended.

    minify.log:

    [Wed, 20 Oct 2010 09:13:56 +0000] [/wp-content/w3tc/min/2f1857/default.include.1562496683.css] A group configuration for “include” was not set

    (this one is only for css)

    .htaccess from minify folder (has not been changed):

    # BEGIN W3TC Minify
    <IfModule mod_mime.c>
        AddEncoding gzip .gzip
        <Files *.css.gzip>
            ForceType text/css
        </Files>
        <Files *.js.gzip>
            ForceType application/x-javascript
        </Files>
    </IfModule>
    <IfModule mod_deflate.c>
        <IfModule mod_setenvif.c>
            SetEnvIfNoCase Request_URI \.gzip$ no-gzip
        </IfModule>
    </IfModule>
    <IfModule mod_headers.c>
        Header set X-Powered-By "W3 Total Cache/0.9.1.3"
        Header set Vary "Accept-Encoding"
    </IfModule>
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /wp-content/w3tc/min/
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteRule .* - [E=APPEND_EXT:.gzip]
        RewriteCond %{REQUEST_FILENAME}%{ENV:APPEND_EXT} -f
        RewriteRule (.*) $1%{ENV:APPEND_EXT} [L]
        RewriteRule ^([a-f0-9]+)\/(.+)\.(include(\-(footer|body))?(-nb)?)\.[0-9]+\.(css|js)$ index.php?tt=$1&gg=$2&g=$3&t=$7 [L]
    </IfModule>
    # END W3TC Minify

    Thanks in advance for your help

    I have tried the development version and after that went back to v.0.9.1.2 and got the same. I have called to my hosting company and they told me that they had some huge upgrade on the server recenlty so I believe the problem is on my provider’s end.

    They said they will help me with that, thanks

    I’m having the same issue and error. Did you ever work this out? If so, how?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: W3 Total Cache] non-standard docroot setup; Minify can't find sources’ is closed to new replies.