Web Hosting Talk







View Full Version : Error Stops Website Loading In I.E - Please Help


AmishPatel
12-13-2009, 10:53 AM
Hi Guys,

So when I try to start my site up in I.E sometimes, it won't load up and comes up with an error in the bottom left (doesn't happen on Chrome or Firefox).

The error is this:

Line: 193
Char: 1
Error: 'undefined' is null or not an object
Code: 0
URL: http://www.wrestling-edge.com/


Now I viewed source and below is the code pertaining:


<div class="headerleft2">
<a href="http://www.wrestling-edge.com"><img border="0" src="http://wrestling-edge.com/logo2.png" width="223" height="97" alt="Wrestling-Edge.com"></a>






</div>



<div class="headerright2">
<center>
<script type="text/javascript"><!--
e9 = new Object();
e9.size = "728x90";
e9.addBlockingCategories="Pop-up,Pop-under";
//--></script>
<script type="text/javascript" src="http://tags.expo9.exponential.com/tags/WrestlingEdgecom/ROS/tags.js"></script>
</center>
</div>

</div>


Line 193 is bolded/color coded red in there, but I have no idea why the error is happening, or how to fix it. Any kind of help would be appreciated!

csparks
12-13-2009, 12:00 PM
IE's basic debugger will do you hardly any good.

In firebox's basic editor I get the following warnings:

Warning: Unexpected end of file while searching for ';' or '}' to end declaration. Unexpected end of file while searching for closing } of declaration block.
Source File: http://www.wrestling-edge.com/wordpress/wp-content/themes/playmaker/style.css
Line: 1876


Warning: Use of captureEvents() is deprecated. To upgrade your code, use the DOM 2 addEventListener() method. For more help http://developer.mozilla.org/en/docs/DOM:element.addEventListener
Source File: http://www.wrestling-edge.com/
Line: 0


Firebug did not seem to find anything of interest.

BTW, the site seems to load fine in IE 8 and Firefox.

ayohannes
12-13-2009, 02:26 PM
This is most likely related to the JS you have in there. You could try removing the semi-colon from the line here.

e9.addBlockingCategories="Pop-up,Pop-under";


If that doesn't work, I suggest you remove the javascript out and test your page and work your way from there.

Jay August
12-13-2009, 03:23 PM
it's line 193, so that means it's the first line of the javascript file you're linking there on around line 193.
This is line 192:
<script type="text/javascript" src="http://tags.expo9.exponential.com/tags/WrestlingEdgecom/ROS/tags.js"></script>
The first line of that JavaScript says:


if (expo9_pageId == undefined) {
var expo9_pageId = (new Date()).getTime() % 20000001 + parseInt(Math.random() * 10000);
var expo9_adNum = 0;
}
So that's the error. "undefined" is not defined.

Amish Patel
01-18-2010, 04:50 PM
It fails to load in I.E and stops at the top. Refresh it works. It does this in I.E for most people i've spoke to.

I'm not sure if the IE debugger actually showed the proper root of the problem, but can anyone else tell and suggest how to fix it. It's a serious problem if this happens for users as they likely just leave the Website.

Jay August
01-18-2010, 08:42 PM
ask exponential.com why it won't work. It's a JavaScript included from their servers, so I assume its a service they provide?