We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43692
    • 15 Posts
    Hello, guys
    Today i tried to create the sitemap.xml file via GoogleSiteMap snippet.
    Snippet works good, generates the xml information, but whole xml document doesnt work, coz all code start from second line and show error.
    I checked all documents and find that all them starts useful code from second line, but first is empty.

    How i could solve the problem of empty first line and up code?

    Thanks for future
      • 43692
      • 15 Posts
      Quote from: salacoste at Sep 20, 2013, 12:04 PM
      Hello, guys
      Today i tried to create the sitemap.xml file via GoogleSiteMap snippet.
      Snippet works good, generates the xml information, but whole xml document doesnt work, coz all code start from second line and show error.
      I checked all documents and find that all them starts useful code from second line, but first is empty.

      How i could solve the problem of empty first line and up code?

      Thanks for future

      I dont have installed Tiny MCE, the mark in rich text indication turn off.

      The document sitemap type is XML, all doc code below:

      [[!GoogleSiteMap]]
      


      Tiny MCE has been installed and was deleted after.


      Installed now snippets:
      Ace
      Archivist
      FormIt	
      Breadcrumbs
      getPage
      GoogleSiteMap
      getResources
      SimpleSearch
      Notify404
      tagLister
      
      • If you manually edited your config file, make sure it does not have any extra spaces or BOM characters before the opening or after the closing php tag.
          • 43692
          • 15 Posts
          Quote from: opengeek at Sep 20, 2013, 02:29 PM
          If you manually edited your config file, make sure it does not have any extra spaces or BOM characters before the opening or after the closing php tag.
          Do you mean file */core/config/config.inc.php ?

          Top and end file:

          <?php
          /**
           *  MODX Configuration file
           */
          ....
          if (!defined('MODX_CACHE_DISABLED')) {
              $modx_cache_disabled= false;
              define('MODX_CACHE_DISABLED', $modx_cache_disabled);
          }
          
            • 3749
            • 24,544 Posts
            Do you have any output modifiers in the template (especially on the *content tag) or any JavaScript that manipulates the content?

            Check the validity of the HTML on your pages here: http://validator.w3.org/
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting