roopurt18 Posted July 9, 2007 Share Posted July 9, 2007 A page on a client's website, which is not managed by me: http://www.ponderosahomes.com/buy/optionspreview.php At the bottom of this page is a link to a site I do manage: In order to access the site, click here. When clicking on this link in IE6, a new window opens and displays a blank page. Refreshing the page will cause the proper login screen to appear. This behavior appears to only occur in IE6. I have been working on this for about 6 hours now and becoming somewhat frustrated. I have tried numerous solutions on a test machine which entail reinstalling IE6, using regsrvr32 to re-register DLLs, etc. I have added calls to header() on the server to no avail. Any suggestions? Quote Link to comment Share on other sites More sharing options...
Caesar Posted July 9, 2007 Share Posted July 9, 2007 Would have to see some code on that page. Also, Linux + PHP is your best friend. Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 9, 2007 Share Posted July 9, 2007 I have had this problem before. It's not just IE6 - it also will occur in IE7. Maybe not in this case but it did in mine. A quick fix is to just make the page reload on first look - javascript or use php headers with a flag. It might have to do with how your javascripts are being declared and in what order. I believe that is what I ended up changing in order to fix this problem... Don't ask me why...it just worked. To test out this theory. Remove the scripts or one at a time and see if any change occurs. Quote Link to comment Share on other sites More sharing options...
Carterhost Posted July 9, 2007 Share Posted July 9, 2007 I just checked it on IE6, and it looks fine from here... Quote Link to comment Share on other sites More sharing options...
clanstyles Posted July 9, 2007 Share Posted July 9, 2007 Thats funny because I use IE6 6.0 at my work and can't install firefox. It worked fine for me. It might be an IE setting to connect to the internet for you or something trojan like in the way. :-/ Those nasty things and IE love to merge. IE is a breeding ground. Quote Link to comment Share on other sites More sharing options...
Carterhost Posted July 9, 2007 Share Posted July 9, 2007 Thats funny because I use IE6 6.0 at my work and can't install firefox. It worked fine for me. Same here. Clanstyles, we can't install FF either. Get the portable version from http://portableapps.com. No installation needed. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted July 9, 2007 Author Share Posted July 9, 2007 <?php // Page.php // Defines the basic outline for all pages created in Webview. // Expects vars: // $Client - An instance of our client object // $Sess - An instance of the session object // $Title - Page title // $CSS - Extra CSS <links> or <style> tags // $Javascript - Extra <script> tags // $Content - Main page content // $NavMenu - The navigation menu // Sets the following vars before displaying markup // $Header - The page header $IFrame = $Sess->isIFrame(); // $Header if(!$IFrame){ $params = Array(); $params['Client'] = $Client; $Header = LoadComponent("General/Header", $params); }else{ $Header = ""; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Webview - <?=$Title?></title> <link href="/CSS/layout.css" rel="stylesheet" type="text/css" media="all" /> <link href="/CSS/text.css" rel="stylesheet" type="text/css" media="all" /> <link href="/CSS/nav_menu.css" rel="stylesheet" type="text/css" media="all" /> <link href="/CSS/tooltips.css" rel="stylesheet" type="text/css" media="all" /> <link href="/CSS/form.css" rel="stylesheet" type="text/css" media="all" /> <link href="/CSS/legacy.css" rel="stylesheet" type="text/css" media="all" /> <?=$CSS?> <script src="/JS/Objects/CCookie.js" type="text/javascript"></script> <script src="/JS/Objects/CUserInterface.js" type="text/javascript"></script> <script src="/JS/common.js" type="text/javascript"></script> <script src="/JS/Objects/CNavMenu.js" type="text/javascript"></script> <script src="/JS/ajax.js" type="text/javascript"></script> <script src="/JS/htmlDom.js" type="text/javascript"></script> <script src="/JS/ieSucks.js" type="text/javascript"></script> <script src="/JS/Events.js" type="text/javascript"></script> <script src="/JS/Singletons/MsgQueueSidebar.js" type="text/javascript"></script> <script src="/JS/Singletons/StandardTable.js" type="text/javascript"></script> <?=$Javascript?> </head> <body class="NormTxt"> <!-- HEADER --> <?php if(!$IFrame){ ?> <div id="PageHeader" class="SmallTxt"> <?=$Header?> </div> <?php } ?> <!-- CONTENT --> <table id="PageContent" cellpadding="0" cellspacing="0"> <tr> <td id="ColNav"> <?php if($Sess->isAdmin()){ ?> <div id="MsgQSidebar"></div> <?php } ?> <?=$NavMenu?> <?php if(!$Sess->isAdmin()){ ?> <div id="MsgQSidebar"></div> <?php } ?> </td> <td id="ColDisp"> <input id="btnHideNav" class="button" type="button" value="<<<" style="display: <?=$Sess->isAdmin() ? "" : "none"?>;" onclick="window.wvNavMenu.toggle();" /> <?=$Maintenance?> <?=$Content?> <?=rDebug_dump(false)?> </td> </tr> </table> <!-- FOOTER --> <?php if(!$IFrame){ ?> <div id="PageFooter" class="TinyTxt"> Copyright © 2002 - 2006 Pharaoh Information Services. All rights reserved. </div> <?php } ?> </body> </html> I did some testing where I echoed some text if the remote address stored in $_SERVER was equal to my IP. I placed several echo statements directly before the ?>. if($_SERVER["..."] == "my ip"){ echo "component: Page.php<br/>"; echo "<pre>" . print_r(htmlentities($Client), true) . "</pre>"; echo "<pre>" . print_r(htmlentities($Sess), true) . "</pre>"; // ... for each of the variables expected by the page } ?> Whats weird is all of a sudden the page worked. But if I commented out all of the echo statements except the "component: Page.php" one, I'd get a blank page with just that text on it. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted July 9, 2007 Author Share Posted July 9, 2007 carterhost & clanstyles, you're both saying you can open the link the first time from the ponderosa website? O.o Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 9, 2007 Share Posted July 9, 2007 I can't reproduce the error myself FYI Quote Link to comment Share on other sites More sharing options...
Carterhost Posted July 9, 2007 Share Posted July 9, 2007 Yeah, it works first time, no refresh required. I say this too much at work but.... Have you tried clearing your local cache and cookies and trying again? Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted July 9, 2007 Author Share Posted July 9, 2007 Well here's whats funny about that. I originally had IE7 on my system and it worked flawlessly. So I've uninstalled back to IE6 to troubleshoot the problem. Now when I originally started working on it I had the same issue. Then I threw an echo statement near the top of my script, which created an error message due to a later call to header(). However, the rest of the page output as expected. I then removed the echo statement and the page continued to work. I had to delete all local files, cookies, etc. in IE6 in order to get the problem to repeat itself. I still have no idea what's causing this and I don't even know if its an IE6 setting / add-on on the local machine or something that's happening on the server. Quote Link to comment Share on other sites More sharing options...
JayBachatero Posted July 9, 2007 Share Posted July 9, 2007 I've seen this happen when gz compression is turned on. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted July 10, 2007 Author Share Posted July 10, 2007 Thanks for the heads up JayBachatero, adding the following to an .htaccess within the site seems to clear it up: mod_gzip_on Off However, now nothing in the site will be served with compression. O.o Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.