By pcambra on
Hi
I am having problems with the combination mod_gzip + normal caching + IE7, while all it is working smoothly in Firefox & IE6, IE7 returns a "Internet Explorer cannot display the webpage" error.
We have this mod_gzip clause in .htaccess:
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
mod_gzip_update_static No
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.js$
mod_gzip_item_include file \.css$
mod_gzip_item_include file \.pl$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/css$
mod_gzip_item_include mime ^text/javascript$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_exclude mime ^image/
mod_gzip_dechunk Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary On
</IfModule>But there are moments that disabling the mod_gzip the error persists.
This error never happens when Drupal caching is disabled
Any ideas of what can be happening?
Thanks!
Comments
Same problem here:
Same problem here: everything works fine without cache, but once caching is enabled, IE7 throws the above error. I'm not running mod_gzip though.
Could it JS/jQuery related? I'm running Lightbox2 (with lightbox.js being loaded in the $footer region), swfobject and views_slideshow. I tried disabling all of them one by one, but the problem persists.
Are you using some jQuery-module?
--
Don't hate the media, be the media -- www.indymedia.be
Solved by disabling devel.module
I still had devel running. Disabling it solved this problem.
I was having the same
I was having the same problem. IE7 was randomly giving errors and sometimes only displaying a portion of the page.
I have disabled cache and this seems to have fixed the problem. Not ideal but it will have to stay off until we discover what's causing this. Has anyone posted an issue to the Drupal project about this yet?
Me too
I have the same issue. I use nginx though, not sure if I have gzip enabled, but caching is definitely the culprit as disabling caching completely fixes it.
same problem. Subscribing
same problem. Subscribing ...
I have the same
I'm using faceted search and have the same problem. This error never happens when Drupal caching is disabled.
Same Problem
IE7 - Randomly says, "Internet Explorer cannot display the search page."
Site is running D5.5
When I turn off caching the problem goes away immediately.
Any suggestions?
Site = www.hugamonkey.com
I
am also having issues with IE. When caching is turned on in Drupal I get this effect in IE:-
I logout of my drupal account. I go to the home page of my Drupal site and see that the menus that are only visible when logged in are on the screen. Clicking on the menus gives me the error message that I don't have permission to view that page. This suggests that I am logged out, but IE hasn't delivered the correct page.
Sorry, don't remember which version of IE.
IE7 and javascript...
For those who end up stumbling across this thread (like I did) through a Google search, the main source of this bug seems to do with javascript (usually) trying to modify the DOM (Document Object Model) before the HTML has finished rendering.
Common sources of this problem include trying to execute a document.write before the html body exists or is closed, and other such things.
Common solutions are to make sure you're firing your javascript code when the document is actually ready (using onload or jquery's $(document).ready event) or dumping all of your javascript tags and functions at the bottom of page instead of in the head.
However....
I'm using Drupal 6.13 and ran into this problem when I turned cacheing on for my system, like everybody else. I removed *all* the javascript from my pages (using a preprocess function and unsetting the $variables['scripts'] pieces) and *still* ran into the problem, even with no javascript on the page.
As some have mentioned, turning off cacheing made the problem go away, for *some* reason. I also found that if I left caching on but turned off page compression, it would also work ok. It seemed to be the combination of page compression + cacheing that was causing the problem, even without any javascript on the page.
I don't know how Drupal performs its cacheing or compression abilities, and why they're incompatible with IE7, but hopefully someone smarter that me will have this problem, find this thread and be able to figure it out the answer. :P