diff --git a/source/plg_system_t3/includes/core/minify.php b/source/plg_system_t3/includes/core/minify.php index 8643432d3f..e9e1c255fd 100644 --- a/source/plg_system_t3/includes/core/minify.php +++ b/source/plg_system_t3/includes/core/minify.php @@ -517,7 +517,12 @@ public static function optimizejs($tpl){ //already minify? if(!preg_match('@.*\.min\.js.*@', $furl)){ - $jsmin = self::minifyJs($fsheet['data']); + try { + $jsmin = self::minifyJs($fsheet['data']); + } catch (Exception $e) { + // error - ignore minify + $jsmin = $fsheet['data']; + } //$jsmin = T3Path::updateUrl($jsmin, T3Path::relativePath($outputurl, dirname($furl))); }