We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42042
    • 140 Posts
    Hi All,

    Many times I'm not able to save a document. While it does save it stays loading and loading. Weird error message in the console. Anyone knows how to fix this?

    VM11383:1 Uncaught SyntaxError: Unexpected token class
    at doDecode (ext-all.js:21)
    at Object.decode (ext-all.js:21)
    at Ext.form.Action.Submit.handleResponse (modx.jsgrps-min.js:1)
    at Ext.form.Action.Submit.processResponse (ext-all.js:21)
    at Ext.form.Action.Submit.success (ext-all.js:21)
    at o (ext-all.js:21)
    at Ext.data.Connection.s (ext-all.js:21)
    at HTMLIFrameElement.I (ext-all.js:21)
      • 3749
      • 24,544 Posts
      TinyMCE could be the problem, especially if there's an update available.

      It could also be a plugin with a problem, or one that needs to be updated. Try disabling any plugins attached to OnDocFormSave or other other events that could fire when saving a document. Manually delete all files in the core/cache directory after disabling the plugins and before testing.



        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 42042
        • 140 Posts
        Quote from: BobRay at Jan 13, 2018, 01:47 PM
        TinyMCE could be the problem, especially if there's an update available.

        It could also be a plugin with a problem, or one that needs to be updated. Try disabling any plugins attached to OnDocFormSave or other other events that could fire when saving a document. Manually delete all files in the core/cache directory after disabling the plugins and before testing.




        Thanks Bob. Using CK and turing it off did not solve the problem. Will check which plugins run on OnDocFormSave.
          • 3749
          • 24,544 Posts
          If it's specific documents that won't save, it could be mod_security, but in that case the save would normally fail.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 42042
            • 140 Posts
            Quote from: BobRay at Jan 15, 2018, 05:26 PM
            If it's specific documents that won't save, it could be mod_security, but in that case the save would normally fail.

            Hmm, seems that the problem wont appear in Firefox..maybe an browser extension?
              • 3749
              • 24,544 Posts
              Hmm, seems that the problem wont appear in Firefox..maybe an browser extension?

              It could be.

              I know at one time a mismatched date_timezone setting could also interfere with saving -- not sure if this is still the case.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting