Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
help w jquery problem with my theme
Avatar
Michael Su
Member
Free Members
Offline
Jun 26, 2013 - 10:13 am

Thank you for checking on my site. I had not realized it was throwing so many errors. At least I know that jquery was working at some point before, after many days of trial and error. I did run the housekeeping, resetting the cache, to no avail.

 

I also tried what Yellowfish suggested above, but that only broke the theme appearance.

 

It's very confusing that it was working fine, and now not so much! Our forum is basically inoperable for the moment. Would it help if I included my function.php? I know it's a lot to look through, but I commented in/out what I added, under my initials mwss. Perhaps you would not mind taking a quick look?

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 26, 2013 - 10:19 am

is that the way the theme comes??? or did you change to all those enqueue statements?  using wp_enqueue_scripts is proper, but oddly there are no dependencies specified...

so if it was working, what has changed??  update theme or plugins?

Avatar
Michael Su
Member
Free Members
Offline
Jun 26, 2013 - 10:36 am

hello again, wow that was fast! yes, the theme comes like that, all I did was comment to make it load from google just for the plugin onebyone, otherwise just enqueue. I checked the errors, now I'm getting:

questions:115 TypeError: 'undefined' is not a function (evaluating '$')
questions:119 TypeError: 'undefined' is not a function (evaluating '$(document)')
questions:137 TypeError: 'undefined' is not a function (evaluating '$(document)')
questions:529 TypeError: 'undefined' is not a function (evaluating '$('a[data-rel]')')
jquery.ui.widget.min.js:5TypeError: 'undefined' is not a function (evaluating 'e.widget.extend({},this.options,this._getCreateOptions(),t)')

 

I didn't change all those enqueue statements. how odd? I contacted the author, who would not reply to me, though he just pushed out an update that specific did not address this issue. so frustrating!!

Avatar
Michael Su
Member
Free Members
Offline
Jun 26, 2013 - 10:41 am

do you mean all the enqueue within the set starting with if (!is_admin ...?

 

yup, that's all from the theme, all the enqueue_scripts for tabs, tabs2, etc.

 

generally, should there by anything before wp_enqueue_script like a wp_register_script? From if (!is_admin it goes directly to wp_enqueue_script('jquery'); .

 

thank you again for your quick response. much, much obliged!

 

Avatar
Michael Su
Member
Free Members
Offline
Jun 26, 2013 - 2:37 pm

also, same theme version, same plugin version. differences are that I installed Events Manager, Fullcalendar, and Wordfence.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 26, 2013 - 2:46 pm

what happens if you temp disable those?  just to narrow it down...

notice the errors you lsted?  all start with $... known to sometimes conflict in wp jquery... you could try finding those where included in the header and change the $ to jQuery and see if any impact...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625