Shape 5

Wordpress Club Themes => No1 Shopping - Club => : jothikumar December 07, 2014, 02:21:06 AM



: JavaScript error
: jothikumar December 07, 2014, 02:21:06 AM
I'm getting a JavaScript error on the page (screenshot attached). Often when JavaScript errors occur they prevent other JavaScript from executing correctly, which might be the case here. The error is coming from this file:

http://www.ibcpltd.com/wp-content/themes/s5_cleanout/js/s5_responsive_mobile_bar.js?t=1

which looks like a JS file from the theme.  

We are using slider revelation plugin for slideshow in our home page. Could help us to solve the issue.

FYI: This issue is in all shape5 themes we also tried No1 shopping theme too.

 


: Re: JavaScript error
: Tristan Rineer December 11, 2014, 09:06:08 AM
Have you changed whatever was causing the error?  I'm not getting that error when I look at your site, and when I asked a couple other people to look at it, they said they're not getting the error either.


: Re: JavaScript error
: jothikumar December 11, 2014, 12:08:34 PM
Have you changed whatever was causing the error?  I'm not getting that error when I look at your site, and when I asked a couple other people to look at it, they said they're not getting the error either.


We found the cause of the error is from "S5 Box" plugin as we were using firefox. Once we disabled s5 box it started working.
Error in Line >> document.getElementById("s5box_register").childNodes[1].childNodes[1].childNodes[1].childNodes[1].id = "s5box_register_inner";


function s5_responsive_mobile_login_register_innerhtml() {
   if (document.getElementById("s5box_login")) {
      if(navigator.appVersion.indexOf('MSIE 7.')!=-1 || navigator.appVersion.indexOf('MSIE 8.')!=-1){
      document.getElementById("s5box_login").childNodes[0].childNodes[0].childNodes[0].childNodes[0].id = "s5box_login_inner";
      }
      else {
      document.getElementById("s5box_login").childNodes[1].childNodes[1].childNodes[1].childNodes[1].id = "s5box_login_inner";
      }
      s5_responsive_mobile_login_innerhtml = document.getElementById("s5box_login_inner").innerHTML;
   }
   if (document.getElementById("s5box_register")) {
      if(navigator.appVersion.indexOf('MSIE 7.')!=-1 || navigator.appVersion.indexOf('MSIE 8.')!=-1){
      document.getElementById("s5box_register").childNodes[0].childNodes[0].childNodes[0].childNodes[0].id = "s5box_register_inner";
      }
      else {
      document.getElementById("s5box_register").childNodes[1].childNodes[1].childNodes[1].childNodes[1].id = "s5box_register_inner";
      }
      s5_responsive_mobile_register_innerhtml = document.getElementById("s5box_register_inner").innerHTML;
   }
   s5_responsive_mobile_login_register();
}


: Re: JavaScript error
: Tristan Rineer December 12, 2014, 08:57:11 AM
Did you have a widget published to the S5 Box - Register position?  It's very possible that the error was being caused by not having a widget published in the position that it was looking for.  If you don't want to use the register position, don't forget to remove the text for it in the theme options so it doesn't generate the HTML for the position.