Forum Moderators: open

Message Too Old, No Replies

ob start("ob gzhandler"); problem in all browsers except Opera

gzip compression

         

fargo1999

6:22 pm on Feb 6, 2009 (gmt 0)



I use gzip on my website through the ob_start("ob_gzhandler"); function. It works well in all browsers except for one script when I use iframe to delete some items.

Still, everything works perfectly in Opera, but in IE, Firefox, Chrome, Safari the error something like this below appears (this error message is from Firefox):

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

I am positive the problem is gzip because when it's turned off it all works correctly in all browsers.

Shall I assume it's the browsers' bug (I tried many things like excluding gzip from some files etc., but it didn't help) and it will most likely be fixed in the other browsers soon? Opera appears to have the least bugs of all so that's why I'm hopeful :

RonPK

10:12 pm on Feb 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The error may be caused by output sent to the browser before the gzip'ed part. Maybe you overlooked a line break or a whitespace?

fargo1999

6:36 pm on Feb 13, 2009 (gmt 0)



The error was that I thought Apache version was 1.3 but it was 2 so I just enabled it in .htaccess.