We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20335
    • 4 Posts
    Hello. I’m suddenly experiencing a problem when I try to save snippets. I can’t save them if I have $_POST, or $_GET in the text. I can only guess that this has to do with a server change, because all of my MODX installs on this host are experiencing the same issue.

    For example.. If I create a new snippet and put in the following.

    <?php
    print_r($_POS);
    ?>
    


    It saves fine, but if I put in...
    <?php
    print_r($_POST);
    ?>
    


    It doesn’t save, and it shows me the website home page within the manager window.
    The same thing will happen with $_GET. I’m trying to work with my host provider, but I don’t know what to ask them? This is happening on MODX 1.0.4, and 1.0.2.

    5.0.67-community
    Apache version 2.2.17
    PHP version 5.2.9

    Thanks
      • 36502 ☆ A M B ☆
      • 491 Posts
      Hi,
      did you check your logs?
      both inside MODx manager and in the server (if you have access to them)
        TilliLab | MODX Ambassador
        website
        • 20335
        • 4 Posts
        I did find some other people having similar problem. I’m going to see what I can find out here. Thanks.

        http://modxcms.com/forums/index.php/topic,14223.msg92892.html#msg92892

        and

        http://wiki.modxcms.com/index.php/What_is_mod_security_and_how_does_it_affect_me