Decompress output for eAccelerator
Foodster - November 7, 2007 - 15:28
| Project: | Google Sitemap |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Darren Oh |
| Status: | closed |
Description
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.
I am opening a new issue here, i don't know exactly how to identify the problem but i have attached the phpinfo()
:: Please rename the phpinfo.jpg to phpinfo.htm
| Attachment | Size |
|---|---|
| phpinfo.jpg | 42.91 KB |

#1
Your zlib compression is off, so check your Apache configuration file for mod_gzip, if you're using Apache.
#2
hi darren.
Thanks for the fast respond, where to find that the mod_gzip is not enabled? it is zlib.output_compression Off ?
It is returning deflate, from the phpinfo()
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
#3
i found this on the web, alternative way on how to enable the mod_gzip
http://www.webcodingtech.com/php/gzip-compression.php
#4
Let me explain. This error is caused by your server's gzipping a site map which is already gzipped. What you need to know is where the site map is getting gzipped. We have established that PHP is not doing it (
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflaterefers to how the server receives data, not to how it sends it). So the next thing to check for is another Apache module (not a PHP or Drupal module) that may be gzipping your output. The only one I know of is mod_gzip. Search your Apache configuration file (probably httpd.conf) and read your Apache documentation.#5
Shortcut: check the status page on your site. The server section may tell you what Apache modules are in use.
#6
Well, taking a closer look at your phpinfo file, it appears that mod_gzip is not running either. However, I see that eaccelerator is compressing your output.
#7
Attached is a patch to uncompress the site map if eAccelerator is detected. Please review.
#8
hmm, the previous message gone. but we have something new.
#9
Your site map is working correctly. You are looking at the site map index, which contains links to your site maps. The 5.x-2.x-dev version no longer produces an index for a single site map.
Since no more 1.x releases will be made, I am switching this issue to version 2.x.
#10
Fixed in CVS commit 87275.
#11
#12
Automatically closed -- issue fixed for two weeks with no activity.