We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3499
    • 20 Posts
    Hi! This problem is bothering me since revolution beta came out! I have pure revolution public release installed, no errors was detected during installation process. When I’m trying to create plugin or snippet, the error like this is thrown:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)
    Timestamp: Tue, 3 Aug 2010 08:01:56 UTC

    Message: Syntax error
    Line: 1
    Char: 1
    Code: 0
    URI: XXX/revolution/manager/assets/modext/build/widgets/element/modx.panel.plugin-min.js

    Message: Object expected
    Line: 7
    Char: 121113
    Code: 0
    URI: XXX/revolution/manager/assets/ext3/ext-all.js

    What should I do about this "out of the box" error? Am I alone in this?
    I’ll appreciate any help!
    Thanks in advance!
      • 28215
      • 4,149 Posts
      Something is wrong in your compressed JS; this could be an upload error or corrupted file.

      You can get around it by turning off compressed JS - set the following settings to 0 (or No):

      compress_js
      concat_js
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 3499
        • 20 Posts
        Quote from: splittingred at Aug 03, 2010, 07:48 AM

        Something is wrong in your compressed JS; this could be an upload error or corrupted file.

        You can get around it by turning off compressed JS - set the following settings to 0 (or No):

        compress_js
        concat_js
        Unfortunately, this didn’t helped. The only difference is, that the error now is related to modx.panel.plugin.js and not to modx.panel.plugin-min.js.
          • 3499
          • 20 Posts
          When I’m trying to access this JS file directly, I’m getting this error message:

          Warning: Unexpected character in input: ’\’ (ASCII=92) state=1 in /opt/users/blackbar/wwwroot/revolution/manager/assets/modext/widgets/element/modx.panel.plugin.js on line 102

          Parse error: syntax error, unexpected T_STRING in /opt/users/blackbar/wwwroot/revolution/manager/assets/modext/widgets/element/modx.panel.plugin.js on line 102
          Maybe this can help, to find the issue.
            • 22303 MODX Staff
            • 10,725 Posts
            Those are PHP errors being reported on JS !?! I think something in your environment is messed up. Perhaps the upload of the files to your server failed.
              • 3499
              • 20 Posts
              The problem was on the server: it was trying to parse .js files with php parser, so I asked my admin to disable that "feature" and "vuala" - all is working just fine!
              Thank you all for help!