Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Evan 344 posts 99 karma points
    Apr 22, 2009 @ 22:11
    Evan
    0

    Google sitemap with cws2 error

    Got this in my google webmasters section, warning.


    Details 1 Incorrect namespace
    Your Sitemap or Sitemap index file doesn't properly declare the namespace

    and when I navigate to the sitemap it is missing something like this:

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Apr 29, 2009 @ 09:20
    Warren Buckley
    0

    Hiya EWatkins if the

  • Evan 344 posts 99 karma points
    May 05, 2009 @ 17:12
    Evan
    0

    Google does not suggest anything which is where I am pulling out my hair. I tried this and it failed as well:
    <>
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
    http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

  • dandrayne 1138 posts 2262 karma points
    May 05, 2009 @ 17:20
    dandrayne
    0

    Is this a dupe of http://forum.umbraco.org/yafpostst9512Google-is-gving-me-errors-on-my-google-sitemap.aspx?

    I'm still seeing a

    [code]

    [/code]

    Char in your xslt at http://www.blueridgepowdercoating.com/google-sitemap.aspx. This is probably causing issues.

    Try opening the xslt in notepad, deleted all whitespace between the urlset nodes and just use a straight carriage return.

  • Evan 344 posts 99 karma points
    May 05, 2009 @ 17:51
    Evan
    0

    [quote=ddrayne]Is this a dupe of http://forum.umbraco.org/yafpostst9512Google-is-gving-me-errors-on-my-google-sitemap.aspx?

    I'm still seeing a

    [code]

    [/code]

    Char in your xslt at http://www.blueridgepowdercoating.com/google-sitemap.aspx. This is probably causing issues.

    Try opening the xslt in notepad, deleted all whitespace between the urlset nodes and just use a straight carriage return.[/quote]

    Where do you see that? Could it be this?

    ]>


  • dandrayne 1138 posts 2262 karma points
    May 05, 2009 @ 17:57
    dandrayne
    0

    When I view the source of the page at http://www.blueridgepowdercoating.com/google-sitemap.aspx

    [code]

  • Evan 344 posts 99 karma points
    May 05, 2009 @ 18:05
    Evan
    0

    [quote=ddrayne]When I view the source of the page at http://www.blueridgepowdercoating.com/google-sitemap.aspx

    [code]

  • Evan 344 posts 99 karma points
    May 05, 2009 @ 20:30
    Evan
    0

    [quote=ddrayne]When I view the source of the page at http://www.blueridgepowdercoating.com/google-sitemap.aspx

    [code]

  • dandrayne 1138 posts 2262 karma points
    May 05, 2009 @ 22:31
    dandrayne
    0

    Stick that as the first line of your template file containing the macro instead of the macro and you should be ok. You're right, I think it should also be included and it is present on my working sitemap

  • Evan 344 posts 99 karma points
    May 06, 2009 @ 15:21
    Evan
    0

    [quote=ddrayne]Stick that as the first line of your template file containing the macro instead of the macro and you should be ok. You're right, I think it should also be included and it is present on my working sitemap[/quote]

    If I try to do that it throws an error, this is what I tried:

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>



    wont let it work, says only controls can be on the level or something like that...

  • dandrayne 1138 posts 2262 karma points
    May 06, 2009 @ 17:36
    dandrayne
    0

    I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">




    We'll get there!
    [/code]

  • Evan 344 posts 99 karma points
    May 06, 2009 @ 18:56
    Evan
    0

    [quote=ddrayne]I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">




    We'll get there!
    [/code][/quote]

    Nice! I have tried it and resubmitted to google, so lets wait and see. I hate it how when you create a matching template it automatically calls a master template in v4. Oh well, minor setback!

  • Evan 344 posts 99 karma points
    May 06, 2009 @ 21:17
    Evan
    0

    [quote=Ewatkins][quote=ddrayne]I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">




    We'll get there!
    [/code][/quote]

    Nice! I have tried it and resubmitted to google, so lets wait and see. I hate it how when you create a matching template it automatically calls a master template in v4. Oh well, minor setback![/quote]

    Still no luck, google crawled it and reported the same warning...here is the template code:
    [code]


    [/code]

  • dandrayne 1138 posts 2262 karma points
    May 07, 2009 @ 10:37
    dandrayne
    0

    You could try popping the namespace into the template instead of the xslt, but to be honest I'm not sure what difference it will make...

    Strange, this says its ok http://www.validome.org/google/validate?url=http://www.blueridgepowdercoating.com/google-si
    temap.aspx&lang=en&googleTyp=SITEMAP

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 07, 2009 @ 12:26
    Warren Buckley
    0

    OK guys i just used that validator on my test site of CWS2 and it is working OK.

    Validation results
    [url]http://www.validome.org/google/validate?url=http://cws2.xeed.co.uk/CWSXML-Sitemap.aspx&lan
    g=en&googleTyp=SITEMAP[/url]

    XML Sitemap
    [url]http://cws2.xeed.co.uk/CWS
    XML-Sitemap.aspx[/url]

    In your template ensure its set out like this all on one line any line breaks or whitespace can cause it to freak I found.

    [code]
    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    [/code]

    Hope this helps guys
    Warren

  • Evan 344 posts 99 karma points
    May 07, 2009 @ 15:32
    Evan
    0

    [quote=warren]OK guys i just used that validator on my test site of CWS2 and it is working OK.

    Validation results
    [url]http://www.validome.org/google/validate?url=http://cws2.xeed.co.uk/CWSXML-Sitemap.aspx&lan
    g=en&googleTyp=SITEMAP[/url]

    XML Sitemap
    [url]http://cws2.xeed.co.uk/CWS
    XML-Sitemap.aspx[/url]

    In your template ensure its set out like this all on one line any line breaks or whitespace can cause it to freak I found.

    [code]
    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    [/code]

    Hope this helps guys
    Warren[/quote]
    I just ran my sitemap on the validator and it validates as well but google does not see it that way, it says there is a namespace error...

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 07, 2009 @ 16:18
    Warren Buckley
    0

    OK i will try to find some time to look into this please post a discussion or bug on the CWS codeplex site so I dont forget.

    Warren :)

  • Erik Ernst 70 posts 90 karma points
    May 25, 2009 @ 21:17
    Erik Ernst
    0

    Any solution to this one yet?

    Get the same error: "Incorrect namespace"

    Looking at my http://dynamicsexperts.net/CWS_XML-Sitemap.aspx, then of course I'm getting an error. My header is like this:
    [code]
    -

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 25, 2009 @ 21:32
    Warren Buckley
    0

    OK guys I will look into this tomorrow as obviously is a problem with Google. Apologies about this and will and try and resolve this.

    Warren :)

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 26, 2009 @ 12:13
    Ismail Mayat
    0

    Guys,

    I had similar issue on Friday, I did not have

    [code]

    [/code]

    im my header becuase I kept getting an error, Warren suggested that in the template i have everything on one line, so I updated my template and it all works fine. My template looks like

    [code]
    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <script runat="server">void Page_Load(object sender, EventArgs e) {Response.ContentType = "text/xml";}</script>

    [/code]

    The macro is called google-site-map but the code is almost exactly the same as the cws macro.

    Regards

    Ismail

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 26, 2009 @ 12:15
    Warren Buckley
    0

    I am looking into this now guys who are using my CWS2 version of this and I think I have it solved I have just submitted to google and I am just waiting to see if it comes back OK.

    If it does I will let you know the fix and I will make it as default for the next minor release of CWS in the future.
    Warren :)

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 27, 2009 @ 10:03
    Warren Buckley
    0

    Hmmm I am not too happy as I have done what Google have asked and it still is throwing this warning about the namespace.

    [quote]Incorrect namespace
    Your Sitemap or Sitemap index file doesn't properly declare the namespace.
    [/quote]

    The sitemap I am submitting to Google is [url]http://cws2.xeed.co.uk/CWS_XML-Sitemap.aspx[/url] and if you view the source it contains the namespace at the top as google wants.

    [code]

  • dandrayne 1138 posts 2262 karma points
    May 27, 2009 @ 11:05
    dandrayne
    0

    That's weird - I was sure that my 'accepted' sitemap was based on the original one from CWS1. Here's what I've got at the top of the doc, however. It does seem to have more "namespace" stuff in it

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    [/code]

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 29, 2009 @ 14:04
    Warren Buckley
    0

    Hmmm interesting to see that your

  • David Conlisk 432 posts 1008 karma points
    May 29, 2009 @ 14:21
    David Conlisk
    0

    Here's what I've got at the top of mine:

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

    [/code]

    Seems identical to @ddrayne's and works just dandy!

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 29, 2009 @ 14:22
    Warren Buckley
    0

    Hmm your also using the 0.84 schema as opposed to the 0.9 mentioned in this document - [url]https://www.google.com/webmasters/tools/docs/en/protocol.html[/url]

  • dandrayne 1138 posts 2262 karma points
    May 29, 2009 @ 15:07
    dandrayne
    0

    Scroll down on that page (https://www.google.com/webmasters/tools/docs/en/protocol.html) to "validating your sitemap". Here's the full 0.9 code

    [code]


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
    http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

    [/code]


    perhaps that's what is missing

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 29, 2009 @ 15:15
    Warren Buckley
    0

    Ah man I am such a fool thanks @ddryane its 99% sure this is going to fix it - thanks mate.

    Warren :)

  • skaue 43 posts 44 karma points
    Jun 02, 2009 @ 13:50
    skaue
    0

    Did you find a working solution for this? I am adding my sites sitemap to google as well, and I have the same error. Could you please post a working sitemap xslt here?

    :-({|= - Alexander Rybak :d/

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jun 02, 2009 @ 13:56
    Warren Buckley
    0

    Hiya Alexander,
    Thanks for reminding me, I forgot all about this to be honest.

    My XML sitemap template is as follows:

    [code]
    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>


    [/code]

    It's important that the opening

Please Sign in or register to post replies

Write your reply to:

Draft