We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53746
    • 9 Posts
    Hi, I've got a website working. But I'm trying to update a specific chunk. When I update it, it saves fine. But once I leave the page and come back, it reverts back to previous version.

    Any ideas?

    Thanks!
      • 4172
      • 5,888 Posts
      is it maybe a static chunk?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 17301
        • 932 Posts
        Issues with mod security on your server can sometimes cause issues like this I've found.
          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 53746
          • 9 Posts
          Quote from: Bruno17 at Dec 14, 2017, 12:19 PM
          is it maybe a static chunk?

          Nope, doesn't seemt o be a static chunk. The option is not ticked.
            • 53746
            • 9 Posts
            Quote from: lkfranklin at Dec 14, 2017, 03:13 PM
            Issues with mod security on your server can sometimes cause issues like this I've found.

            I'm inheriting a few ModX websites from the previous developer, and I'm not too familiar with them. But it seems like he used the same chunk in all of the other sites. And this same situation happens to all of the other sites using this chunk. So he did something special to them.. just need to find what and where.
              • 17301
              • 932 Posts
              If all sites are being hosted on the same server then it could still be the mod security setting with the server.
                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 38783
                • 571 Posts
                Are there any Syntax Checker plugins installed? I have had a problem with these incorrectly rejecting valid code but not giving any warning about it.
                  If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

                  email: [email protected] | website: https://andytough.com
                  • 3749
                  • 24,544 Posts
                  Try emptying the chunk (saving the content somewhere else) and just putting something simple like this in the content field:

                  <p>Hello</p>


                  If that saves correctly it's almost certainly mod_security objecting to something in the content.

                  You can try bringing back parts of the content one at a time to zero in on the content that's triggering mod_security.

                  When a particular chunk, resource, or template won't save but others will, at least nine times out of ten the problem is mod_security.
                    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
                    • 53746
                    • 9 Posts
                    Quote from: BobRay at Dec 15, 2017, 08:21 PM
                    Try emptying the chunk (saving the content somewhere else) and just putting something simple like this in the content field:

                    <p>Hello</p>


                    If that saves correctly it's almost certainly mod_security objecting to something in the content.

                    You can try bringing back parts of the content one at a time to zero in on the content that's triggering mod_security.

                    When a particular chunk, resource, or template won't save but others will, at least nine times out of ten the problem is mod_security.

                    I did that, but for some reason it reverted back to previous version of the chunk. Pretty much cleared the chunk and added <p>Hello</p>. Navigtaed away, went back to the chunk and everything was reverted.
                      • 3749
                      • 24,544 Posts
                      Try manually deleting all files in the core/cache directory and then saving the simplified chunk again.

                      Is there anything in the MODX Error log?

                      It's rare, but sometimes saving is messed up by a mismatch in the date/timezone setting, though that would usually affect more than one chunk.

                      You can also try cutting and pasting the content of the problem chunk into a new one.
                        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