Hi,

On all my sites with xml sitemap, I'm getting the following error when I try to view sitemap.xml:

XML Parsing Error: not well-formed
Location: http://www.makeyourbestmove.com/sitemap.xml
Line Number 1, Column 1:


^

When I try to "view source", I see the following:

��������P=o�0��+��
�IU� [�tj*u%�V��8'��q��l������w�v�ttƁ�5K�`ike��}���W�-���5R��"7�X0����4���k��3�qyW}�lO��u�\�H9$�����'��7�4�U���%u}T��)�?0t���������_�F����&R7��)(6B$����Xr���U������ʅ����
s��[��s�k+��,ԓ�EsX���.}��8�}�f�i�I�Ȅ

Comments

t.a. barnhart’s picture

same error. i was on D5.0 and /rss.xml was a page of text (unformatted feed) but the source was fine. it was also feeding my content just fine (a couple of posts came up in the blog aggregator that i checked at another site)

i just upgraded to 5.1, and now i get the same problem:

XML Parsing Error: not well-formed
Location: http://tincupchalice.net/sitemap.xml
Line Number 2, Column 1:

and my source is:

���������?o�0��~
�k�mRUi�![�tj*uE��� �Rȷ���:D�p���޳��k�'����T) �������%y����.���6�$�<@.	f�3�R4#s�
���;
�)[�@ ��ՉQ]�'�ʁT\��G*�/
�m5M�Z�Q�c��5|A}52�Y^�lF���"�1&���H&> ��S賋ݾw%�nX+n��9��ԕ��\ضwſ��*�8�ՋԶ%�Yp�m�'5c��m�I�y0�u��^yާ�\|.�����

too soon to tell if the feed is working or not; i need to post something.

mtndan’s picture

I'm guessing this is some kind of encoding error. We've published new content and continue to get the error. Any ideas?

Thanks,
Dan

mtndan’s picture

Title: xml parsing error: not well formed » Problem Solved
Status: Active » Closed (fixed)

OK, it appears that I solved the problem by disabling zlib compression in php.ini

FYI, I'm using eaccelerator and php5

grahamshepherd’s picture

I have experienced this problem using Drupal 5.3. I have zlib compression activated. However the problem is only evident when I try and access sitemap.xml when I am logged in. When I am logged out (the normal Google indexing mode) the page displays correctly. I put this down to the fact that the page is generated on the fly and when I am logged in, nodes hidden by the taxonomy access module (and maybe the access control module) screw up the output. When logged out, the sitemap correctly hides these nodes.

darren oh’s picture

Status: Closed (fixed) » Active

This happens when content which is already gzipped is gzipped again. If caching is enabled, we gunzip the site map for anonmymous users, since the site map will be gzipped when cached. Since pages are not cached for logged in users, we leave the site map gzipped. A method of preventing double gzipping would be welcome.

darren oh’s picture

Title: Problem Solved » xml parsing error: not well formed
darren oh’s picture

Status: Active » Fixed

Fixed in CVS commit 87127.

Foodster’s picture

Status: Fixed » Active

I have tested the module, : gsitemap.module,v 1.56.2.86 2007 and it appear that the problem still persist or it could that something that i have to do?

. so now i am reopening the issue

-i have tried the stable release gsitemap-5.x-1.11 and gsitemap-5.x-1.x-dev

XML Parsing Error: not well-formed
Location: http://www.mydomain.com/sitemap.xml
Line Number 1, Column 1:

darren oh’s picture

Status: Active » Fixed

The fix was for cases where output is being compressed by PHP. It does not address cases where PHP output is being compressed by Apache mod_gzip or other accelerator software. If zlib_get_coding_type() does not return "gzip" or "deflate", please identify your problem and open a new issue.

darren oh’s picture

Title: xml parsing error: not well formed » PHP zlib compression causes "XML Parsing Error: not well formed"
darren oh’s picture

Version: 5.x-1.x-dev » 5.x-1.10
Anonymous’s picture

Status: Fixed » Closed (fixed)

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