MyBB Community Forums

Full Version: 'Double' GZipped content
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All

I'm after some advice as i'm scratching my head trying to figure out this problem.

This isn't a problem with MyBB per say, I fully suspect this a problem of my own creation/doing. For whatever reason when i enable GZIP compression on my new install/migration i am able to see forumdisplay and threads. But i cannot view any posts. 

Error:

The webpage at http://306oc.co.uk/forum/showthread.php?tid=27943 might be temporarily down or it may have moved permanently to a new web address.

Error code: ERR_CONTENT_DECODING_FAILED

Effectively from what i can tell, I'm getting my content 'double' GZIPPED and the browser (Chrome, IE, Firefox) all have a fit and cant read the page.

Really quick summary: 

- Old server (running squeeze), no problems, GZIP enabled in ADMINCP forum runs happily and has done for 3+ years
- New server (running Wheezy), fresh install running 1.8. Can enable GZIP in ADMINCP, no problem. Works like a dream

- New server, re-install mybb 1.6.11, (clean files), install mybb 1.8 over the top, run the upgrade as per instructions. (the DB is imported over to this server post plugins being disabled on the old box before its exported, GZIP still enabled in legacy config/db dump at this point)

I cant for the life of me figure out what's wrong with the setup. Something must be I know that but i cannot see where i have gone wrong.

As it stands, after migration i cannot enable GZIP content without getting the above error. But funnily enough when i do a scan for gzipped content im getting results saying I am!

Can anyone shed some light on where I can continue investigating this issue?

http://checkgzipcompression.com/?url=htt...06oc.co.uk

Should i have disabled GZIP before i migrated?

Any helps and tips welcome. Happy to provide any information required

Regards
Fooby
306oc.co.uk
Maybe you have gzip enabled on your server. Try checking your control panel.
Maybe, Can you tell me where specifically? Or at least a lower level of where to look.

Its a dedicated box i setup/installed myself. So, if its enabled its something enabled by default.

Only difference being we've gone from running under mod_php to FCGId
looks like referred issue is resolved. may be it was caused by a plugin ..

as mentioned in first post,
MyBB forum admin panel has Gzip setting at Server and Optimization Options (configuration section)
And web server might also have Gzip controlling settings at web host control panel.
Hi M.


Nope.. this issue isn't resolved, nor was it by a plugin? Where do you get that?

What I'm getting at here is that with a clean install of MyBB 1.8. With the same server configuration as is running now, i dont have an issue. I can enable GZipped content.

When I migrate my 1.6 forum across, upgraded it. I now cannot enable GZipped content as I get the above explained error.

MyBB Debug Information

Page Generation

Page Generation Statistics
Page Generation Time: 43 ms
No. DB Queries: 15
PHP Processing Time: 28 ms (63.40%)
DB Processing Time: 16 ms (36.60%)
Extensions Used: mysqli, xml
Global.php Processing Time: 32 ms
PHP Version: 5.4.35-0+deb7u2
Server Load: 0.19
GZip Encoding Status: Disabled

yet:

Response Headers
HTTP Status Code HTTP/1.1 301 Moved
Permanently
Date Mon, 08 Dec 2014
11:06:00 GMT
Server Apache/2.2.22
Location http://306oc.co.uk/forum/
Vary Accept-Encoding
Content-Encoding gzip
Content-Length 194
Content-Type text/html;
charset=iso-8859-1