Annoying IE problem (What a suprise!)

Associate
Joined
3 Oct 2006
Posts
2,304
Location
London
Hi There wondering if you can help me with an annoying IE6 bug.

On my test site:

Here

The page displays fine. (Checkout the text, 'Home', left aligned as it should be, and the footer displaying correctly).

On the live site though:

Here

The page displays wrongly. (Checkout the text, 'Home', now centre aligned and the footer displaying in-correctly).

The strange thing is though, these sites code are IDENTICAL.

As usual, no errors occur between the two in firefox....

Does anyone have any ideas?
 
Last edited:
Code:
Notice: Undefined index: small_screen in D:\websites\proddev.itisholdings.com\keepmoving\driversvoice\index.php on line 4

Notice: Undefined variable: output in D:\websites\proddev.itisholdings.com\keepmoving\driversvoice\inc\front_functions.php on line 58

Notice: Undefined index: small_screen in D:\websites\proddev.itisholdings.com\keepmoving\driversvoice\index.php on line 9

Fix those before checking layout.
 
I've fixed two of them, the other looks like it'll be a bit more work to fix and at the moment the layout is my priority.*

Any ideas what might be causing this? I also noticed another bug. When you do a shift refresh on the page a weird line appears down the side of the page (in firefox).

* I'm currently in the process of re-writing the php to make it easier to manage as well as better coded all round. (e.g getting rid of notices etc.)
 
As Dj_Jestar has said, you should eliminate the PHP error message code that precedes the doctype declaration first; until then, they're not identical pages with identical code.

However, if it turns out that it's not the error code causing the difference, then my educated guess is that they're on two servers [one US, one UK?] which have differing MIME type configurations. One might be delivering XHTML as "text/html" while the other might be delivering it as "application/xhtml+xml". I seem to recall IE6 is particularly sensitive to this problem.

http://www.456bereastreet.com/archive/200501/the_perils_of_using_xhtml_properly/
 
Last edited:
As it turned out, the glitch wasn't caused by the messages, but it some how caused the error not too appear on my testing sites as when I turned off error reporting, the glitch appeared.

Managed to fix it though, it was a bad combination of HTML/Tables/CSS that caused it.
 
Back
Top Bottom