Hi,
If we wanted to completely disable minification / merging of .js
files, how would you go about that because ticking “Disable JS Minification” and “Don’t Merge JS” in settings still seems to load .js
files from /wp-content/mmr/
folder rather than their usual locations.
We are finding that WooCommerce Stripe / Paypal sales continue to occasionally fail when .js files are minified and / or items refuse to be changed in the mini cart so need a quick fix but still want to merge / minify .css
.
Please advise.
Oliver
]]>Hi,
Just seen this in our error.log …
E_WARNING: date() expects parameter 2 to be int, string given in /wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php?on line 315
Not 100% sure what the circumstances were surrounding this but I suspect it happened when “Purge All” was pressed. Looks like you need to change line 313 – 316 to …
elseif (absint($accessed))
{
$accessed = date(get_option('date_format'), $accessed);
}
else
{
$accessed = 'Unknown';
}
Kind regards,
Oliver
]]>Hello,
first of all I would like to mention that this plugin is the only plugin of this type that we have managed to get running in our customer’s environment. And the option to remove certain files from the merge process alone is a great blessing, which has saved us many problems. So thank you very much for this helpful plugin.
But unfortunately we have a small problem with the plugin. We provide our own CSS and JS files with a timestamp to version them and to avoid problems with the caching of browsers. But we have a JS file that we exclude from the merge process because it is not fully compatible with it. Unfortunately, when using this plugin, the question mark with the timestamp is removed from this file. This leads to the browser of users not recognizing changes within the file.
Is there a workaround for this problem or is this perhaps a “bug” in the plugin. Many thanks for any help in advance.
]]>Hello,
Following your instructions to add support for .css.gz and .js.gz by adding the following lines to .htaccess …
#Serve gzip compressed CSS files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.css $1\.css\.gz [QSA]
#Serve gzip compressed JS files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
#Serve correct content types, and prevent mod_deflate double gzip.
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=is_gzip:1]
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1,E=is_gzip:1]
Header set Content-Encoding "gzip" env=is_gzip
This results in pages not being served at all with the following error …
500 Internal Server Error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.41 (Ubuntu) Server Port 443
Please advise.
Oliver
]]>Hello,
Is there a particular reason you are no longer able to support sites that are still running PHP v7.4?
Thank you,
Oliver
]]>Hi.
I can’t find a way around it, the plugin breaks the datepicker for logged in users when they are submitting from frontend.
Could there be a “snippet” for disabling for all logged in users?
I think I’m missing something, but whenever I enable the plugin in my css & js stop loading and I get a Blocked loading mixed active content with a path to the files. Why is this occurring?
Any help here would be greatly appreciated, seems like most of the support threads & reviews I’ve looked through it doesn’t take much to get this plugin working.
Hope to hear back soon. -Thanks!
]]>Hi,
We’ve found a little bug that probably only affects developers. When you edit one of the .js files in a site, the amended file is added to the merged javascript but in addition to the version that’s already there.
The temporary fix is press your “Purge All” button.
Oliver
]]>Hi, we are using the MMR plugin for merging and minifying most of the js and css scripts. For better security on our website we would like to add the integrity to the scripts.
EX:
<script
src="https://example.com/example-framework.js"
integrity="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
crossorigin="anonymous"></script>
Looking into the settings, the option to add the integrity is not present. Would you consider adding the option?
Or is there a hook I can hook into, once the scripts are being enqueuded?
Thanks
After recent update “mini cart” doesn’t work any more when Merge + Minify + Refresh plugin enabled. It’s just blank cart icon without functionality. Any help to resolve that please?
]]>Hi,
We’ve discovered that this plugin breaks the mobile navigation button on the default Twenty Seventeen theme.
To reproduce the issue, install and activate Twenty Seventeen theme. Then install and activate Merge + Minify + Refresh plugin.
View the site on a small browser window or mobile device and you will find that the primary navigation menu will no longer open.
Our solution so far has been to add https://example.com/wp-content/themes/twentyseventeen/assets/js/navigation.js
to the “Ignore these files (one per line):” option.
Please advise.
Thank you,
Oliver
]]>Hi,
I did the latest updates :
and javaScript file merge feature no longer works properly, after updating Woocommerce 8.2.2 to 8.3.
I get around fifteen javascript files on the single product page…
BR
]]>Hi,
I did the latest updates :
and getting error with a console message:
Uncaught SyntaxError : Invalid or unexpected token (at xxxxxxxx-xxxxxxxxxx.js.min.js:228:3486)
This file xxxxxxxx-xxxxxxxxxx.js.min.js contains the following files :
and the error seems to come from the file : wp-polyfill.min.js
For information, I had to add an additional line of files to exclude in the plugin:
/wp-includes/js/dist/vendor/wp-polyfill.min.js
after :
/wp-includes/js/jquery/jquery.min.js
/wp-includes/js/jquery/jquery-migrate.min.js
to no longer have the error…
BR
]]>We have had to disable this plugin on at least one website because it has started interfering with the theme’s (Twenty Twenty) inline CSS by caching it and adding it back in in a different order causing the Customizer changes to be overridden by style.css.
This is the CSS that the theme creates …
<style id='twentytwenty-style-inline-css'>
.color-accent, .color-accent-hover:hover, .color-accent-hover:focus, :root .has-accent-color, .has-drop-cap:not(:focus):first-letter, .wp-block-button.is-style-outline, a {
color: #1f7cb7;
}
<style>
… to override the items in style.css namely …
a {
color: #cd2653;
text-decoration: underline;
}
Please advise.
]]>Hi,
We’ve started to see this issue on several WooCommerce sites and disabling your plugin resolves it.
The general error is “Nonce validation failed”.
I think that what’s happening is that the plugin is caching a nonce which is causing it to fail either for another user or because the nonce has expired.
I’m not 100% sure but I think it may be this .js file that’s being cached that’s causing the issue /wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-settings.js
although we also have another site experiencing the same problem
That file itself doesn’t have any nonces in it but the inline localisation script before it wc-settings-js-before
does.
How can we prevent your plugin from caching nonces so that we are able to re-enable the plugin on sites that use WooCommerce?
Many thanks,
Oliver
]]>Hello,
I’m trying to modify the merged/minified js content. In fact I want to add obfuscation. How can I use your filters/actions to change the .min.js contents before it gets saved?
– Dennis
Hi guys, i’m having the same problem reported at this thread –
https://www.ads-software.com/support/topic/wp-content-mmr-virus-spam/
How it was solved?
Thanks in advance, Ricardo
]]>Hi,
I wonder if you can explain something? We are finding that we are having to set to ignore these files in your plugin settings on a lot of sites …
/wp-includes/js/jquery/jquery.min.js
/wp-includes/js/jquery/jquery-migrate.min.js
… because if we don’t we get a load of jQuery Migrate warnings in the console like …
JQMIGRATE: jQuery.fn.change() event shorthand is deprecated
JQMIGRATE: jQuery.fn.focus() event shorthand is deprecated
JQMIGRATE: jQuery.fn.blur() event shorthand is deprecated
Any ideas why this might be?
Thank you,
Oliver
]]>Hello, I’m setting up a WordPress blog and may switch to headless in the near future. As such, to avoid resetting everything when I move, I have setup different home_url and site_url in wp-config.php
When setup this way, MMR will only work on the site_url since most plugins will add scripts and styles this way
This does not work for a decoupled setup
I was able to fix this with the following code from merge-minify-refresh.php
line 513
$wp_host = parse_url(get_site_url(), PHP_URL_HOST);
// if( !$url_host || $url_host == $this->host)
if( !$url_host || $url_host == $this->host || $url_host == $wp_host)
Is there somewhere this can get added into the plugin so I don’t have to edit every-time the plugin is updated
]]>Hi,
We’re seeing a lot of these in the debug.log …
[08-Feb-2023 11:15:20 UTC] E_NOTICE: String offset cast occurred in /wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php on line 1064
Could you please investigate?
Thank you,
Oliver
]]>Hey, we’re using MMR on one of our sites and while in general it seems to work ok, it seems that there is a consistent 404 error being thrown by the plugin.
I’ve tweaked a few settings, but have been unable to get rid of the 404 error.
The error is thrown n one of merged CSS files.
Can you guide me on what could be the issue please?
]]>Is this plugin still supported and tested on latest WP releases? I hope so, as it is an excellent plugin!
]]>Thanks for the plugin, great job!
BTW, as an idea, can you please add easy function:
allow inline css and / or JS code to html document in case the css/js file is less than xx KB ?
xx user can edit
It would be perfect feature to solve render-blocking problem and its easy to realise ??
]]>Hey!
Here is Matthew, the developer behind Real Cookie Banner. I want to exclude a file programmatically by a WordPress hook. Can you please add the following change to your plugin:
Regards
Matthew ??
I believe I installed this MMR plugin such a long time ago and removed it, now I noticed there is a folder in my server /wp-content/mmr/ and there are a bunch of files there, example: /wp-content/mmr/bootstrap.js
Even removeing the whole folder of MMR, it comes back after a few minutes. I can’t remove this? what is going on?
I delete the folder and it comes back with last modified date of today. Is this some sort of virus?
]]>If we use Merge + Minify + Refresh for merging, we get alot of 404 warnings for not existing css and js source maps, because the browser now looks for the source maps in the cached folder. Maybe it would be helpful if you add an option to remove this source map definition comments on minify and merge?
]]>Good day. After installing the plug in my home page was scrambled. All content was visible but not in the correct format/design. All other pages were fine. I then installed the “MMR Disable for Visual Composer Editor” and that seemed to correct the problem. However, now some of the sliders (offer slider) is not working on any of the pages I have used one and on one of essential grids I created the images are missing. Also, the sticky footer just randomly appears on pages. I didnt have the sticky footer enabled so not sure why its popping up. What I have done wrong or perhaps I have setup incorrectly?
]]>I’m using with WP Super Cache without cache timeout.
Instead of MMR disable removing expired files through MMR_REMOVE_EXPIRED
, is there any way I can prevent MMR to re-merge CSS & JS?
I don’t see any good reason for MMR to re-merge CSS & JS from time to time.
]]>Just within the past few days, a particular site that I look after has been showing a browser-generated error in Safari on Mac (and Safari/Chrome on iOS, but on iOS Chrome is Safari with a different UI)
The error starts off with a bar that says “A problem occurred loading this web-page” and then Safari tries to reload, eventually giving up with an “A problem repeatedly occurred” error.
No errors in the console, no server errors or anything – but disabling MMR fixes the problem immediately.
No changes on the site that I would have expected to cause this issue to suddenly appear, but do you have any idea what might be causing it?
I’m assuming another plugin has updated and some new JS/CSS in those plugins is causing some sort of error in Safari’s rendering engine once they’ve been minified/merged?
]]>Despite the entry in the Ignore field, the JS file is merged
]]>