Forum Support

Shape 5
October 17, 2021, 09:37:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: JavaScript error  (Read 517 times)
jothikumar
Jr. Member
**
Offline Offline

Posts: 6



« on: 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.

 
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
jothikumar
Jr. Member
**
Offline Offline

Posts: 6



« Reply #2 on: 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();
}
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #3 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.