Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts

    JavaScript Error on Responsive Menu

    I believe that I'm having a JavaScript error on my page, but I can't figure out what the error means exactly and need some help.

    http://rutholsonphoto.com/

    When I pull up Chrome's J-console, I'm getting this error:

    Code:
    Uncaught TypeError: Object [object Object] has no method 'on' front-subscribers.js:1
    (anonymous function) front-subscribers.js:1
    e.resolveWith jquery.min.js:2
    e.extend.ready jquery.min.js:2
    c.addEventListener.C jquery.min.js:2
    I've then also noticed that when on a mobile device (the site is responsive), the menu toggle is no longer working and I'm thinking it has something to do with this error.

    I'm using WordPress 3.5, with a child-theme based off of the Theme-ID Responsive theme, and using Ubermenu plug-in for the menu.

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    You are pulling in jQuery 1.6:

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js?ver=3.5.1'></script>

    'on' works in jQuery 1.7+ http://api.jquery.com/on/

    So you need to call a newer version of jQuery instead. Right now, you are calling an event handler that the script doesn't know, thus error. (pretty sure that's the issue )
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • Users who have thanked harbingerOTV for this post:

    Psionicsin (04-02-2013)

  • #3
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by harbingerOTV View Post
    You are pulling in jQuery 1.6:

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js?ver=3.5.1'></script>

    'on' works in jQuery 1.7+ http://api.jquery.com/on/

    So you need to call a newer version of jQuery instead. Right now, you are calling an event handler that the script doesn't know, thus error. (pretty sure that's the issue )
    I seriously wish I knew where it was coming from though lol. I have like 50 million files to look through to see what's going on lol.

  • #4
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • Users who have thanked harbingerOTV for this post:

    Psionicsin (04-02-2013)

  • #5
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by harbingerOTV View Post
    Yeah I found that and actually already have it added to my functions files, but something is still overriding it.

    I've even tried disabling plugins one-by-one and still nothing.

  • #6
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts
    Ahh I found it!!!

    It was SSP Director Tools. The one plug-in I didn't think to deactivate!

    Thanks for your help! That was a painful thing to go through.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •