We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32678
    • 290 Posts
    Sorry for the repost but I am trying to disable magic quotes and after following the instructions to turn the feature off in php.ini, as well as in ht.access, the behavior remains and I am very frustrated. Can anyone please help me with this issue?

    I’m running a local instance of modx v1.0.4 on MAMP. As stated above, I’ve altered php.ini in both 5.2 and 5.3 with ’magic_quotes_gpc = Off’ (only 5.2 needed to be changed) and added ’php_value magic_quotes_gpc off’ to ht.access.

    Please, any help is greatly appreciated.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If you turned it off (check the phpinfo view in Reports -> System Info), you still have to repair existing items already in the database.
        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
        • 32678
        • 290 Posts
        This issue was the naming convention for .htaccess. OS X v10.4+ won’t allow you to name files as system files (those that begin with ’.’). I had to recreate ht.access as a txt file and then rename it in Terminal. This set magic_quotes_gpc to ’off’ locally.

        Thanks for the help.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Most text editors will allow you to open hidden files, and to save as hidden files (after a warning).
            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