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
Problems after upgrading to v5
Avatar
investor
Member
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 8:18 am

OK, I think I need to fix this jquery issue once and for all. Now I cannot write replies or open topic. Wont let me type in the editor. 

Can you guys please explain what I must do to fix this?

Thanks - really appreciate your help.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 27, 2012 - 9:38 am

Well we can but try! But - you will have to do some hunting.

Start with the WP Theme. Look in the header template but - more likely will be the functions.php file. You are looking for:

(1) a reference to 'ajax.googleapis.com' and -

(2) a reference to 'jquery-ui-1.8.5.custom.min.js'.

See if you can copy and paste the code where you find these - remember to use the code button on the toolbar though - paste the code, highlight it and then select the php from the code dropdown.

andy-signature.png
YELLOW
SWORDFISH
Avatar
investor
Member
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 10:12 am

I searched the theme support forum for similar problems and fould a way to revert back to a previous version of jQuery. Replaced 

wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
with
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'); 
in functions.php
 
(sry did not understand what you meant by code button..?)
 
I dont know if this was what you were thinking, but it seems to have fixed the topic problem. Still cannot add a reply however..
 
This line is also located in functions.php:
wp_register_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');
Avatar
investor
Member
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 10:18 am

Edit: topic problem still exists 🙁

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 27, 2012 - 1:27 pm

No that wont change anything.

Let's take these one at a time starting with the first one.

Can I assume there was a line before that starting with 'wp_deregister_script' and ine after it starting with wp_enqueue_script'? If so can you please copy all three lines and post themn to me.

Is this the same for the second one as well?

andy-signature.png
YELLOW
SWORDFISH
Avatar
investor
Member
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 1:44 pm

This is how it looks:

function tz_register_js() {
if (!is_admin()) {
// comment out the next two lines to load the local copy of jQuery
wp_deregister_script('jquery');
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'); /* 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'); */
wp_register_script('validation', 'http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js', 'jquery');
wp_register_script('coda-slider', get_bloginfo('template_directory') . '/js/jquery.coda-slider-2.0.js', 'jquery');
wp_register_script('jquery-easing', get_bloginfo('template_directory') . '/js/jquery.easing.1.3.js', 'jquery');
wp_register_script('poshytip', get_bloginfo('template_directory') . '/js/jquery.poshytip.min.js', 'jquery');
wp_register_script('superfish', get_template_directory_uri() . '/js/superfish.js', 'jquery');
wp_register_script('tabbed', get_template_directory_uri().'/js/jquery.tabbed-widget.js', array('jquery-ui-tabs'));
wp_register_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');

wp_enqueue_script('jquery');
wp_enqueue_script('coda-slider');
wp_enqueue_script('poshytip');
//wp_enqueue_script('jquery-easing');
wp_enqueue_script('tabbed');
wp_enqueue_script('jquery-ui-custom');
wp_enqueue_script('superfish');
wp_enqueue_script('validation');
}

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 27, 2012 - 1:56 pm

Try changing that lot for this lot:

function tz_register_js() {
if (!is_admin()) {
//     comment out the next two lines to load the local copy of jQuery
//    wp_deregister_script('jquery');
//    wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'); /* 'http://ajax.googleapis.com/aja…..ery.min.js'); */
    wp_register_script('validation', 'http://ajax.microsoft.com/ajax…..n.js', 'jquery');
    wp_register_script('coda-slider', get_bloginfo('template_directory') . '/js/jquery.coda-slider-2.0.js', 'jquery');
    wp_register_script('jquery-easing', get_bloginfo('template_directory') . '/js/jquery.easing.1.3.js', 'jquery');
    wp_register_script('poshytip', get_bloginfo('template_directory') . '/js/jquery.poshytip.min.js', 'jquery');
    wp_register_script('superfish', get_template_directory_uri() . '/js/superfish.js', 'jquery');
    wp_register_script('tabbed', get_template_directory_uri().'/js/jquery.tabbed-widget.js', array('jquery-ui-tabs'));
//    wp_register_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');

    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-ui-core');
    wp_enqueue_script('coda-slider');
    wp_enqueue_script('poshytip');
//    wp_enqueue_script('jquery-easing');
    wp_enqueue_script('tabbed');
//    wp_enqueue_script('jquery-ui-custom');
    wp_enqueue_script('superfish');
    wp_enqueue_script('validation');
}

Note the changes carefully. Some lines are commented out. Also in the second block the second line is new. Giive that a try. Empty your browser cache before you do by the way

andy-signature.png
YELLOW
SWORDFISH
Avatar
investor
Member
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 2:21 pm

Does not seem to work. The slider on homepage stopped working, and the editor does not appear when I try to open a new topic or reply.

Avatar
investor
Member
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 2:24 pm

Edit: topics and reply works now! but slider still not working..

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 27, 2012 - 2:48 pm

Try uncommenting this line:

//wp_enqueue_script('jquery-easing');

again - refresh browser cache before trying again. And if all falls part comment it out again!

You're close now - we'll get this sucker working!

andy-signature.png
YELLOW
SWORDFISH
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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10118
Posts: 79603