Hello there, i just updated to the new version of the module; but since then when i go to sitemap.xml i get this error:

XML parse error: incorrectly formed
Location: http://ashladan.be/sitemap.xml
Line number 18, column 16:

</sitemapindex>

the content of that line;

</sitemapindex> NULL NULLNULL NULLNULL NULLNULL NULLNULL NULLNULL NULLNULL NULLNULL NULLNULL NULLNULL NULL<url>

removing the "NULL NULL" things won't help cause it's back..

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

I just went to http://ashladan.be/sitemap.xml and it looked just fine. There were no NULL strings or anything out of the usual.

avpaderno’s picture

The content I can see is

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex 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/siteindex.xsd">
  <sitemap>
    <loc>http://ashladan.be/sitemap0.xml</loc>
    <lastmod>2009-06-30T19:07:48+00:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>http://ashladan.be/sitemap1.xml</loc>
    <lastmod>2009-02-04T20:22:43+00:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>http://ashladan.be/sitemap2.xml</loc>
    <lastmod>2007-10-13T12:42:34+00:00</lastmod>
  </sitemap>
</sitemapindex>
xmacinfo’s picture

I've just upgraded my site to b6. It's so nice to see that the module is back up again in force.

As for demon site, I did look at your generated sitemap and it's working perfectly.

A browser may report an error, however, it does not mean that the sitemap have errors, it just mean that your browser does not know what to do with the file.

Try Firefox, it should let you see the XML tree.

So I suspect this is a browser issue.

avpaderno’s picture

Title: XML parse error: incorrectly formed Location:... » XML parse error: incorrectly formed location

The strange thing is the <url> (and all those NULLs) that appears after the </sitemapindex>, which should be the final tag.
It doesn't seem a browser issue.

demon326’s picture

strange, cause yesterday it was giving that error, and google webmastertools also reported that it could not read the sitemap... but now it is working fine again.. cause the problem looks fixed you can close this issue.

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'm glad to hear it is working without needing modification.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ansari.wajid’s picture

Version: 6.x-1.0-beta6 » 6.x-1.1
Component: Other » xmlsitemap.module
Status: Closed (fixed) » Active
Issue tags: +error, +XML parsing error, +xmlsitemap, +sitemap, +xmlerror, +system error

Hi,

I am getting below errors on different browsers when navigating to the sitemap file: http://chiprv.org/sitemap.xml. Please let me know what might be the problem. Thanks

Error details on Fire Fox:
==================

XML Parsing Error: not well-formed
Location: http://chiprv.org/sitemap.xml
Line Number 58, Column 9:
<ul ="links primary-links"><li class="menu-166 first"><a href="/about-us" title="About Us">About Us</a></li>
--------^

Error details for IE:
===============

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
System error: -2146697204. Error processing resource 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'.

avpaderno’s picture

Looking at http://chiprv.org/sitemap.xml, I don't see the output I would get from XML sitemap.
Are you sure you are not using another module that changes the output of XML sitemap? Differently, I could not explain why the XML output from XML sitemap became the XHTML output I see when I visit the link.

avpaderno’s picture

I am removing the issue tags.

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)

@ansari.wajid: You definitely have something else wrong with your site. The first thing I saw was a PNF error and then this page comes up. Also if you look at the source of your page there is an embedded php error stating "Filename cannot be empty in /var/www/html/includes/file.inc on line 817." If you have a static sitemap.xml file in your document root you need to remove it. Also a list of enabled contrib modules will be needed for further assistance.

dave reid’s picture

Also make sure that the 'xmlsitemap' directory in your site's files directory can be read and written to by your webserver.

ansari.wajid’s picture

Status: Postponed (maintainer needs more info) » Active
Issue tags: +xmlsitemap, +sitemap, +sitemap.xml

Thanks for all your help and information for not posting this issue on multiple threads. I am new to drupal and dont know all this guidelines. I will be posting my request on this thread only.
I have two domains pointing to one site, I am using xmlsitemap version 6.x-1.1 for generating sitemap.xml file. I have enabled this module through this domain: http://chiprv.org, but it is giving me error, check this http://chiprv.org/sitemap.xml, At the same time it is working fine on this domain http://chiprv.dev.triocircle.com/sitemap.xml. Please help me out to resolve this issue. Thanks

avpaderno’s picture

Issue tags: -xmlsitemap, -sitemap, -sitemap.xml

As already reported by earnie, a list of installed modules would help. It seems that you are using also Site map, but it is not possible to know what else you have installed.

I also found that a theme is including the jQuery 1.2.6 file, which should not be included as jQuery is already included by Drupal core code.

<script type="text/javascript" src="http://chiprv.org/sites/chiprv.org/themes/chip/jquery-1.2.6.min.js">
dave reid’s picture

What is probably happening is the XML is being generated for the domain http://chiprv.dev.triocircle.com. When the path http://chiprv.com loads, it can't find any generated data for the domain http://chiprv.com, so it returns a 404. I bet if you run cron, or manually generate the files using your normal domain, it will pick up the files.

dave reid’s picture

Verify this by letting us know what's in the contents of the sites/chiprv.dev.triocircle.com/files directory, since you're using that same files directory for both sites, which is a configuration that is known to not work with XML sitemap.

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)
dave reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

No follow-up in the last couple months, so marking as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.