Jump to content

[SOLVED] IE6 blank page problem, running out of hair


roopurt18

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

<?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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.