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

    I'm confused. When I try to insert an image in a regular page it will show but as soon I hit the save button it disappears. When I look at HTML code I see some weired quotes around the url of the pic. when I clean it up it show again.....until I hit that save button again.

    exmpl. code
    src="\"assets/images/uitnodiging.png\""

    What is going on. I'am in a hurry for my client...I've tried to updgrade to 2.2 but run into some trouble so still working with 104.

    anyone?!

    tia Barry
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      Hello,

      Your problem is being caused by magic quotes, disable them and you should be able to clear up the extra \ to restore the site.

      Also there is no direct path to upgrade from Evolution to Revolution, if you wish to make the jump between versions it needs to be done manually (granted Provisioner can work too)
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 2610
        • 6 Posts
        thanks... any idea where tot disable the magic quotes?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          That depends on your server configuration. You might want to ask your hosting tech support for the best way to do that on your server.

          http://www.php.net/manual/en/security.magicquotes.disabling.php
            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
            • 2610
            • 6 Posts
            Problem solved! It was indeed the magic quotes..... I disabled it in root .htaccess file

            # Turn off php magic quotes
            php_flag magic_quotes_gpc off

            Many thanks sottwell!!!
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              Sottwell is correct, it does depend on your server configuration. You can use http://tips-scripts.com/php_ini to create a php.ini file that works with most server configurations.

              Just remove the $parm[] = "session.use_trans_sid = 0"; line and you should be good.
                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting
                • 1343 ☆ A M B ☆
                • 2,213 Posts
                Never mind, glad to hear you got it cleared up!
                  Patrick | Server Wrangler
                  About Me: Website | Tweets |  MODX Hosting
                  • 2610
                  • 6 Posts
                  And in my hurry I forgot to thank AMDBuilder!

                  Many thanks to you.

                  I look into your tipsscript later....now ..me sleep....