IE6 returns blank page when clicking links--works fine in FF

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

IE6 returns blank page when clicking links--works fine in FF

Post by aaronhall »

I'm building a session-enabled application for a client. Works beautifully in Firefox and Opera, and even on IE when being tested on my local server. But, when viewing it on the live production server in Internet Explorer 6, clicking on any link will bring up a blank page. You cannot view the source of this blank page. When you refresh the page, the page you originally tried accessing loads fine.

This bug existed all the way back to IE5, and I'm reading that it still does in IE7. I've read that it is because the Content-Length is not equal to the size of the file(s) returned by the server, but I can't find anything that works, including removing all <script> tags.

I'm going to find the apes that developed this virus and chop off their mouse-hands. Anyone kind enough to help is in for a stockpile of pillaged bananas.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Hmm, not sure which (specific) problem you may be describing. Can you post some links for examination? Preferably to both servers.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Thanks for the response, feyd. I don't want to post the link to the app in the interest of my client's privacy. The only differences between the two is that the file size for the one that works is "Not Available" according to IE, and for the one that doesn't work, the size is available.

I wonder if there is a way to block the content-length header from PHP.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Also, pages come up fine after POSTing a form to a script, with that script forwarding to a different page using header("Location: ...")
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

It's working now. Fixed it by defining the charset in the header:

Code: Select all

header("Content-Type: text/html; charset=UTF-8");
This was already defined in a META tag. I still can't explain why it was working on my local server and not on the live server. Anyway, I'm off to Seattle with my bull whip. I'm gunna hunt me some Bill Gates, Indiana Jones-style.
Post Reply