We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37141
    • 4 Posts
    Hi all,

    We inherited a MOD X site (its 1.04) and needed to move it quickly to new hosting.

    The site itself works...until we go into the manager... whenever we do this and make any changes at all we get a ton of random \\\\ //// all throughout the content which of course messes the site up... we have turned magic quotes off on the server etc but to no avail....

    this of course is causing some slight frustrations....

    Any ideas on how to sort this out please?

    Thanks

      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Mark Hamstra Reply #2, 15 years ago
      Sounds like magic quotes haven't been turned off properly. What does the phpinfo (under Reports) say about it?

      Though when you turned them off, that would not revert what had already been changed in the database so you'd want to revert that. Moving hosts you probably have a backup, right?
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 37141
        • 4 Posts
        Hi there,

        We have backups luckily and the hosting company have been great to revert back to the previous version each time we try a fix....so we tried turning it off (they did) and the problem persisted.

        They have told me magic quotes was turned off but the problem still persists.....would this issue arise if it was migrated to a server with a newer version of php installed?

        Or does it sound like a magic quotes issue and that they haven't turned it off correctly?

        Am worried to go into phpinfo as each time we go into the CMS it seems to mess the site up!

        Am at such a loss!

          • 18373 ☆ A M B ☆
          • 3,141 Posts
          Mark Hamstra Reply #4, 15 years ago
          If all it adds are slashes that really sounds like magic quotes for me. I've seen issues with different database encodings, but you're more likely to see weird characters than slashes in that case. I'm not sure what else could cause stuff like this, though I am far from an expert in server stuff.

          Just opening the manager shouldn't be a problem, just don't update resources as far as I know.

          I would assume that the host knows how to change the config, but double checking never hurt anyone?
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            I'm with Mark, it's most likely an issue with Magic Quotes. I know one of my servers was being stupid and not turning off Magic Quotes using the normal method, so I had to manually kill them.

            Shoot us a link to your phpinfo and we can have a look, or as Mark noted as long as you don't save any resources you should be fine to view it yourself.
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting
              • 3749
              • 24,544 Posts
              You can see PhpInfo on the Reports -> System Info page (the "view" link). There's no way that should mess up the site. It certainly sounds like magic_quotes_gpc is the culprit.
                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
                • 37141
                • 4 Posts
                Hmmmmmm OK going to try and get the PHP info stuff and post it here!
                  • 3749
                  • 24,544 Posts
                  Be careful about that, there's a lot of info there that hackers would like to see. Just cut-and-paste the part with magic_quotes_gpc in it.
                    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
                    • 37141
                    • 4 Posts
                    Ok will be doing this on Monday as don't want to risk breaking the site for her as its an important weekend for her!

                    Will update monday....