Site won't load

Client is having problems getting their site to load. Staff in 2 different cities are experiencing the same problem.  They are using IE.  Don't know the version.  It just spins and spins.

I can view site just fine.  Please let me know if it works for you.

http://garageescape.com
nsitedesignsAsked:
Who is Participating?
 
Dave BaldwinFixer of ProblemsCommented:
It won't load on IE9 and this code is probably the problem.  Line 34 is causing the page to continuously reload and never finish.
// If not on mobile, use full site css
if(!mobileDetected || getCookie("occSkipMobile") == "true") {
  window.location("http://garageescape.com");  <<< Line 34
} else { // else go to mobile site
  location.replace("http://garageescape.com/m");
}

Open in new window


This might make it work.
if(mobileDetected || getCookie("occSkipMobile") == "false") {
// go to mobile site
  location.replace("http://garageescape.com/m");
}

Open in new window

0
 
strungCommented:
Works for me on both Safari and Firefox on a Mac.
0
 
it_saigeDeveloperCommented:
Works for me on Chrome and FireFox.Capture.JPGBut not on IE (using version 11)Loading indicator [highlighted] constantly flickers, as if it is stuck in a loop..And in case this is dynamically generated; here is the source presented in IE:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Garage Slatwall, Slatboard for organizing your garage</title>
<meta name="Description" content="GarageEscape Garage Slatwall Systems. Organize your Garage." />
<meta name="Keywords" content="garage organization, workshop organization, gardening organization, woodworking organization, laundry organization, office organization, getting organized, organize your space, organize your kid’s toys, hobby organization, organizational system, wall organization, organizational system for the garage, pegboard, Slatwall, Slotwall" />
<link href="includes/styles.css" rel="stylesheet" type="text/css" />
 
<!-- ********************* mobile code ********************** -->
<script type="text/javascript">
<!--
function getCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') { c = c.substring(1,c.length); }
    if (c.indexOf(nameEQ) == 0) { return c.substring(nameEQ.length,c.length); }
  }
  return null;
}

function skipMobileSite() {
  // Skip mobile site with a cookie setting, no expiration date
  document.cookie = 'occSkipMobile=true; path=/';
}

// Is screen size less than 499, indicating a mobile phone?
var mobileDetected = (screen.width <= 699);

// If not on mobile, use full site css
if(!mobileDetected || getCookie("occSkipMobile") == "true") {
  window.location("http://garageescape.com");
} else { // else go to mobile site
  location.replace("http://garageescape.com/m");
}

function allowMobileSite() {
  // Just delete cookie by setting it to past date
  document.cookie = 'occSkipMobile=true; expires=Fri, 3 Aug 2001 20:47:11 UTC; path=/';
  // if we're on a mobile and deliberately selected full site
  if(mobileDetected && getCookie("occSkipMobile") == "true") {
    location.replace("http://garageescape.com/m");
  }
}
//-->
</script><!-- ********************* end mobile code ********************** -->
</head>
<body>
<div id="wrapper">
<div id="top"></div>
<div id="middle">
<div id="container">

<div id="header">
<div id="logo"><a href="index.php"><img src="images/main_logo.jpg" alt="Garage Escape Systems" width="360" height="91" border="0" /></a></div>
<div id="slogan"><strong> ORGANIZATION SYSTEM FOR THE GARAGE... 800-548-7528<br />
</strong><span id="slogan_no_italics">A division of Wind Mill Slatwall Products</span></div>
<div id="top_menu">
<p><!-- ********************* mobile code ********************** -->
<script language="JavaScript">
<!--
  // write this if we're on a mobile and deliberately selected full site - does not show on desktop site
  if(mobileDetected && getCookie("occSkipMobile") == "true") {
    document.write("<a href='http://garageescape.com/m' class='fullSiteOnMobile' onClick='allowMobileSite()'>Go Back to Mobile Site</a>");
  }
