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

AttachmentSize
phpinfo.jpg42.91 KB

#1

Darren Oh - November 7, 2007 - 16:02
Status:active» active (needs more info)

Your zlib compression is off, so check your Apache configuration file for mod_gzip, if you're using Apache.

#2

Foodster - November 7, 2007 - 16:45

hi darren.

Thanks for the fast respond, where to find that the mod_gzip is not enabled? it is zlib.output_compression Off ?

If zlib_get_coding_type() does not return "gzip" or "deflate", please identify your problem and open a new issue.

It is returning deflate, from the phpinfo()

_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate

#3

Foodster - November 7, 2007 - 16:49

i found this on the web, alternative way on how to enable the mod_gzip

http://www.webcodingtech.com/php/gzip-compression.php

#4

Darren Oh - November 7, 2007 - 17:36

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,deflate refers 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

Darren Oh - November 7, 2007 - 17:54

Shortcut: check the status page on your site. The server section may tell you what Apache modules are in use.

#6

Darren Oh - November 7, 2007 - 18:11

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

Darren Oh - November 7, 2007 - 18:37
Version:5.x-1.9» 5.x-1.x-dev
Status:active (needs more info)» patch (code needs review)

Attached is a patch to uncompress the site map if eAccelerator is detected. Please review.

AttachmentSize
gsitemap.module-190152.patch936 bytes

#8

Foodster - November 7, 2007 - 23:05

hmm, the previous message gone. but we have something new.

AttachmentSize
gsitemap.JPG31.16 KB

#9

Darren Oh - November 8, 2007 - 01:57
Title:XML Parsing Error: not well-formed Line Number 1, Column 1:» Decompress output for eAccelerator
Version:5.x-1.x-dev» 5.x-2.x-dev
Assigned to:Anonymous» Darren Oh
Status:patch (code needs review)» patch (reviewed & tested by the community)

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

Darren Oh - November 8, 2007 - 01:59
Status:patch (reviewed & tested by the community)» fixed

Fixed in CVS commit 87275.

#11

Darren Oh - November 8, 2007 - 01:59
Category:support request» bug report

#12

Anonymous - November 22, 2007 - 02:11
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.