We seem to be having a weird problem, perhaps a caching (gzip compression) error. Our users reported this yesterday http://i56.tinypic.com/2udxch1.jpg where they can't access the site and instead encountered that pop-up for them to download the tiny .gz file.

As I could access the site, I cleared the site's and Boost's cache and asked them clear their browser's cache as well, and then all is fine.

And then now some of them are having the same problem as before and I had to clear the caches again.

I looked at my Apache error log and I have A LOT of these fatal errors:

[Mon Dec 27 19:36:34 2010] [error] [client 96.224.99.133] PHP Fatal error: Call to undefined function drupal_get_headers() in /var/www/html/sitename/sites/all/modules/boost/boost.module on line 2402, referer: http://global.hidden-street.net/search_finder/festival%20of%20lights

I'd really appreciate the help - thanks in advance!

Comments

Quarantine’s picture

Also I have to add a few things:

This problem only surfaced yesterday after we've been using Boost for a while - that means our dev version of Boost is not recent but a download from a few months ago.

We recently experienced an unusually high load and switched to Litespeed webserver temporarily and had to disable Boost's gzip compression to get it to work with Litespeed, and then we switched back to Apache, we re-enabled Boost's gzip compression.

Also as we have been undergoing some DDOS/SYN flood attack recently, we have also used some anti-ddos mechanisms (csf firewall, etc) with limited success.

To cope with the high load, we've also acquired a new server and host MySQL exclusively on it and removed MySQL on the old server, which is now an exclusive webserver.

rares’s picture

Status: Active » Needs work

I started having this issue after re-generating .htaccess rules.
I went back to the previous htaccess rules and found that the section below, which was no longer included, was still necessary for the gzip compressed cache files to be served correctly.

Please confirm that adding this to .htaccess below #BOOST START helps.

  <IfModule mod_mime.c>
    AddCharset utf-8 .html
    AddCharset utf-8 .json
    AddEncoding gzip .gz
  </IfModule>
  <FilesMatch "(\.html|\.html\.gz)$">
    ForceType text/html
  </FilesMatch>
  <FilesMatch "(\.json|\.json\.gz)$">
    ForceType text/javascript
  </FilesMatch>
quinns’s picture

We have been getting the same error, intermittently and without any discernable pattern. The suggestion in #2 seems to have resolved it.

geerlingguy’s picture

Issue summary: View changes

Same issue, code in #2 fixed it; it was only happening on one of three multisite installations (all three use boost).

Anonymous’s picture

mod_mime and mod_headers need to be installed on apache servers to send .gz files, gzip compression was removed from 7.1.x because it was found to cause white screens on Chrome and firefox as detailed in this thread #1416214: Basic gzip support for 7x comments 12 downwards detail testing and results.

plato1123’s picture

Also seeing this on D6 multisite install, subscribing. Doesn't seem to be any rhyme or reason, works for weeks and then 2 dozen sites are suddenly downloading instead of serving.