Solved

Site won't load

Posted on 2015-01-02
16
126 Views
Last Modified: 2015-01-02
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
0
Comment
Question by:nsitedesigns
  • 6
  • 5
  • 2
  • +3
16 Comments
 
LVL 53

Expert Comment

by:strung
Comment Utility
Works for me on both Safari and Firefox on a Mac.
0
 
LVL 32

Expert Comment

by:it_saige
Comment Utility
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
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
 

Author Comment

by:nsitedesigns
Comment Utility
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
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
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
 

Author Comment

by:nsitedesigns
Comment Utility
Clients use IE.  Must have been a patch then.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
 
LVL 32

Expert Comment

by:it_saige
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:nsitedesigns
Comment Utility
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
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
Yep, it loads in IE9 now.
0
 

Author Comment

by:nsitedesigns
Comment Utility
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
 
LVL 50

Expert Comment

by:jcimarron
Comment Utility
nsitedesigns --
Works fine for me using IE11.   I did not try before you made the code changes.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
Not that I can tell.  I saw the error for that line in Firefox but Firefox isn't complaining about anything now.
0
 

Author Comment

by:nsitedesigns
Comment Utility
Cool - think it is fixed.  Thanks Dave - again you come to my rescue!
0
 

Author Closing Comment

by:nsitedesigns
Comment Utility
great job!
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
You're welcome, glad to help.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Read about why website design really matters in today's demanding market.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now