XML parse error: incorrectly formed location

demon326 - June 30, 2009 - 12:42
Project:XML sitemap
Version:6.x-1.1
Component:xmlsitemap.module
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

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..

#1

Dave Reid - June 30, 2009 - 20:27
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.

#2

kiamlaluno - June 30, 2009 - 22:14

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>

#3

xmacinfo - July 1, 2009 - 00:19

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.

#4

kiamlaluno - July 1, 2009 - 00:42
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.

#5

demon326 - July 1, 2009 - 10:12

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.

#6

earnie - July 1, 2009 - 11:42
Status:postponed (maintainer needs more info)» fixed

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

#7

System Message - July 15, 2009 - 11:50
Status:fixed» closed

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

#8

ansari.wajid - November 3, 2009 - 06:55
Version:6.x-1.0-beta6» 6.x-1.1
Component:Other» xmlsitemap.module
Status:closed» active

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'.

#9

kiamlaluno - November 3, 2009 - 09:48

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.

#10

kiamlaluno - November 3, 2009 - 13:25

I am removing the issue tags.

#11

earnie - November 3, 2009 - 14:04
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.

#12

Dave Reid - November 3, 2009 - 23:51

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

#13

ansari.wajid - November 11, 2009 - 05:50
Status:postponed (maintainer needs more info)» active
Issue tags:+sitemap, +sitemap.xml, +xmlsitemap

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

#14

kiamlaluno - November 11, 2009 - 12:49
Issue tags:-sitemap, -sitemap.xml, -xmlsitemap

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">

#15

Dave Reid - November 11, 2009 - 15:16

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.

#16

Dave Reid - November 11, 2009 - 15:54

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.

#17

Dave Reid - November 13, 2009 - 18:06
Status:active» postponed (maintainer needs more info)
 
 

Drupal is a registered trademark of Dries Buytaert.