We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21257 MODX Staff
    • 730 Posts
    shocked oh boy, I think I need to switch to a new brand of coffee
      Mike Schell
      Lead Developer, MODX Cloud
      Email: [email protected]
      GitHub: https://github.com/netProphET/
      Twitter: @mkschell
      • 13135
      • 30 Posts
      I have the escaping backslashes happening on saving documents in the manager on another site now...

      How can i turn off magic_quotes_gpc?
      Where can i find this?
        • 21257 MODX Staff
        • 730 Posts
          Mike Schell
          Lead Developer, MODX Cloud
          Email: [email protected]
          GitHub: https://github.com/netProphET/
          Twitter: @mkschell
          • 34480
          • 4 Posts
          Dear all, I have this very same issue.
          I can’t get it to work, I still get all the slashes in the code, or an Internal Server Error 500....
          I have PHP 5.3.6 and ModX Evolution 1.0.5

          What settings do I need in my .htaccess to make this work properly ?

          Tnx !!
            • 21257 MODX Staff
            • 730 Posts
            In the link above your post, it has what you need for .htaccess
            php_flag magic_quotes_gpc Off
            

            Note that once this setting is turned off, it will not magically remove the backslashes that may have been added to your content as you saved stuff. You’ll have to manually remove the backslashes, and hopefully with that in your .htaccess, the setting will actually get turned off any subsequent saves won’t add slashes again.
              Mike Schell
              Lead Developer, MODX Cloud
              Email: [email protected]
              GitHub: https://github.com/netProphET/
              Twitter: @mkschell
              • 34480
              • 4 Posts
              I tried that also, it’s then when I get that 500 Internal Server Error sad

              Some more info: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.3.6 Server

              The ModX install is in a subdir which I renamed "core" and the .htaccess is placed in this dir with the rest of the ModX files...
                • 21257 MODX Staff
                • 730 Posts
                I recommend taking it up with your hosting provider. You should be able to set that flag in your .htaccess but it’s also not unheard of for that to cause a server error. It’s likely their configuration, and they’ll need to tell you how to turn off magic_quotes. (Hopefully you can! If you can’t I’d seriously think about looking for another provider.)
                  Mike Schell
                  Lead Developer, MODX Cloud
                  Email: [email protected]
                  GitHub: https://github.com/netProphET/
                  Twitter: @mkschell