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
Join and Add a Topic buttons not working
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 9:48 pm

so multiple things wrong going on here...

first, the theme is improperly loading jquery ui

<script type='text/javascript' src='http://www.midwestengineering.com/wp_mwe/wp-content/themes/innovative/js/jquery-ui-1.8.11.custom.min.js?ver=3.3.2'></script>

that will conflict with the jquery ui loaded by wp...  not to mention its also an outdated version of jquery ui again that will conflict with the version shipped with wp...

also, something else, probably the theme, but could be a plugin, is incorrectly loading  jquery

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

as per the codex article we referenced, you need to correct those incorrect js loading items...

you can find out if both are the theme by a quick switch to the wp default theme and see if stuff works...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 9:49 pm

if you can find where in the theme its doing it wrong, we can help you correct the loading to wp standards...

Avatar
Scott Schwab
Medford, NY
Member
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:01 pm

I will try to find it... I'm just not sure where to look? Any ideas?

It has my programmer stumped as well... I may have him post the next question if I can't find the jquery calls... laugh

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:12 pm

it wont be jquery calls... but usually just html output in the normally either the head.php or functions.php of the theme files...  but could really be in any...

look for the string sequences mentioned above in any of the theme files...

Avatar
Scott Schwab
Medford, NY
Member
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:19 pm

I found wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, ''); in the functions.php file...

 

also found

 wp_register_script('jquery-ui', get_template_directory_uri() . '/js/jquery-ui-1.8.11.custom.min.js', false, '', true);

in functions.php

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:23 pm

there is probably some other code around those... but yeah, right place...

so can you also post a couple of lines of code from after each of those? 

Avatar
Scott Schwab
Medford, NY
Member
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:30 pm

this is the list... you can see the google link right at the top of the list and the other is the third from the bottom of the list...

//add scripts

function my_jquery_scripts() {

if( !is_admin()){

   wp_deregister_script('jquery');

   wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');

   wp_enqueue_script('jquery');

   wp_register_script('jquery-tools', get_template_directory_uri() . '/js/jquery.tools.min.js', false, '', true);

   wp_enqueue_script('jquery-tools');

   wp_register_script('isotope', get_template_directory_uri() . '/js/jquery.isotope.js', false, '', true);

   wp_enqueue_script('isotope');   

   wp_register_script('jquery-easing', get_template_directory_uri() . '/js/jquery.easing.1.3.js', false, '', true);

   wp_enqueue_script('jquery-easing');  

   wp_register_script('pretty-photo', get_template_directory_uri() . '/js/jquery.prettyPhoto.js', false, '', true);

   wp_enqueue_script('pretty-photo');

   wp_register_script('audio-player', get_template_directory_uri() . '/audio_player/audio-player.js', false, '');

   wp_enqueue_script('audio-player');

   wp_register_script('video-player', get_template_directory_uri() . '/video_player/projekktor.min.js', false, '');

   wp_enqueue_script('video-player');

   wp_register_script('hover-int', get_template_directory_uri() . '/js/problem-with-post-edit-buttonoverIntent.js', false, '', true);

   wp_enqueue_script('hover-int');

   wp_register_script('superfish', get_template_directory_uri() . '/js/superfish.js', false, '', true);

   wp_enqueue_script('superfish');  

   wp_register_script('jquery-mobile-customized', get_template_directory_uri() . '/js/jquery.mobile.customized.min.js', false, '', true);

   wp_enqueue_script('jquery-mobile-customized');

   wp_register_script('camera', get_template_directory_uri() . '/js/camera.min.js', false, '', true);

   wp_enqueue_script('camera');

   wp_register_script('elastislide', get_template_directory_uri() . '/js/jquery.elastislide.js', false, '', true);

   wp_enqueue_script('elastislide');

   wp_register_script('quovolver', get_template_directory_uri() . '/js/jquery.quovolver.js', false, '', true);

   wp_enqueue_script('quovolver');  

   wp_register_script('gmap-api', ("http://maps.google.com/maps/api/js?sensor=false"), false, '', true);

   wp_enqueue_script('gmap-api');  

   wp_register_script('jquery-gmap', get_template_directory_uri() . '/js/jquery.gmap-1.1.0-min.js', false, '', true);

   wp_enqueue_script('jquery-gmap');  

   wp_register_script('jquery-ui', get_template_directory_uri() . '/js/jquery-ui-1.8.11.custom.min.js', false, '', true);

   wp_enqueue_script('jquery-ui');

   wp_register_script('mobile-menu', get_template_directory_uri() . '/js/jquery.mobilemenu.js', false, '', true);

   wp_enqueue_script('mobile-menu');

   wp_register_script('custom', get_template_directory_uri() . '/js/custom.js', false, '', true);

   wp_enqueue_script('custom');

}

}

Avatar
Scott Schwab
Medford, NY
Member
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:34 pm

I hope the post with all that info doesn't cause any problems eek

Awaiting moderation and all... lol

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:35 pm

lol. just wanted 1 or two lines around the ones of interest... but can make this do... wink

just comment out this line of code:

wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');

then replace:

wp_register_script('jquery-ui', get_template_directory_uri() . '/js/jquery-ui-1.8.11.custom.min.js', false, '', true);
wp_enqueue_script('jquery-ui');

with

wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');

then the jquery and jquery ui that comes with WP will be used instead of the conflicting versions

Avatar
Scott Schwab
Medford, NY
Member
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2012 - 10:45 pm

I commented the one line out and replaced the other two lines, saved the functions.php file, refreshed the site and still no luck...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626