PHP zlib compression causes "XML Parsing Error: not well formed"
mtndan - July 9, 2007 - 05:19
| Project: | Google Sitemap |
| Version: | 5.x-1.10 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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�Ȅ

#1
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-formedLocation: 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.
#2
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
#3
OK, it appears that I solved the problem by disabling zlib compression in php.ini
FYI, I'm using eaccelerator and php5
#4
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.
#5
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.
#6
#7
Fixed in CVS commit 87127.
#8
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:
#9
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.
#10
#11
#12
Automatically closed -- issue fixed for two weeks with no activity.