Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @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 5 replies - 1 through 5 (of 5 total)