Closed (duplicate)
Project:
Drupal core
Version:
6.5
Component:
other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2008 at 21:32 UTC
Updated:
27 May 2009 at 09:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
blakehall commentedIs caching disabled? You can turn it off at admin/settings/performance.
Looks to me like a problem with your PHP / Apache configuration rather than drupal...
Comment #2
Mike_Waters commentedIs it possible that you are sending compressed (gzip) content without the proper headers (Content-type)? I've had buggy modules mess with what's sent to the browser.
The first thing I would do (absent firebug or fiddler) is turn off caching and compression in your drupal performance settings, and comment out anything related to mod_deflate in your .htaccess file (anything between and ). If it's still a problem, it's probably not compression.
If you feel that you are proficient enough, I would download the Fiddler HTTP analyzer, enable it in your browser settings (proxy), and check out what the server is actually sending to you.
Fiddler: http://www.fiddlertool.com/fiddler/
Comment #3
kenorb commentedThanks for advice.
I haven't change .htaccess and I'd this problem only on two websites.
Maybe it's a problem with some buggy modules.
On one website I'm using following modules:
autoassignrole auto_nodetitle cck click firestats google_analytics graphstat mimemail modr8 nodefamily nodeprofile nodewords nodewords_bypath nodewords_nodetype panels pathauto send signup simplenews simplenews_digest simplenews_register simplenews_roles simplenews_scheduler spam subform_element tinymce title_rewrite token troll user_register_notify user_stats views visibility_api wordfilter xmlsitemap xstatistics
on second where was similar problem:
advanced_help auto_nodetitle calendar cck date email filefield formblock graphstat image img_assist jstools mimemail nodewords PalmHotelUk rules search404 site_map tinymce token views workflow
Modules in which I found call to header() function:
xmlsitemap troll spam graphstat views calendar img_assist
I'll try to reproduce it again.
Comment #4
kenorb commentedI've got following error:
when I'm testing using JMeter
Maybe that's the reason, Drupal trying to send compressed page even browser doesn't support it?
Comment #5
Mike_Waters commentedWell, that line on bootstrap.inc is only evaluated if page_compression (Drupal's, a-la Settings->Performance) is enabled and the browser does not support gzip encoding:
It may be that the cached data is not actually gzip encoded in the first place (even though page_compression is on), and so the call to gzinflate causes an error. Are you using any third-party caching tools (like apc or xcache)?
Are you using mod_deflate in combination with Drupal's page compression? (Acc. to the documentation, "By default, Drupal compresses the pages it caches in order to save bandwidth and improve download times. This option should be disabled when using a webserver that performs compression.")
Is there any other reason why Drupal's cache would contain plain text even though page_compression is on?
Comment #6
kenorb commentedI'm not using any cache engine.
Maybe the problem is that Drupal trying to uncompress non-compressed website, because it only rely on variable, which can be change in any moment, but after that compressed pages are still in the cache. I think each cached page should be checked separately if it's compressed or not.
Comment #7
Mike_Waters commentedThat sounds likely. Does this problem clear up if you turn off compression and clear the cache?
Comment #8
kenorb commentedProblem is clear up when I'm turning off compression or clearing the cache.
Probably I've manage to dump database when this problem appeared again, I'll try to analize it a little.
Comment #9
kenorb commentedI don't know it's normal, but in those database some of the pages are normal like that:
And some other VALUES are like:
So it's weird that some of them are already compressed, even the header says that it should be text/html.
Or another example:
Comment #10
Mike_Waters commentedWell, that is definitely gzip data (the first two bytes, per rfc1950, are 0x1f8b, which is what you've displayed).
You've got a bug somewhere.
Comment #11
kenorb commentedThe first characters I've got: "1F 8B 08", so gzip header is ok.
Comment #12
ainigma32 commented@kenorb: Did you ever figure out what was/is going on?
- Arie
Comment #13
kenorb commentedNo. I've no idea. I'd to disable all cache on those websites.
Comment #14
ainigma32 commented@kenorb: Since it looks like this problem was caused by one of the contributed modules I think this issue should either be reassigned to the queue of the offending module or this issue should be set to fixed (or maybe won't fix)
What do you think?
- Arie
Comment #15
kenorb commentedComment #16
kenorb commentedCould be related to those:
#97847: cached pages appear blank, or garbage, or gzinflate error
#43462: cache_set and cache_get base_url brokenosity
#187912: Problems with cache and zlib.output_compression
And also to this one: http://drupal.ro/drupal-caching-php-zlib-compression-problems
Or this, but related to specified module: #174036: A site is not visible in MSIE 5.5, 6.0 in Windows
Comment #17
kenorb commented#43462: cache_set and cache_get base_url brokenosity