We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10529
    • 73 Posts
    Help - I was really getting my site sorted having spent a good few weeks on it and now all of a sudden I have all these \\\ /// everywhere in the content, chunks, snippets and templates making the whole site impossible to work with to say I’m totally depressed is an understatement!

    Here below is an example of a template
    <!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\">
    <html>
    	<head>
    		<title>The Mountain Blog - Serre Chevalier March - April 2010</title>
    <meta content=\\\"The Mountain Blog - Serre Chevalier March - April 2010\\\" name=\\\"description\\\"/>
    <meta content=\\\"\\\" name=\\\"keywords\\\"/>
    <meta content=\\\"Another Hard Day At The Office\\\" name=\\\"Author\\\"/>
    <meta content=\\\"Another Hard Day At The Office\\\" name=\\\"Copyright\\\"/>
    <meta content=\\\"En\\\" http-equiv=\\\"Language\\\"/>
    <meta content=\\\"index,follow\\\" name=\\\"Robots\\\"/>
            <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=iso-8859-1\\\" />
          
    
    	 <link rel=\\\"stylesheet\\\" href=\\\"assets/templates/ski/styletext.css\\\" type=\\\"text/css\\\" />
      <link rel=\\\"stylesheet\\\" href=\\\"assets/templates/ski/stylelayout.css\\\" type=\\\"text/css\\\" />
      <link rel=\\\"stylesheet\\\" href=\\\"assets/templates/ski/stylecolor.css\\\" type=\\\"text/css\\\" />	
    
                   
    	<link rel=\\\"stylesheet\\\" media=\\\"all\\\" type=\\\"text/css\\\" href=\\\"assets/templates/wayfinder/dropdown.css\\\" />
    <!--[if IE]>
    	<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"all-ie-only.css\\\" />
    <![endif]-->
    
    
    </head>
    	<body>
    
    	 <div id=\\\"pageframe\\\">
    <div id=\\\"bodywrap-top\\\"><div id=\\\"bodywrap-btm\\\"><div id=\\\"bodywrap-r\\\"><div id=\\\"bodywrap-l\\\"><div id=\\\"bodywrap-tl\\\"><div id=\\\"bodywrap-tr\\\"><div id=\\\"bodywrap-br\\\"><div id=\\\"bodywrap-bl\\\"><div id=\\\"bodywrap-in\\\">
        <div id=\\\"titlearea\\\">
    </div><!-- titlearea close -->	
    
    	 <div id=\\\"custom2\\\">	
    <div class=\\\"menu\\\">
    [[Wayfinder? &startId=`0` &level=`3` &parentClass=`hide` &parentRowTpl=`cssplay_parentRow` &outerTpl=`cssplay_outer` &innerTpl=`cssplay_inner` &rowTpl=`cssplay_row` &outerClass=`menu` &cssTpl=`cssplay_dropdown`]] 
    </div>
    </div>			
    				
    
    
    
    
     <!--XXXXXXXXXXXXXXXXThe side bar region starts hereXXXXXXXXXXXXXXXXXXX-->
    
        <div id=\\\"leftarea\\\">
    
    	
                  <div class=\\\"wrap-top\\\"><div class=\\\"wrap-btm\\\"><div class=\\\"wrap-l\\\"><div class=\\\"wrap-r\\\"><div class=\\\"wrap-tl\\\"><div class=\\\"wrap-tr\\\"><div class=\\\"wrap-br\\\"><div class=\\\"wrap-bl\\\"><div class=\\\"wrap-in\\\">
    <h5>Latest Blog Entries</h5> 
     [!Ditto? &parents=`5` &orderBy=`createdon ASC` &display=`5` &total=`5` !]   
          	  <p> </p>
    <a href=\\\"http://la-grave.com/\\\" target=\\\"_blank\\\"><div align=\\\"center\\\"><img src=\\\"images/lagrave.jpg\\\" width=\\\"115\\\" height=\\\"106\\\" alt=\\\"La Grave\\\" /></div></a>
    <p> </p>
    <p> </p>
    <a href=\\\"http://www.serre-chevalier.com/Webcam-Serre-Chevalier-summit\\\" target=\\\"_blank\\\"><div align=\\\"center\\\"><img src=\\\"images/serre.jpg\\\" width=\\\"120\\\" height=\\\"61\\\" alt=\\\"Heading 1\\\" /></div> </a>
    
    	  </div></div></div></div></div></div></div></div></div><!-- sidemenuwrap close -->
         	  <p> </p>
    <script src=\\\"http://widgets.twimg.com/j/2/widget.js\\\"></script>
    <script>
    new TWTR.Widget({
      version: 2,
      type: \\\'profile\\\',
      rpp: 4,
      interval: 6000,
      width: \\\'auto\\\',
      height: 300,
      theme: {
        shell: {
          background: \\\'#f7f2f7\\\',
          color: \\\'#9c9a9c\\\'
        },
        tweets: {
          background: \\\'#ffffff\\\',
          color: \\\'#524f52\\\',
          links: \\\'#0713eb\\\'
        }
      },
      features: {
        scrollbar: false,
        loop: false,
        live: false,
        hashtags: true,
        timestamp: true,
        avatars: false,
        behavior: \\\'all\\\'
      }
    }).render().setUser(\\\'Weathercam\\\').start();
    </script>
     	<p> </p>
     	<p class=\\\"center\\\">Last Updated on<br /> 2010-01-14</p>
          <p> </p>
    
    
    
    
        </div><!-- sidearea close -->
    
        <!--XXXXXXXXXXXXXXXXThe main center region starts hereXXXXXXXXXXXXXXXXXXX-->
    
    
    
        <div id=\\\"centerarea\\\">
    
    <p>[[Breadcrumbs]]</p>	 
    	
    <div class=\\\"grid0\\\">
            <div class=\\\"headingarea\\\">
              <h3 id=\\\"box1\\\">[*longtitle*]</h3>
            </div>
    
            <div class=\\\"articlearea\\\">[*#content*]</div>
    
    
            
              <div class=\\\"spacer\\\"></div>
            </div></div>
    	
    
    
              <div class=\\\"spacer\\\"></div>
            </div></div>
    	
           <p class=\\\"center\\\"> </p>
    <br />
      </div><!-- centerarea close -->
    
       <div id=\\\"bottombar\\\">
    	
           <h5>The Mountain Blog - Serre Chevalier March - April 2010 </h5>
           <h6>© Copyright Another Hard Day At The Office , all rights
          reserved.</h6>
        </div><!-- bottombar close -->
    
    <div class=\\\"spacer\\\"></div>
      </div></div></div></div></div></div></div></div></div><!-- bodywrap close -->
      </div><!-- frame close -->
    
    </body>
    </html>
    
    
    </body>
    </html>
    


    And this a ditto chunk
    <div class=\\\"featurebox\\\"><h3>[+description+]</h3><p>[+date+]</p>
    <p>[+introtext+]<a href=\\\"[~[+id+]~]\\\">More</a></p></div>


    Will I have to do a reinstall and or was there something obvious I missed on install such as a seurity patch etc etc
      • 26931
      • 2,314 Posts
        • 10529
        • 73 Posts
        Ok thanks for making me feel better - earlier I was getting an error message when trying to access the site(s)
        502 Bad Gateway
        nginx-catap/0.8.7.528.179136c

        so maybe at the hosting company they are doing maintenance - I’ve emailed them about disabling magic quotes so hopefully they (kNethosting) are now on the case as they (normally) are vert good.
          • 27330
          • 884 Posts
          isn’t magic_quotes add a single slash? he have 3 of them before the character.
            • 9207 ☆ A M B ☆
            • 2,475 Posts
            True, but when you have magic quotes on, the character gets quoted each time the value passed through the POST or GET array, resulting in multiple slashes. I’m not 100% sure if that’s what’s going on in this case, but I wouldn’t be surprised.
              • 10529
              • 73 Posts
              Ok all back to normal - the great guys at KNet hosting fixed it all late last night - had to edit out the /// from a few files but now all up and working and I think the site is begining to look really good! http://www.anotherharddayattheoffice.co.uk/
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: Everett at Jan 25, 2010, 08:28 PM

                True, but when you have magic quotes on, the character gets quoted each time the value passed through the POST or GET array, resulting in multiple slashes. I’m not 100% sure if that’s what’s going on in this case, but I wouldn’t be surprised.
                This only happens in Evo with PHP 5.3.0 or greater when magic_quotes_gpc is On. You must disable magic_quotes_gpc in Evo when running on 5.3.x.