//-->
</script>
&nbsp;&nbsp;
<!-- ********************* end mobile code ********************** --><br>
<a href="contact.php"><img src="images/contact2.jpg" alt="Contact Us for your Garage Organization needs" border="0" /></a></p>

<!--end top_menu --></div>
<!--end header --></div>
<div class="fix"></div> 
<div id="left_column">
<dl id="menu">
<dt><a href="index.php">Home</a></dt>
<dt><a href="panels.php">Slatwall Panels</a></dt>
<dt><a href="accessories.php">Slatwall Accessories</a></dt>	
<dt><a href="gallery.php">Photo Gallery</a></dt>
<dt><a href="installation.php">Installation Instructions</a></dt>         
<dt><a href="retail.php">Where to Buy</a></dt>
</dl>

 
<!--end left_column --></div> 
<div id="main-home">

<img src="images/home.jpg" alt="garage Slatwall"  /> 
<!--end main --></div>

<div class="fix"></div>
<div id="footer">
 <div id="green">
  <img src="images/green_statement.jpg" width="600" height="69" />
  <!--end green --></div>
<div class="fix"></div>

 <div id="address">
 <p>Garage Escape is a division of Wind Mill Slatwall Products<br />
    800-548-7528&nbsp;&nbsp;|&nbsp;&nbsp;<a href="mailto:info@GarageEscape.com">info@GarageEscape.com</a> </p>
<!--end address--></div>  

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4601188-2");
pageTracker._trackPageview();
} catch(err) {}</script> 
<!--end footer --></div>

<!--end container --></div>
<!--end middle --></div>
<div id="bottom"></div>
<!--end box --></div>

</body>
</html>

Open in new window

-saige-
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
nsitedesignsAuthor Commented:
Why would it all of a sudden not work?  Seems goofy.  I will see if Dave's code change works.  Note, this isn't "my code"  It is from another programer they brought onboard.
0
 
Jason C. LevineNo oneCommented:
Depends on the definition of "all of a sudden."  When was the last time anyone tested with IE?

IE gets patched a lot via the weekly Windows Updates.  It's possible that a recent patch did something to the javascript interpreter that is causing that loop to fail.  MS updates have caused a lot of problems recently, this may be one more on that list.
0
 
nsitedesignsAuthor Commented:
Clients use IE.  Must have been a patch then.
0
 
Dave BaldwinFixer of ProblemsCommented:
I tested using IE8 and IE9.  IE8 worked and IE9 just kept reloading the page up to that javascript.  There may be a second one in there too.
0
 
it_saigeDeveloperCommented:
Looking through the code I saw, I only saw that if statement referenced twice Dave.  The second one just falls through without trying to reload the location (probably because it just add's a link).
if(mobileDetected && getCookie("occSkipMobile") == "true") { <<< Line 65
    document.write("<a href='http://garageescape.com/m' class='fullSiteOnMobile' onClick='allowMobileSite()'>Go Back to Mobile Site</a>");

Open in new window



-saige-
0
 
nsitedesignsAuthor Commented:
I made the modification to the mobile-head.php page per Dave's suggestion.  Please check now and let me know if this site loads now in IE for y'all.

http://garageescape.com
0
 
Dave BaldwinFixer of ProblemsCommented:
Yep, it loads in IE9 now.
0
 
nsitedesignsAuthor Commented:
I replaced the code per Dave's suggestion.  Client said it worked for them.  I wanted to make sure others also had success.  Is there another code snippet I need to remove?
0
 
jcimarronCommented:
nsitedesigns --
Works fine for me using IE11.   I did not try before you made the code changes.
0
 
Dave BaldwinFixer of ProblemsCommented:
Not that I can tell.  I saw the error for that line in Firefox but Firefox isn't complaining about anything now.
0
 
nsitedesignsAuthor Commented:
Cool - think it is fixed.  Thanks Dave - again you come to my rescue!
0
 
nsitedesignsAuthor Commented:
great job!
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad to help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.