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

    what am I doing wrong?

    I get this when I use the sitemap snippet --> http://steunpunt.nexethosting.com/sitemap

    it means that there is an error with chunk (garbage) on rule 148 at this url --> http://steunpunt.nexethosting.com/index.php?id=11&manprev=z

    how do I solve this?

    Ivar
      • 21496
      • 225 Posts
      Look at the document with ID 11 - there’s something wrong with that. What’s the content of it?
        René
        • 13246
        • 42 Posts
        the doc with id 11 is the sitemap self. tongue
          • 21496
          • 225 Posts
          Calling http://steunpunt.nexethosting.com/sitemap.xml throws a 404

          Looks like you didn’t use a blank template and maybe you did not follow these instructions:


          We will concentrate on Sitemap Protocol:

          1. Create a document in the root level of your document tree (it does not to sit in the root level but it has to be available from the root level of the site). Use blank document template (an empty one) and do not use Rich Text Editor.
          1. Set the content type to text/xml.
          2. Set alias to sitemap.xml.
          2. In the document content textarea place a snippet call:

          [!SiteMap? &format=`sp`!]

          3. Save and publish the document.

          That’s all! You just published your Google sitemap. Your document should be accessible from the URL http://www.yourdomain.com/sitemap.xml.

          Now, take a look at it. It is a pure XML so it may be not easily readable. Try examining the source of the page, it should help. You should notice that it lists all documents from your site, including special pages like 404 error page, login pages, search results and so on.

          You definitely don’t want to bother Google crawler with them. You would rather want them to remain hidden. To achieve it you have to take a look at SiteMap parameters.

          From: http://wiki.modxcms.com/index.php/SiteMap:_Google_sitemaps_in_MODx
            René
            • 13246
            • 42 Posts
            my sitemap is at http://steunpunt.nexethosting.com/sitemap so without the .xml but that doesn’t seems to be a problem to me.
              • 36592
              • 970 Posts
              Hi!

              Quote from: Ivar at Nov 26, 2007, 02:07 PM

              it means that there is an error with chunk (garbage) on rule 148 at this url --> http://steunpunt.nexethosting.com/index.php?id=11&manprev=z

              You can find this code at the bottom of the source.
              And this code can be found in all page HTML source at http://steunpunt.nexethosting.com/.

              <div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
              <!-- www.nexethosting.com -->
              </div></div>
              


              I suspect your hosting server is inserting this code automatically ?
                • 13246
                • 42 Posts
                I suspect your hosting server is inserting this code automatically ?

                I suspect that too! but is this the problem?
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Nexethosting provides free hosting. In exchange for providing free hosting, they insert ads into your pages and that looks like an example. As you can tell, that can cause all kinds of problems, and there’s no telling how to or if MODx will work in that type of configuration ... one that’s likely to change (or not change if needed!) in the future.
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 13246
                    • 42 Posts
                    so my sitemap isn’t going to work?