We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5214
    • 8 Posts
    Hello Im having an issue with modx on a previously working site. I went in this morning to change some hardcoded links from http://www.fivefourfivehosting.com/muffyclarkgill.com blah blah to just http://www.muffyclarkgill.com and after changing the url in the image link and saving the site breaks. I looked at the code and it has a \ in the code- Wasnt there before below is a sample and below that is what it is in the template. Version was 1.0 and I just upgraded to 1.4 to see if that fixed the problem... huh huh huh HELP!!!

    <--------BEGIN Erroneous Code------->

    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
    <title>[(site_name)] | [*pagetitle*]</title>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />

    <!--Start CSS Section-->
    <link href=\"assets/templates/artist/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />
    <!--End CSS Section-->

    <!--Start Java Script Section-->
    <script type=\"text/javascript\" src=\"assets/templates/artist/js/jquery-1.2.6.pack.js\"></script>
    <script type=\"text/javascript\" src=\"assets/templates/artist/js/DD_roundies_0.0.2a.js\"></script>
    <script type=\"text/javascript\" src=\"assets/templates/artist/js/jquery.cycle.all.min.js\"></script>
    <script type=\"text/javascript\">
    DD_roundies.addRule(\’#wrapper\’, \’10px 10px 10px 10px\’, true);
    DD_roundies.addRule(\’#middle\’, \’15px 15px 15px 15px\’, true);
    DD_roundies.addRule(\’#abstract\’, \’10px 10px 10px 10px\’, true);
    DD_roundies.addRule(\’#contemporary\’, \’10px 10px 10px 10px\’, true);
    DD_roundies.addRule(\’#surfArt\’, \’10px 10px 10px 10px\’, true);
    DD_roundies.addRule(\’#currentEvents\’,\’10px 10px 10px 10px\’, true);
    DD_roundies.addRule\’#contactInfo\’, \’10px 10px 10px 10px\’, true);
    DD_roundies.addRule(\’#footer\’, \’10px 10px 0px 0px\’, true);
    </script>
    <script type=\"text/javascript\">
    $(document).ready(function() {
    $(\".pics\").cycle(\’fade\’);
    });
    </script>
    <!--End Java Script Section-->



    </head>
    <body>
    <div id=\"masonJar\">
    <div id=\"header\">
    <div class=\"container\"><!--Top Navigation Goes Here--></div>
    <div id=\"briefText\"></div>
    <div id=\"headerSlideshow\">
    <div class=\"pics\">
    <img src=\"assets/templates/artist/img/img01.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img02.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img03.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img04.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img05.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img06.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img07.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img08.jpg\" width=\"101\" height=\"101\" />
    <img src=\"assets/templates/artist/img/img09.jpg\" width=\"101\" height=\"101\" />
    </div>
    </div>
    </div>
    <div id=\"gutter\"></div>
    <div id=\"col1\">
    <h2>Galleries &amp; <span style=\"font-weight: bold;\">LINKS</span></h2>
    <div id=\"gallery\"> <a href=\"http://www.muffyclarkgill.com/index.php?id=2\"><img src=\"assets/templates/artist/images/buttons/seminole_link.jpg\" alt=\"\" /></a> <a href=\"http://www.muffyclarkgill.com/index.php?id=3\"><img src=\"assets/templates/artist/images/buttons/palm_link.jpg\" alt=\"\" /></a> <a href=\"http://www.muffyclarkgill.com/index.php?id=4\"><img src=\"assets/templates/artist/images/buttons/tropical_link.jpg\" alt=\"\" /></a> <a href=\"http://www.muffyclarkgill.com/index.php?id=5\"><img src=\"assets/templates/artist/images/buttons/sw_link.jpg\" alt=\"\" /></a> <a href=\"http://www.muffyclarkgill.com/index.php?id=6\"><img src=\"assets/templates/artist/images/buttons/exhibition_link.jpg\" alt=\"\" /></a> <a href=\"http://www.muffyclarkgill.com/index.php?id=8\"><img src=\"assets/templates/artist/images/buttons/about3_link.jpg\" alt=\"\" /></a> <a href=\"http://www.muffyclarkgill.com/index.php?id=7\"><img src=\"assets/templates/artist/images/buttons/contact_link.jpg\" alt=\"\" /></a> <a href=\"http://www.funkyflamingo.com/\"><img src=\"assets/templates/artist/images/buttons/reproductions_link.jpg\" alt=\"\" /></a>
    <div class=\"clear\">&nbsp;</div>
    </div>
    <p class=\"box\">Thank you for visiting my online gallery. I hope you enjoy your stay and please make yourself at home. </p>
    </div>

    <------------- END Erroneous Code--------------->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>[(site_name)] | [*pagetitle*]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <!--Start CSS Section-->
    <link href="assets/templates/artist/css/style.css" rel="stylesheet" type="text/css" />
    <!--End CSS Section-->

    <!--Start Java Script Section-->
    <script type="text/javascript" src="assets/templates/artist/js/jquery-1.2.6.pack.js"></script>
    <script type="text/javascript" src="assets/templates/artist/js/DD_roundies_0.0.2a.js"></script>
    <script type="text/javascript" src="assets/templates/artist/js/jquery.cycle.all.min.js"></script>


    <-----BEGIN Good Code----------->


    I also looked on the server and the error log is empty.

    Thanks for any help!!!!



    <---------END Good Code----------->

      • 27705
      • 38 Posts
      I had this same problem. Its from the magic_quotes php setting. What happened to me is that in PHP 5 magic_quotes is supposed to be set to off by default. MODX has a script that gets rid of the slash marks but check to see if you’re using a version before PHP 5 to initiate. My hosting company has PHP5 but changed the setting for magic_quotes to on. What I did was just found the conditional statement for initiating the script for getting rid of magic_quotes and erased it so it would run without checking. Worked fine after that.
        • 5214
        • 8 Posts
        Awesome thanks for the info!!!!

        Do you know where you commended out the code for magic quotes?




        -----------------------------------------------------------------
        For now I just disabled Magic Quotes on the server-

        Thanks again for the info-
          • 27705
          • 38 Posts
          manager/index.php

          starts at line 88. Just take away the conditional and leave the statement.