PDA

View Full Version : Browsers: IE verses FireFox


PrimaPhoto
20th of February 2005 (Sun), 11:55
Hello EE Forum users, I've been noticing this for the past few months and wondering if anyone is seeing the same problem?

I've tested my EE Photo Database on several computers at work using IE and finding the page either a) does not load at all b) only some thumbnails on the main index page load and c) It does not load my News items?
The best I've seen it load is all the thumbnails are loaded but no News items, New Galleries and counter stats?

BUT... when using FireFox it loads fine?

Is it something with my sever, database or EE installation?

Anyone experience this?

Thanks, here is a link to me EE Photo database: http://www.primaveraphoto.com/photodbase/

KelliShaver
20th of February 2005 (Sun), 12:30
Hmm... Well, your gallery displayes fine for me in both FF and evil IE. That said, the only thing I see that could possibly effect it (and I don't know if this is specific to your particular installation or holds true for EE in general, since I've never used it) is that the doctype is declared twice.

MMCM
20th of February 2005 (Sun), 14:27
Maybe you have some ad-blocking software installed? Content may be filtered according to image size or other attributes.
Did you try both browsers on the same machine with the same OS?

PrimaPhoto
20th of February 2005 (Sun), 15:38
Thank you both, the ad blocker is a good idea.
I'm checking it mainly on Win2K operating system.

I checked my index.php file and didn't see <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> in the document.

Thanks again.

Mark

Pekka
20th of February 2005 (Sun), 16:32
I can reproduce a html source clipping problem sometimes in my IE (6.0.2900.2180 in XP Pro), but not in Firefox 1.0. By clipping problem I mean that html source is clipped (trimmed) from random position:



page starts and it continues....

...href="photo.php?photo=485&exhibition=15&pass=public&size=default&lang=eng" style="color:#ebc475" TITLE="Jimmy Bowskill Band"><img src="http://www.primaveraphoto.com/photodbase/photos/micro/IMG_0723_resize.JPG" border="1" style="border-color:#000000" vspace="2" alt="Jimmy Bowskill Band"></a> <a href="photo.php?photo=637&exhibition=14&pass=public&size=default&lang=eng" style="color:#ebc475" TITLE="Vivian Clement Trio"><img src="http://www.primaveraphoto.com/photodbase/photos/micro/IMG_0688_resize.JPG" border="1" style="border-color:#000000" vspace="2" alt="Vivian Clement Trio"></a> <a href="photo.php?photo=643&exhibition=14&pass=public&size=default&lang=eng" style="color:#ebc475" TITLE="Vivian Clement Trio"><img src="http://www.primaveraphoto.com/photodbase/photos/micro/IMG_0

and that stops there in the middle of line.

Because Firefox does not have this bug and IE does, it can have couple of explanations:

1. There may be a bug in IE which makes it incompatible with your server's Gzip compression, or bug in your server's gzip. EE uses gzip to compress html output and that has to be decompressed by browser. It is a widely used method to save bandwith drastically and it is done "by the book" so there should not be any problems with it at all.

comment out line 9 in index.php to test index page without compression:

Change

ob_start ("ob_gzhandler");

to

//ob_start ("ob_gzhandler");

2. Your server and IE cannot negotiate content lenght properly. This can also be related gzip, but could also be your server.

3. Keepalive in Apache is flakey? Apache has a "keepalive" system which server certain amount of page items on one connection. Without keepalive the browser needs to request each item (image, code) on page separately. If there is a bug in keepalive system that could lead to clipped data. Try disabling keeplive in httpd.conf for testing purposes.

4. You use PHP cache which does not do data output correctly. Try disabling the cache for testing purposes.

5. Your server's Kernel is flakey. I have seen such problems before. For example with one Virtuozzo VPS server I got corrupted site preview and it was fixed by disabling the use of Sendfile in the Apache configuration files to avoid sendfile() kernel-system calls (!).

Those are possibilities that come to my mind now.

I do not belive the problem is in EE code - because all problems in code will produce some kind of error messages, and it the error is warning (fatal) the page output will not be done. Also, because I cannot reproduce this with other servers it seems to be server-specific problem.

You can remove the extra doctype from index.php line 94.

Hope this helps in finding the problem....

PrimaPhoto
20th of February 2005 (Sun), 16:50
:D Pekka, I commented out the folowing:

//ob_start ("ob_gzhandler");

I loaded fine in IE (not that I use IE I just want it to work) I will test it on a few PC's at work tomorrow too.

Thank you very much for your help.

Mark

Pekka
20th of February 2005 (Sun), 17:03
Comment out also

ob_end_flush():

in the end of the page, and add

error_reporting (0);

just below the first line

<?php

to get rid of error message your stats script seems to generate.

PrimaPhoto
20th of February 2005 (Sun), 17:08
Should I comment out:

error_reporting (E_ALL);

Mark

Pekka
20th of February 2005 (Sun), 17:24
Change it to

error_reporting (0);

PrimaPhoto
20th of February 2005 (Sun), 17:30
ah, that makes sense. got it all changed.

Thanks Pekka.

Mark

wkitty42
23rd of February 2005 (Wed), 20:40
so, did all that fix the problem you were seeing??

PrimaPhoto
24th of February 2005 (Thu), 06:06
Yes it did, thank you.
An important note for future users.

Mark