• I have found a serious bug in All in One SEO Pack XML Sitemap.

    I have installed it, and activated XML Sitemap. Later that day, all my site posts are marked as they have Errors in Google Webmaster Tools.

    This was the Google Webmaster Tools Error in Sitemap:

    Errors  Invalid tag value This XML tag has an invalid value. Please fix it and resubmit.
    
    Parent tag: url
    Tag: priority
    Value: 0,9

    I have inspected the source of the Sitemap and found the cause of an error. For priority values lower than 1.0 plugin use comma instead of a dot to separate first and second number. It happens only for post priority values.

    This is how it looks:

    <url>
    	<lastmod>2014-05-15T17:34:02Z</lastmod>
    	<changefreq>daily</changefreq>
    	<priority>0,8</priority>
    	<loc>https://www.example.com/post-url</loc>
    </url>

    And it should be like this:

    <url>
    	<lastmod>2014-05-15T17:34:02Z</lastmod>
    	<changefreq>daily</changefreq>
    	<priority>0.8</priority>
    	<loc>https://www.example.com/post-url</loc>
    </url>

    To be clear:

    <priority>0,8</priority>

    Should be:

    <priority>0.8</priority>

    Can you please fix this issue and release urgent plugin update.

    https://www.ads-software.com/plugins/all-in-one-seo-pack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Steve M

    (@wpsmort)

    Hi Milos,

    Can you provide the URL for your site please. I can confirm that All in One SEO Pack does correctly generate the XML sitemap with the priority displayed with a period, i.e. 0.8

    Thread Starter Milos Spasic

    (@spale)

    Hello,

    I have found what was causing the problem. It was PHP locale settings of my web server. When I have set PHP locale to en_US, issue disappeared.

    This solved the issue for me:

    setlocale( LC_ALL, 'en_US' );

    I hope this will help somebody.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid tag value’ is closed to new replies.