Forum Support

Shape 5
September 20, 2021, 05:23:26 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 errors on main menu in Game World template  (Read 418 times)
ywncyber
Jr. Member
**
Offline Offline

Posts: 62



« on: April 17, 2017, 12:24:14 PM »

I have been migrating a site from 2.5 to 3.6 while installing the Game World theme in the process.  After install the template works fine except the main menu links do not work, they just give a javascript error when hovered over.  The console gives these errors:

Code:
Uncaught TypeError: jQuery(...).on is not a function
    at (index):49

multibox.js:187 Uncaught TypeError: $(...).children(...).first is not a function
    at init.$.fn.getFirst (multibox.js:187)
    at t.initialize (s5_flex_menu-min.js:2)
    at window.MenuMatic.<anonymous> (s5_flex_menu-min.js:1)
    at Function.each (jquery.js:12)
    at init.each (jquery.js:12)
    at window.MenuMatic.MenuMatic.initialize (s5_flex_menu-min.js:1)
    at new window.MenuMatic (s5_flex_menu-min.js:1)
    at HTMLDocument.<anonymous> ((index):121)
    at Function.<anonymous> (jquery.js:19)
    at Function.each (jquery.js:12)

(index):1860 Uncaught TypeError: s5mbox.resize is not a function
    at (index):1860
    at multibox.js:67

Any idea what might be going on or how I can fix this?

I should clarify, on most other pages on the site it works and the dropdown menus go down properly and allow me to click the links.  On the home page though the down arrows do not show and they do not unfold when clicked on.
« Last Edit: April 17, 2017, 12:49:26 PM by ywncyber » Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: April 18, 2017, 12:06:34 PM »

Hello,

Please post a url. A jquery not defined error would indicate that you are either running 2.5 files or you have a conflicting script on the site. To clarify you must completely reinstall all template files and modules files when you upgrade from 2.5 to 3.X. No 2.5 products can work in 3.X, and it is not a patch, they must be totally reinstalled.
Logged

Mike Knott
------------
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
ywncyber
Jr. Member
**
Offline Offline

Posts: 62



« Reply #2 on: April 18, 2017, 12:15:51 PM »

Thanks for your reply the url is as below:-

http://superluigibros.com/site36/

Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: April 19, 2017, 05:59:57 AM »

Hello,

You have a script that is interfering with the template. You need to disable all third party extensions to determine which is causing the problem. Looking at your script I can see that this extension is not calling Jquery properly and will cause an issue:


   <script src="http://superluigibros.com/site36/templates/game_world/js/jquery/jquery-ui-addons.js" type="text/javascript"></script>
   <script src="http://superluigibros.com/site36/plugins/content/artsexylightbox/artsexylightbox/js/jquery.js" type="text/javascript"></script>


Jquery should never be called like that. Jquery is built directly into Joomla itself and should only ever be called from the core Joomla files so that all extensions can share it. This extension is introducing another copy of Jquery which is causing a conflict. It is a standard that extensions should never do that.

Also, have you completely reinstalled the template with the 3.X version?
Logged

Mike Knott
------------
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.