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

    When I save the following html code in resource content
    <div class="leftcolumn">
    <p><img class="imgfloatleft" style="float: left;" src="assets/images/meeting.jpg" alt="photo" width="384" height="255" /><strong>my company  LTD.</strong> <br />Address: 33333, eee. <br />P.O. Box00000 (3333), London, UK. <br />Tel: +254 (0)20 2464349 <br />Cell: +254 (0)000000/ 735 00000<br />Email:<a href="mailto:[email protected]">[email protected]</a></p>
    </div>
    <div class="rightcolumn">
    <p>{{faceboook_likebox}}</p>
    </div>


    it changes to this

    <div class=\"\\"leftcolumn\\"\">
    <p><img class=\"\\"imgfloatleft\\"\" src=\"\\"assets/images/meeting.jpg\\"\" alt=\"\\"photo\\"\" width=\"\\"384\\"\" height=\"\\"255\\"\" /><strong>my company LTD.</strong> <br />Address: 3333 . <br />P.O. Box 243339-00502 . <br />Tel: +254 (0)20 2464349 <br />Cell: +254 (0)729 807775/ 735 997555<br />Email:<a href=\"http://mce_host/\\"mailto:[email protected]\\"\">[email protected]</a></p>
    </div>
    <div class=\"\\"rightcolumn\\"\">
    <p>{{faceboook_likebox}}</p>
    </div>


    I have the same site running on localhost and everything runs okay, I have tried ticking off the "rich text editor" in the settings. what could be causing the addition of "\"

    I am running evolution 1.0.6
    any ideas how to solve this ?
      • 22840
      • 1,572 Posts
      Could be that you have magic_quotes_gpc enabled on the server, ask your hosts to turn it off and see if that fixes it.
        • 40092
        • 265 Posts
        Hmmm, looks like it's 'escaping' your double quotes. Let me guess, you use TinyMCE ?

        First of, i would update your evo install to at least the one before the last release(because i do not know the effects of that release, yet. Not because i hate it or something.)
        And upgrade, if possible your TinyMCE version.
          • 45365
          • 4 Posts
          @Paulp Thanks for the quick replies , Have checked the magic quotes the are all off

          @thapriest86 I tried turning off rich text editor no difference plus the same site works super in localhost
            • 40092
            • 265 Posts
            Do localhost and the live environment have the same php version, same Mysql version, same unicode?
              • 22840
              • 1,572 Posts
              Where did you check ?, if you go to the manager and click reports >> System Information does modx report them as off in that list ? ( don't click the php.inf link look in the list on that page ) as I've seen php.info say one thing yet modx saying another.

              If modx is reporting them off I have no idea

              https://forums.modx.com/thread/79372/magic-quotes-disabled-but-still-getting-backslashes-everywhere
                • 45365
                • 4 Posts
                Quote from: paulp at Oct 10, 2013, 02:54 PM
                Where did you check ?, if you go to the manager and click reports >> System Information does modx report them as off in that list ? ( don't click the php.inf link look in the list on that page ) as I've seen php.info say one thing yet modx saying another.

                If modx is reporting them off I have no idea

                https://forums.modx.com/thread/79372/magic-quotes-disabled-but-still-getting-backslashes-everywhere

                Yes i have check php info under system info and magic_quotes_gpc = off
                  • 45365
                  • 4 Posts
                  Thanks yes it was magic_quotes_gpc I adjusted the php ini config using "php.ini EZConfig"
                  in my host cpanel and it all seems ok now
                    • 22840
                    • 1,572 Posts
                    Glad it's working smiley