Jump to content

IE bombs when loading PHP page, but works in FF


aka_bigred

Recommended Posts

OK, I'm taking my first foray into PHP and I'm liking it, but I've got PITA problem.  I'm creating a web interface for data logging on my saltwater aquarium.  Data's stored in a mySQL DB on an ubuntu LAMP server dishing out PHP5 pages.  Data is collected using 1-wire sensors by Dallas Maxim, which are read using OWFS ( owfs.sf.net ) and graphs are done using JPGraph.

 

I have created several individual pages to display different parameters, then I have a unified GUI page that includes them all together in separate tabbed Divs.  I get the same results on multiple PC's - it opens just fine in Firefox (v2.0.0.5), but when I try to pull up the page in IE (v6.0.2900), it shows the page while it's loading and then croaks with this error message:

Internet Explorer can not open the internet site: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Operation aborted.

 

I can open each individual page just fine in IE, but the consolidated GUI page croaks.  It's like IE tries opening/processing the page, then gets to some error part way through the file and aborts.  I tried googling that error message, and seemed to get hints that it may be a page header issue, but trying some of the suggested solutions got me no where.  I can't seem to figure out what's giving it problems.  I use IE as my browser of choice, but I need it to work on IE for the times I'm at a public terminal and can't use FF.

 

Here's the page, you can see for yourself what I'm talking about (try it in both IE & FF):

http://bytality.com/Skhfawklfhuaewkfljhwafkjhsadlksjfgkljdfglkdsjh.cfm

 

Anyone have any ideas what could be causing this?  I can post excerpts from the PHP to help diagnose, if requested.Any help is greatly appreciated!

-S

 

NOTE: Yes, the above link points to a coldfusion page, but it's merely a redirect b/c I really don't want to give out the direct link to my controller as a security precaution (maybe a bit paranoid, but so be it).  It exhibits the same problems as if you were browsing the direct GUI page so don't worry about it.

 

 

 

Aka_bigred,

 

I am 99% sure that this is not a PHP issue. I looked at your source code and noticed you are also running JavaScript. I would bet that is causing the problem. If PHP works in one browser, it'll work in another. The same cannot be said for JavaScript... the likely culprit.

 

 

SC

have you analyzed the HTML code itself?

 

every problem ive found regarding differences in FF and IE are due to the FF browser being more flexible/accepting of code that has syntax errors.

 

for example, if you view the source of the page, youll see that it has two headers ( <head> ..... </head><head>......</head> )

 

read this:

http://www.webmasterworld.com/forum21/786.htm

this guy wanted to know if he could put two headers for javascript as well, and most ppl agree, that it is not good practice.

I agree that the multiple head thing is bad, but it actually aren't multiple heads in my code, FF seems to be putting them around stuff automatically.  I've tweaked the code to prevent that too, though it wasn't the root of the problem

 

I played with the HTML a bit and narrowed it down to one of the js files I was using.  Not sure what it is doing yet, but I'll look into that more.

 

  • 1 year later...

:(

I'm hosting a PHP driven website.  this page loads fine in Firefox, but crashes IE 6 & 7 with "operation aborted" error.

 

Any ideas????

 

 

<?php

include_once "./common_db.inc";

$register_script = "./register.php";

 

if (!$_POST['posted'] AND !$_GET['userid']) {

      login_form();

      exit;

 

 

} else {

session_start();

session_register('userid', 'userpassword','account_id');

  if ($_POST['userid']) {

      $username = auth_user($_POST['userid'], $_POST['userpassword']);

  }

  if ($_GET['userid']) {

      $username = auth_user($_GET['userid'], $_GET['userpassword']);

  }

 

  if(!$username) {

$PHP_SELF = $_SERVER['PHP_SELF'];

      session_unregister("userid");

      session_unregister("userpassword");

      echo "Authorization failed. " .

          "You must enter a valid userid and password combo. " .

          "Click on the following link to try again.<BR>\n";

      echo "<A HREF=\"$PHP_SELF\">Login</A><BR>";

      echo "If you're not a member yet, click " .

          "on the following link to register.<BR>\n";

      echo "<A HREF=\"$register_script\">Membership</A>";

      exit;

  }

  else {

      echo "Welcome, $username!";

//echo session_id();

      echo "<meta http-equiv=\"refresh\" content=\"0;url=./account.php?".session_id()."\">";

    }

}

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.