Coder Social home page Coder Social logo

Comments (9)

yogoo avatar yogoo commented on July 28, 2024

Thanks for providing the error. However I'll need more info to figure out what's happening. Can you post the url to your sitemap and/or its full xml code.

from sitemapfriend.

iparr avatar iparr commented on July 28, 2024

This was highlighted to me by Google Webmaster tools as well.

After attempting to validate it, using this tool ( http://www.validome.org/xml/validate/ ), it seems that the default sitemap_xml_outer.chunk.tpl is producing invalid XML.

This is because sitemapFriend is starting the xml document with a break. This is invalid.

I've removed this manually, but it's still not invalid XML due to:

Can not find declaration of element 'urlset'.
    Error Position: 
xmlns:dc="http://purl.org/dc/elements/1.1/">

I have no idea about this one! If it helps, my problematic sitemap is here: http://tedxsheffield.com/sitemap.xml

from sitemapfriend.

yogoo avatar yogoo commented on July 28, 2024

@iparr, I as said before, kindly post the url to the sitemap or its full code. I can't investigate the issue without it.

from sitemapfriend.

iparr avatar iparr commented on July 28, 2024

@yogoo , the sitemap is message posted previously: http://tedxsheffield.com/sitemap.xml The call is exactly the same as @ArtImpulsion s and is using all the default tpls, etc. Can I help you with any further details?

from sitemapfriend.

yogoo avatar yogoo commented on July 28, 2024

Whoops, missed the url... Thanks for re-posting it.

Here's what I found so far:

  • the tool you use marks the example sitemap provided by Google as invalid. However both Google example and sitemapFriend's sitemaps validate under W3C's validator.
  • there's no new line character at the beginning of the output. The one you see is most likely added when copying the content of the page. See the page source or the response from the server.
  • can you post the exact error returned by Google Webmaster tools?

@ArtImpulsion : you're right, the xml output is not configurable.

from sitemapfriend.

AmaZili avatar AmaZili commented on July 28, 2024

Hi,

on my side google webmaster tools refused to validate the xml sitemap generated due to the presence of the dublin core stuff.
I managed to change direclty in the core directory (core / components / sitemapfriend / elements / chunks / sitemap_xml_item.chunk.tpl & sitemap_xml_outer.chunk.tpl) the xml templates (ooooh ! bad boy) and remove DC references from there, and it validates fine.

Next release could have the xml templates as parameters to avoid any troubles.

Thanks anyway....

from sitemapfriend.

iparr avatar iparr commented on July 28, 2024

there's no new line character at the beginning of the output. The one you see is most likely added when copying the content of the page. See the page source or the response from the server.

Yup. doh.

can you post the exact error returned by Google Webmaster tools?

Under 'Error details' in 'Sitemaps':
Invalid XML tag - This tag was not recognized. Please fix it and resubmit.

Sorry, not very good details but that's the best I can do. Thank you for editing the default tpl.

from sitemapfriend.

yogoo avatar yogoo commented on July 28, 2024

@iparr: v1.0.2 should fix your issue.

from sitemapfriend.

AmaZili avatar AmaZili commented on July 28, 2024

Merci Jérome.

from sitemapfriend.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.