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

    I have a fairly large site, which often hangs when I hit 'save' on a resource (using firefox). There's no way to cancel it, so I end up losing my changes.
    I have several other modx sites, but it only happens on this one.

    HAs anyone experienced this?
    I'm assuming it could be a memory issue or something, but when I open it in Safari and save, it seems OK.

    Really annoying, as i much prefer using Firefox.

    Thanks
    Andy

    This question has been answered by tm2000. See the first response.

      • 13218
      • 134 Posts
      Have you looked at your dev tools panel to look at possible error before or after clicking the save button?
        @itWilllBeOK
        • 51020
        • 670 Posts
        Quote from: itWillBeOk at Sep 05, 2017, 04:01 PM
        Have you looked at your dev tools panel to look at possible error before or after clicking the save button?
        I haven't. I'm not sure how to interpret the data that would appear there though.
          • 13218
          • 134 Posts
          Hm. That would be the only angle I can think of right now to start debugging. Could also be there is no response at all or maybe a 500 error. Then you could compare if Safari and Firefox are sending the same sets of data.
          If you get a response, the value returned could give you some clue.

          Other than that I have no experiences with an error like that that could help, sorry.
            @itWilllBeOK
            • 51020
            • 670 Posts
            Quote from: itWillBeOk at Sep 05, 2017, 04:11 PM
            Hm. That would be the only angle I can think of right now to start debugging. Could also be there is no response at all or maybe a 500 error. Then you could compare if Safari and Firefox are sending the same sets of data.
            If you get a response, the value returned could give you some clue.

            Other than that I have no experiences with an error like that that could help, sorry.

            OK - will have a go and see what appears in the dev tools

            Thanks
            Andy
              • 3749
              • 24,544 Posts
              Any Firefox plugins that might be interfering?

              Try repairing the table in the DB with PhpMyAdmin.

              One final potential culprit, as always, is mod_security. In my experience, mod_security is responsible for the majority of cases where resources fail to save.
                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
                • 51020
                • 670 Posts
                Quote from: BobRay at Sep 05, 2017, 07:25 PM
                Any Firefox plugins that might be interfering?

                Try repairing the table in the DB with PhpMyAdmin.

                One final potential culprit, as always, is mod_security. In my experience, mod_security is responsible for the majority of cases where resources fail to save.

                Thanks bob

                No extensions - all disabled.
                It's happening across multiple machines too.

                Which table would I repair in the db?

                What would I do with mod_security?

                Thanks
                Andy
                  • 3749
                  • 24,544 Posts
                  Tables: Repair all of them. Select all and use the "With Selected" drop-down at the bottom of the grid.

                  mod_security: The only solution is to file a ticket with your host. They should be able to tell from their logs if mod_security is being triggered. As a diagnostic, you could try saving an empty resource repeatedly. If that hangs, it's not mod_security. Also, if the same resource that didn't save will save on subsequent tries without changing the content or TVs, it's not mod_security.

                  You can try watching the Network tab in Chrome Dev. tools when saving resources. When it hangs, you can select requests and look at the Response tab. You might see a PHP error there or some other indication of the problem.
                    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
                    • 51020
                    • 670 Posts
                    Quote from: BobRay at Sep 05, 2017, 08:47 PM
                    Tables: Repair all of them. Select all and use the "With Selected" drop-down at the bottom of the grid.

                    mod_security: The only solution is to file a ticket with your host. They should be able to tell from their logs if mod_security is being triggered. As a diagnostic, you could try saving an empty resource repeatedly. If that hangs, it's not mod_security. Also, if the same resource that didn't save will save on subsequent tries without changing the content or TVs, it's not mod_security.

                    You can try watching the Network tab in Chrome Dev. tools when saving resources. When it hangs, you can select requests and look at the Response tab. You might see a PHP error there or some other indication of the problem.

                    Ok thanks - I'll do some fishing! Will report back if I find the culprit.
                      • 51020
                      • 670 Posts
                      Quote from: BobRay at Sep 05, 2017, 08:47 PM
                      Tables: Repair all of them. Select all and use the "With Selected" drop-down at the bottom of the grid.

                      mod_security: The only solution is to file a ticket with your host. They should be able to tell from their logs if mod_security is being triggered. As a diagnostic, you could try saving an empty resource repeatedly. If that hangs, it's not mod_security. Also, if the same resource that didn't save will save on subsequent tries without changing the content or TVs, it's not mod_security.

                      You can try watching the Network tab in Chrome Dev. tools when saving resources. When it hangs, you can select requests and look at the Response tab. You might see a PHP error there or some other indication of the problem.

                      Hi again.
                      So I caught thew issue in the console on saving - but not sure what it means!
                      Obviously something to do with tinyMCE - but I've checked and it's the latest version.

                      NS_ERROR_UNEXPECTED: tiny_mce.js:1
                      serialize https://www.domain.com/site/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js:1:118342
                      getContent https://www.domain.com/site/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js:1:174286
                      save https://www.domain.com/site/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js:1:173114
                      triggerSave/< https://www.domain.com/site/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js:1:156871
                      each https://www.domain.com/site/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js:1:1914
                      triggerSave https://www.domain.com/site/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js:1:156844
                      render/</s.submit https://www.domain.com/site/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js:1:160123
                      doFormUpload https://www.domain.com/site/manager/assets/ext3/ext-all.js:21:52589
                      request https://www.domain.com/site/manager/assets/ext3/ext-all.js:21:50202
                      run https://www.domain.com/site/manager/assets/ext3/ext-all.js:21:630607
                      createDelegate/< https://www.domain.com/site/manager/assets/ext3/adapter/ext/ext-base.js:21:8901
                      uncaught exception: [object Object] (unknown)

                      I will repair the database and report back.