Closed (fixed)
Project:
Google Sitemap
Version:
5.x-1.10
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2007 at 05:19 UTC
Updated:
30 Nov 2007 at 20:01 UTC
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
Comment #1
t.a. barnhart commentedsame 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:
and my source is:
too soon to tell if the feed is working or not; i need to post something.
Comment #2
mtndan commentedI'm guessing this is some kind of encoding error. We've published new content and continue to get the error. Any ideas?
Thanks,
Dan
Comment #3
mtndan commentedOK, it appears that I solved the problem by disabling zlib compression in php.ini
FYI, I'm using eaccelerator and php5
Comment #4
grahamshepherd commentedI 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.
Comment #5
darren ohThis 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.
Comment #6
darren ohComment #7
darren ohFixed in CVS commit 87127.
Comment #8
Foodster commentedI 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:
Comment #9
darren ohThe 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.
Comment #10
darren ohComment #11
darren ohComment #12
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.