We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45145
    • 14 Posts
    Good day, dear friends!

    I would be incredibly grateful if you will try to help me with my problem.

    The fact that it is impossible to save the previously created template.

    After click save - gives the following error:

    Forbidden

    You do not have permission to access this document.
    Web Server at uXXXXXXXX.plsk.regruhosting.ru

    Instead XXXXXXXXX - my login at host, so it isn't matter.

    I would be very grateful to any advice - I write here, because lost about 5 hours with searching in.

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

    • That sounds like a problem with mod_security.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 45145
        • 14 Posts
        Quote from: sottwell at Oct 18, 2014, 10:09 AM
        That sounds like a problem with mod_security.

        Thanks a lot for your post. Can anyone tell me, what i need to do? I'm new in MODx, so any advice will be for pleasure.
          • 3749
          • 24,544 Posts
          You need to speak to your host. They can check the logs and turn off any mod_security rules that are being violated.

            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
            • 45145
            • 14 Posts
            Quote from: BobRay at Oct 19, 2014, 03:01 AM
            You need to speak to your host. They can check the logs and turn off any mod_security rules that are being violated.


            Thanks a lot for your advice, i'm going to contact my host. But if someone knows any other solutions - you're welcome!
            • Try saving just bits at a time, and see what exactly is causing the error. First, make a duplicate of the template and see if you can save that.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 45145
                • 14 Posts
                Quote from: sottwell at Oct 19, 2014, 02:20 PM
                Try saving just bits at a time, and see what exactly is causing the error. First, make a duplicate of the template and see if you can save that.

                Thank you for interest!

                I can make new template, and i can save that with code like "Hello".

                But with my main template code it's can't be saved. [ed. note: megarofl last edited this post 9 years, 6 months ago.]
                • Well, there's something in that template that is setting off the mod_security block. All you can do is try adding a few lines at a time and save, until you get to the one that won't save. I would suspect anything to do with email, or any javascript.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                  • discuss.answer
                    • 45145
                    • 14 Posts
                    The solution was founded. Thanks a lot to all. I was needed to write to hoster.