WordPress.org

Ready to get started?Download WordPress

Forums

Invalid URL, Google says (13 posts)

  1. FredrikW
    Member
    Posted 8 years ago #

    I'm using the Google Sitemap Generator for WordPress 3.0b1 (and the same thing occured with 2.7.1). The creation of sitemap.xml and sitemap.xml.gz works fine -- but when Google reads them I get the error message

    "Invalid URL (Line 1618) with URL /"
    "This is not a valid URL. Please correct it and resubmit."

    I have of course taken a look at the specified line. It gets a higher number as new posts are published, but a very strange thing is that the line Google specifies not always refers to the same content!

    This is what the sitemap generated looks like. Line 1618 is the <url> in the middle (#2). Any ideas? The plug-in is great besides from this so it would be disappointing to have to stop using it.

    -
    <url>
    -
    <loc>
    http://www.wpr.se/2005/11/hjalp-sokes-anpassning-av-movable-type/
    </loc>
    <lastmod>2006-03-28T14:53:15+00:00</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
    </url>
    -
    <url>
    -
    <loc>
    http://www.wpr.se/2005/11/svenskens-anvandning-av-internet/
    </loc>
    <lastmod>2006-03-28T14:52:51+00:00</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
    </url>
    -
    <url>
    -

  2. gtrusler
    Member
    Posted 8 years ago #

    I'm getting the same type of error message from Google on 2 sites.

  3. roadchild
    Member
    Posted 8 years ago #

    I have the same issue but with nearly every link that refers to the wordpress blog on my clients site.
    Does anyone have any ideas what could be the issue? Seems google doesn't like all the directories .../4/7/06/something/or/other

  4. dutch_gecko
    Member
    Posted 8 years ago #

    AFAIK you have to include the http:// with each of your URLs. I'm not sure why the plugin isn't producing them though, since it's working fine for me.

  5. FredrikW
    Member
    Posted 8 years ago #

    Regarding dutch_gecko's comment: I'm sorry, I guess I should've used some code marking. In the sitemap there is http:// -- it must have been this wiki that generated and shortened the clickable link when I posted the code.

  6. dutch_gecko
    Member
    Posted 8 years ago #

    Yeah, just realised the forum strips out all the https and wwws.
    Hmm, one problem I had was with a difference between the xml and xml.gz versions of the sitemap. Have you tried switching between them at all? Not sure if this will help you but it's worth a try.

  7. Arnee
    Member
    Posted 8 years ago #

    Hi,

    can you give me a link to your sitemap? What plugins do you use?

    Arne

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    I guessed the link to your sitemap as being this:
    http://www.wpr.se/sitemap.xml

    And I ran it through a validator. It found one problem, around line 2024.

    <url>
    <loc>/</loc>
    <lastmod>2006-03-23T09:05:15+00:00</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
    </url>

    That Location doesn't make a lot of sense. Yes, it's the root of your site, but I think stuff in the loc needs to be fully qualified. http and all that.

    Note that while Google gave you the wrong line number, it did give you the actual problem. That "URL /" is telling you that it doesn't like the location of "/".

  9. FredrikW
    Member
    Posted 7 years ago #

    Thanks for helping me trace the problem, Otto. It seems you found the place that Google dislikes.

    Arne - the URL Otto guessed is correct. I use many plugins but considering that this seems to be a problem with the home page I'm wondering if Static Front Page could be the cause (http://www.semiologic.com/software/static-front/). It replaces the standard WP home page with a, as it says, static front page.

    I will try to delete the page with the slug "home" and see what happens.

  10. FredrikW
    Member
    Posted 7 years ago #

    Ok, that solved it. I removed the page with the slug "home" (a page the plugin requires) and deactivated the plugin. Now Google is happy!

    My need for a static front page was solved with a home.php in the theme instead.

  11. Arnee
    Member
    Posted 7 years ago #

    Hi,

    nice :)

    could you try if the current version (v.2.3 - Apr 22nd, 2006) of Static Front Page would also fix the problem?

    http://semiologic.com/software/static-front/

    Arne

  12. MaineWebworks
    Member
    Posted 7 years ago #

    I can confirm that the latest version of SEM Static Front Page also corrects the problem. Version 2.4 4/23/2006

    The downlaod link at http://www.semiologic.com/software/static-front/ still shows the anchor text for version 2.1, but the .zip contains the latest rev.

    P.S.
    Love Google Sitemaps plugin!!!

  13. MaineWebworks
    Member
    Posted 7 years ago #

    I can confirm that the latest version of SEM Static Front Page also corrects the problem. Version 2.4 4/23/2006

    The downlaod link at http://www.semiologic.com/software/static-front/ still shows the anchor text for version 2.1, but the .zip contains the latest rev.

    P.S.
    Love Google Sitemaps plugin!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags