Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter laszlogo

    (@laszlogo)

    Hello @vmarko,

    Great to hear you found the bug and will pushing a fix to a new release, 2.8.16 i’m guessing?

    Thread Starter laszlogo

    (@laszlogo)

    Hello @vmarko,

    Now your question is clear, yes it was in de W3TC block, to be more specific in between the #BEGIN W3TC Browser Cache and #END W3TC Browser Cache tags, all the way at the end.
    Here is the entire piece in between a IfModule check:

    <IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=31536000"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    Header set Public-Key-Pins "pin-sha256="$pin"; pin-sha256="$pinbak"; max-age=31536000"
    Header set Referrer-Policy "no-referrer-when-downgrade"
    </IfModule>

    We have a back-up service, where i noticed it was written differently, without breaking:

    <IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=31536000"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    Header set Public-Key-Pins "pin-sha256=\"\"; pin-sha256=\"\"; max-age=31536000"
    Header set Referrer-Policy "no-referrer-when-downgrade"
    </IfModule>

    Hope this clears the air and gives enough info to debug the situation and come with a solution/fix!

    • This reply was modified 6 months, 1 week ago by laszlogo.
    Thread Starter laszlogo

    (@laszlogo)

    Hello @vmarko, where can I find these settings?

    @endymion00 thanks for the advice, most certainly not ideal but unfortunately necessary, a real shame because this plug-in most often gives great results.

    There is still no fix for this and it is still happening to websites of our clients. Here another example of a multisite installation where the .htaccess file in the minify folder was faulty again:

    # BEGIN W3TC Minify cache
    # END W3TC Minify cache
    # BEGIN W3TC Minify core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /wp-content/cache/minify/
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.+\.(css|js))$ /index.php [L]
    </IfModule>
    # END W3TC Minify core
        RewriteEngine On
        RewriteBase /wp-content/cache/minify/
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.+\.(css|js))$ /index.php [L]
    </IfModule>
    # END W3TC Minify core
    

    This is the file after regenerating it (deleting and clear caches):

    # BEGIN W3TC Minify cache
    # END W3TC Minify cache
    # BEGIN W3TC Minify core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /wp-content/cache/minify/
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.+\.(css|js))$ /index.php [L]
    </IfModule>
    # END W3TC Minify core
    

    @vmarko is there any update on this issue?
    Multiple user report a problem and we have multiple sites with this issue.
    @endymion00 have given clear instructions on how the issues can be replicated.

    Is there any update on this issue? We’re experiencing similar issues where the .htaccess file has multiple/duplicate/incomplete rewrite rules/conditions which breaks the minify caching completely. Deleting the file and flushing the cache resolve the issue but it keep appearing on “random” intervals.

    Thread Starter laszlogo

    (@laszlogo)

    Hello Ewout,

    Thanks for your quick reply.
    I tried to put the filter inside a muplugins_loaded action, but no succes:

    add_action('muplugins_loaded', 'custom_muplugins_loaded', 10);
    
    function custom_muplugins_loaded()
    {
       add_filter('plugin_locale', function($locale, $textdomain) {
          if($textdomain == 'woocommerce-pdf-invoices-packing-slips') {
             $locale = 'de_DE';
          }
          
          return $locale;
       }, 10, 2);
    }

    You don’t by any change have a working example on how the change the locale of the packingslip PDF?

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