Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7977

Error during minimization of selectnav.js

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.0RC2
    • None
    • None

      This is the error and in attachments the js

      2017-01-31 17:12:46,092 ERROR [sitemap] (http-nio-8080-exec-10;/live/intranet/_plugins/core-ui/resources-minimized/LTgxNjUyMjEzMWZy.js) Cannot minimize JS for file '/live/skins/Intranet/resources/js/selectnav.js (1485870746000)'. Due to the following errors:
      [ERROR] il manque ';' avant une instruction ( */window.selectnav = function() {: 10)
      [ERROR] la valeur renvoyée est incorrecte (    return function(b, c) {: 11)
      [ERROR] erreur de syntaxe (}();: 1)
      [ERROR] Compilation produced 3 syntax errors. (null: 0)
      org.mozilla.javascript.EvaluatorException: Compilation produced 3 syntax errors.
              at org.ametys.plugins.core.ui.minimize.MinimizeJSReader$LoggerErrorReporter.runtimeError(MinimizeJSReader.java:140)
              at org.mozilla.javascript.Parser.parse(Parser.java:396)
              at org.mozilla.javascript.Parser.parse(Parser.java:340)
              at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315)
              at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:540)
              at org.ametys.plugins.core.ui.minimize.MinimizeJSReader._handleFile(MinimizeJSReader.java:73)
              at org.ametys.plugins.core.ui.minimize.AbstractMinimizeReader._handleFiles(AbstractMinimizeReader.java
      Carca
      

            glefebvre Grégory Lefebvre (Inactive)
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: