Title: minified javascript corrupted
Last modified: September 1, 2016

---

# minified javascript corrupted

 *  Resolved [JHooper](https://wordpress.org/support/users/jhooper/)
 * (@jhooper)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/)
 * Hi, I noticed a javascript error on my site caused by the minification omitting
   a space
 * This is the original javascript:
 * if ( args[‘message’] instanceof Array ) {
    args[‘message’] = args[‘message’].
   join( ‘‘ );}
 * And here is that line after minification:
 * if(args.messageinstanceof Array){args.message=args.message.join(‘
   ‘)}
 * Notice that there should be a space in “args.messageinstanceof”
 * [https://wordpress.org/plugins/merge-minify-refresh/](https://wordpress.org/plugins/merge-minify-refresh/)

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

 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/#post-7666820)
 * Hi JHooper. Are you able to check if your using Closure or PHP Minify for compilation?
   You can check the logs for a notice about this.
 *  Thread Starter [JHooper](https://wordpress.org/support/users/jhooper/)
 * (@jhooper)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/#post-7666822)
 * Hi, in the logs it reads:
    COMPRESSING WITH MINIFY (PHP exec not available)
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/#post-7666828)
 * Thanks, It looks like its a bug with PHP Minify. I’ve submitted a error here:
   [https://github.com/matthiasmullie/minify/issues/133](https://github.com/matthiasmullie/minify/issues/133)
 * a workaround is to change your code to `f(args.message instanceof Array){a`
    
   as the space doesn’t get stripped in that case.
 *  [Andrew Miguelez](https://wordpress.org/support/users/andrewmiguelez/)
 * (@andrewmiguelez)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/#post-8381990)
 * PHP Minify has been updated with a fix to the Plugin Author’s submitted issue.
   
   See here: [https://github.com/matthiasmullie/minify/issues/133](https://github.com/matthiasmullie/minify/issues/133)
 * I would suggest resolving this topic unless the OP maintains that their issue
   still exists.
 * [EDIT]
    I just realized the plugin hasn’t been updated yet to the most recent
   version of PHP Minify (including this fix). After an update maybe we can resolve
   this… 🙂
    -  This reply was modified 9 years, 7 months ago by [Andrew Miguelez](https://wordpress.org/support/users/andrewmiguelez/).
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/#post-8382958)
 * I’ve been meaning to update Minify in MMR.. but just haven’t got round to it 
   yet.
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/#post-8405039)
 * I’ve just pushed a new version of MMR (1.6.12) that includes the latest version
   of Minify. This should fix your error.
    -  This reply was modified 9 years, 7 months ago by [launchinteractive](https://wordpress.org/support/users/launchinteractive/).

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

The topic ‘minified javascript corrupted’ is closed to new replies.

 * ![](https://ps.w.org/merge-minify-refresh/assets/icon.svg?rev=3414776)
 * [Merge + Minify + Refresh](https://wordpress.org/plugins/merge-minify-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/merge-minify-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/merge-minify-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/merge-minify-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/merge-minify-refresh/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/minified-javascript-corrupted/#post-8405039)
 * Status: resolved