Page 1 of 1

Opera 9 Fix

PostPosted: Sun Dec 31, 2006 1:07 am
Author: Teelk
This fix should eliminate the problem of viewing IM websites using Opera 9+.
This was a gzip issue and prevented Opera 9 users from getting access to IM sites. The user would browse to the IM site and receive either a "corrupt data" error message or there would be strange characters in the upper left corner of the page while the rest of the page was white.

The fix is as follows.

Open includes/page_tail.php
FIND AND DELETE
Code: Select all
    $gzip_contents = "x1fx8bx08x00x00x00x00x00";

FIND
Code: Select all
    $gzip_contents .= gzcompress($gzip_contents, 9);  
REPLACE WITH
Code: Select all
    $gzip_contents = gzcompress($gzip_contents, 9);

FIND
Code: Select all
    echo $gzip_contents;

BEFORE ADD
Code: Select all
    echo "x1fx8bx08x00x00x00x00x00";


Open admin/page_footer_admin.php
DO SAME EDITS ABOVE

Remember to do these edits to both of these files.

Re: Opera 9 Fix

PostPosted: Sun Dec 31, 2006 6:17 am
Author: Dr. Bantham
Yes! This did the trick for my site, though not for the integrmod site here. I assume the edits have not been made here. Even our Nintendo Wii has no trouble browsing my core site. Was this an old fix or a new one? The problem seems so cryptic that the solution itself is mystified. Either way, nice work. Many thanks!

Re: Opera 9 Fix

PostPosted: Sun Dec 31, 2006 11:56 am
Author: Teelk
It's a new fix, I just added it to the SVN as a matter of fact.

The fix becomes clearer when you compare the original phpBB gzip code from page_tail.php to the IM version. It's difficult to explain otherwise...