rmast
Forum Replies Created
-
Forum: Plugins
In reply to: [XML Sitemaps] No file in sitemaps folder of WP Content after installI use the Google XML Sitemaps plugin instead.
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4This piece of code will already give your closure minified result without java and php exec: (ending on trailing ^M)
<?php
include(“php-closure.php”);$c = new PhpClosure();
$c->add(“wp-embed.min.js”) // file to be minified
->hideDebugInfo()
->advancedMode()
->useClosureLibrary()
->cacheDir(“/tmp/js-cache/”) // directory to store minified files
->write();
?>Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4As the example above concerns js the php I found will be even easier to use I guess:
https://code.google.com/p/php-closure/source/browse/trunk/php-closure.php
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4You can probably borrow some code from the Closure Compiler Service UI:
https://developers.google.com/closure/compiler/docs/gettingstarted_uiForum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4I tried your suggestion of putting define( ‘SCRIPT_DEBUG’, true ); in wp-config.php.
This didn’t repair the site. The cheap hoster doesn’t allow JAVA, so while PHP exec is allowed if you really need it, JAVA is still the missing part. The JAVA minifying via PHP-exec does not break the site on the same script (I tried it on the dedicated host after installing JAVA), so it’s probably a more robust, but also more infrastructure-dependent minifier. The hoster suggests to go (virtually) dedicated 😉
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4Each time my site is broken and I need to investigate by hand is a risk that takes at least several hours from the moment someone informs me about it, so I look for a simple and robust solution that doesn’t break my site whenever WordPress or some plug-in comes with a new upgrade with a new issue, so every solution that involves correcting the broken site afterward is quite ‘expensive’.
The ‘SCRIPT_DEBUG’ method as I understand doesn’t turn off minification of MMR. MMR will still play russian roulette depending on the minification method available (google/php). I can’t tell beforehand whether both minification-methods are more thrustworthy than the wordpress-one.
I would then at least prefer to be able to let MMR stop minification completely, I however haven’t found an option for that.
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4To reduce the calls to the minification without messing with the order of scripts you could somehow add the hash in the text in a way it wouldn’t be deleted, so you can afterward find back the hash and replace the .min.js with their originals.
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4As the file is already minified before MMR lays it’s hands on it (the only gain of minifying by MMR once more is dropping the two crucial semicolons) and your fear of some minification going wrong beforehand I would propose to minify the risk of minification by modify MMR to not minify any script with a name ending on .min.js.
How about that?
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4I just disabled the script for the moment:
http://strikable.com/how-to-disable-auto-embed-script-starting-wordpress-4-4-wp-embed-min-js/
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4Found the minification error:
The new wordpress 4.4 wp-embed.min.js – script looses some ; right behind an else statement with the minification that is run without php exec. You could wonder whether this is a minification bug, a wordrpess 4.4 bug or a MMR bug. But it’s clearly a bug.
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4For some reason the content of all.frontend.min.js doesn’t get executed whenever it is part of the merged and minified js, even when I completely copy the contents on top or on bottom of the minified file. It only gets executed when I put it as a separate entry above or below the minified script on the homepage, so order is not an issue, just being in or outside the minified file…
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4The error appears in the minification of the lowest js-section (found by exchangeing):
2015-12-25T15:52:08+00:00 – MERGED:
– hoverintent – http://www.tekenbeetziekten.nl/wp-content/plugins/ubermenu/core/js/hoverIntent.js
– ubermenu – http://www.tekenbeetziekten.nl/wp-content/plugins/ubermenu/core/js/ubermenu.min.js
– jquery-form – http://www.tekenbeetziekten.nl/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js
– contact-form-7 – http://www.tekenbeetziekten.nl/wp-content/plugins/contact-form-7/includes/js/scripts.js
– stichtingtekenbeetziekten-navigation – http://www.tekenbeetziekten.nl/wp-content/themes/stichtingtekenbeetziekten/js/navigation.js
– stichtingtekenbeetziekten-skip-link-focus-fix – http://www.tekenbeetziekten.nl/wp-content/themes/stichtingtekenbeetziekten/js/skip-link-focus-fix.js
– wp-embed – /wp-includes/js/wp-embed.min.js
– slideshow-jquery-image-gallery-script – http://www.tekenbeetziekten.nl/wp-content/plugins/slideshow-jquery-image-gallery/js/min/all.frontend.min.js
– knews_subscribe – http://www.tekenbeetziekten.nl/wp-content/plugins/knews/includes/knews_subscribe.js
2015-12-25T15:55:28+00:00 – COMPRESSING WITH MINIFY (PHP exec not available)
2015-12-25T15:55:29+00:00 – COMPRESSION COMPLETE – 3.59K savedForum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4Turning on php exec doesn’t solve the issue, so I turned it off again…
Turning off minification only happens when the machine is not able to minify I presume?
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4Probably this is a hint in the right direction:
â—¾Minifies JS with Google Closure (requires php exec) with fallback to MinifyMy cheap hosting probably has php exec turned off by default, I’ll investigate that.
Forum: Plugins
In reply to: [Merge + Minify + Refresh] Clash with slideshow 2.3.1 in WordPress 4.4Stupid question: How do I turn off minification? I only see options for turning off merging?