PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Date picker stopped working after update

  1. I just updated to the latest release and my date picker stopped working.

    I tried adding this to my functions.php file as per a previous discussion, but nothing changed.

    if (!is_admin()) {
    wp_register_script('jquery-migrate', ("http://code.jquery.com/jquery-migrate-1.1.0.min.js"), false, 'latest', false);
    wp_enqueue_script('jquery-migrate');
    }

    Posted 11 years ago on Wednesday April 24, 2013 | Permalink
  2. you can view the form here:

    http://tahoewildernessadventures.com/services-order-form/

    Posted 11 years ago on Wednesday April 24, 2013 | Permalink
  3. David Peralty

    I just see a Coming Soon page when I browse to that link. Can you please change this so we can see the form?

    Posted 11 years ago on Wednesday April 24, 2013 | Permalink
  4. sign in:

    Username: gravity
    Password: gravityform5565
    http://tahoewildernessadventures.com/wp-login.php

    and then go to the form:
    http://tahoewildernessadventures.com/services-order-form/

    Select "Campground 1" for "Where is your campground reservation?"

    and the dysfunctional date picker will show up.

    Posted 11 years ago on Wednesday April 24, 2013 | Permalink
  5. David Peralty

    Here's the issue -

    <script type='text/javascript' src='http://tahoewildernessadventures.com/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://tahoewildernessadventures.com/wp-content/plugins/gravityforms/js/datepicker.js?ver=1.7'></script>

    You have two scripts trying to control the datepicker field. Can you try commenting out the first one ver=1.9.2 and see if that fixes things for you?

    Posted 11 years ago on Wednesday April 24, 2013 | Permalink
  6. I upgraded today and had a similar issue. Date picker functionality is sort of there. I disabled all of the plugins and reactivated Gravity Forms and it still didn't work. Any thoughts?

    Dom

    http://www.carpenterbus.com/rentals

    Posted 11 years ago on Thursday April 25, 2013 | Permalink
  7. David Peralty

    I see some issues, I see Contact Forms 7 enabled, also can you try the default WordPress theme and see if that works correctly? Might be a theme conflict.

    Posted 11 years ago on Thursday April 25, 2013 | Permalink
  8. David,

    Thanks for the reply. I just disabled Contact Forms 7 & Gravity Forms then renabled only Gravity Forms and it still doesn't work. I've not tried the default WordPress theme. I'm a relative newbie to WordPress and we had another company build our site. If I change it to the default theme and test it then switch it back to the custom theme they built, will every thing work properly?

    I've never swapped between themes, so I'm sorry if it's a stupid question.

    Thanks,
    Dom

    Posted 11 years ago on Friday April 26, 2013 | Permalink
  9. David Peralty

    It should work fine, all settings are saved to the database, and CSS changes are saved to the CSS file. All my best!

    Posted 11 years ago on Friday April 26, 2013 | Permalink
  10. Richard Vav
    Administrator

    It looks like whoever created your form copied all gravity forms styles from version 1.5.2.12 into a custom forms.css that is in your theme folder so while you are testing with a different theme you may need to set Output CSS to Yes on the Gravity Forms General settings page.

    Posted 11 years ago on Friday April 26, 2013 | Permalink
  11. David,

    Thanks. I will have to try that after hours. I think it is likely at the theme level because the form works when I preview it. I will contact the firm who designed it and have them fix it or tell me how to. Thanks.

    Dom

    Posted 11 years ago on Friday April 26, 2013 | Permalink
  12. Hi all,

    I am possibly having the same issue. I have two versions of the datapicker js loading in my footer.

    I'm working on finding a way to comment out the first (as was mentioned above) but I have yet to find it.

    Any advice you might have would be super. The link is: http://comowebsites.net/mochip2/request-an-event/

    Posted 11 years ago on Monday April 29, 2013 | Permalink
  13. I'm using Gravity Forms with Event Calendar Pro if that helps.

    Posted 11 years ago on Monday April 29, 2013 | Permalink
  14. traviscf01
    Member

    My datepicker stopped working as well when I upgraded today. I do have 2 datepicker scripts in the footer as well but I can't see how to get rid of one. I tried to get rid of one and it got rid of both. Everything was working fine before the update. Please help.

    Posted 11 years ago on Tuesday April 30, 2013 | Permalink
  15. I'm having the same issue, The datepicker isnt working and I have two datepicker scripts loading in the footer as well.

    https://www.titlesolutionsinc.com/order-search-packages/

    Posted 11 years ago on Wednesday May 1, 2013 | Permalink
  16. So what is the best way to go about fixing the duplicate calls to the datepicker JS? Should it be commented out? if so where would one find that?

    Posted 11 years ago on Thursday May 2, 2013 | Permalink
  17. Richard Vav
    Administrator

    @mindblossomcreations I am getting a 404 when I try to view your page

    Regards,
    Richard
    --
    Just another member of the community helping out where I can

    Posted 11 years ago on Saturday May 4, 2013 | Permalink
  18. Richard Vav
    Administrator

    @sstruemph Did you resolve your issue, I am only seeing one copy of jquery-ui-datepicker being included on your page, the second datepicker file is actually the Gravity Forms initialisation script for the datepicker field.

    Regards,
    Richard

    Posted 11 years ago on Saturday May 4, 2013 | Permalink
  19. Richard Vav
    Administrator

    @traviscf01 can you include a link to the page in question and what is the other plugin that is also including the datepicker script.

    Regards,
    Richard

    Posted 11 years ago on Saturday May 4, 2013 | Permalink
  20. Thank you for getting back to me! that was an unrelated issue but has been resolved. Any light you could shed would be a huge help!

    Posted 11 years ago on Monday May 6, 2013 | Permalink
  21. Richard Vav
    Administrator

    @mindblossomcreations I can only see one copy of the jQuery UI datepicker script being included on your page, the datapicker.js file from Gravity Forms on the line below is normal and contains the datepicker activation script. Have you tried testing for a theme/plugin conflct by following this advice http://rkt.gs/testing

    Regards,
    Richard

    Posted 11 years ago on Thursday May 9, 2013 | Permalink
  22. I got sidetracked for a few weeks, so I am just coming back to this reply to me:
    "Here's the issue -

    <script type='text/javascript' src='http://tahoewildernessadventures.com/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://tahoewildernessadventures.com/wp-content/plugins/gravityforms/js/datepicker.js?ver=1.7'></script>

    You have two scripts trying to control the datepicker field. Can you try commenting out the first one ver=1.9.2 and see if that fixes things for you?"

    Can you please tell me what file this code is in that I need to comment out?

    Posted 11 years ago on Thursday May 9, 2013 | Permalink
  23. Richard Vav
    Administrator

    @cjbuilt you actually have only one copy of the jQuery UI datepicker being loaded, the second datepicker script coming from gravity forms is the initialisation script and is required.

    Your datepicker is actually working it just isn't visible because it has z-index of -4 which is placing it out of sight behind your page, you can see that by examining the inline styles on the datepicker container that is created

    <div id="ui-datepicker-div" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" style="position: absolute; top: 1064px; left: 636px; z-index: -4;">

    Now compare that with the container for an example form I just created on my local host setup, the z-index is set to 1

    <div id="ui-datepicker-div" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" style="position: absolute; top: 205px; left: 20px; z-index: 1;">

    Now why the z-index is being set to -4 I am not sure but you can add the following css to your stylesheet to counteract the issue, setting the z-index to anything equal to or greater than 1 should work

    #ui-datepicker-div {
        z-index: 1 !important;
    }

    Edit: The jQuery UI datepicker always sets the z-index to 1 greater than the associated field, on line 309 in your css.css file is the following rule which is setting a z-index of -5 so when the jQuery UI datepicker is created it automatically gets a z-index of -4.

    .post_box {
    background: none repeat scroll 0 0 #F1F1F1;
    border: 2px solid #FFFFFF;
    border-radius: 10px 10px 10px 10px;
    font-size: 15px;
    left: 8px;
    line-height: 20px;
    margin: 30px 0;
    min-height: 20em;
    padding: 15px 30px;
    position: relative;
    top: 0;
    width: 920px;
    z-index: -5;
    }

    The CSS I suggested earlier will work but if you prefer you could also change the z-index in the rule above instead.

    Regards,
    Richard
    --
    Just another member of the community helping out where I can

    Posted 11 years ago on Friday May 10, 2013 | Permalink
  24. This might seem like a silly question, but what was it in the latest update that is causing all of the date picker issues suddenly? I spent an hour with my programmer trying to figure out why GF date picker not working on one of my sites and we finally just reinstalled the previous version of GF. I'm getting ready to spend big money on advertising and cannot afford to have my form(s) not working correctly.

    Posted 11 years ago on Tuesday May 14, 2013 | Permalink
  25. Richard Vav
    Administrator

    @searchenginepro in versions prior to 1.7 Gravity Forms included it's own copy of the datepicker ui script, in 1.7 they stopped doing that and opted to use the copy that ships with wordpress instead, which is the recommended method of including jQuery and jQuery UI.

    If you can post a link to a page containing the datepicker you are having problems with the Gravity support team or I will be able assist in troubleshooting your issue.

    It's also worth pointing out that it is better to resolve this issue now because Gravity Forms 1.7 will be required when WordPress 3.6 is released probably later this month (they are at beta3 now) as earlier versions are unlikely to function properly.

    Regards,
    Richard

    Posted 11 years ago on Tuesday May 14, 2013 | Permalink
  26. Richard Vav
    Administrator

    @mindblossomcreations I have taken another look at your form at it seems your issue is similar to @cjbuilt's issue in that your datepicker is working it is just hidden behind your page by your themes CSS. Try adding the following CSS to your theme's stylesheet or wherever you are instructed to place custom CSS.

    #ui-datepicker-div {
    z-index: 3 !important;
    }
    #ui-datepicker-div select {
    display: initial !important;
    margin-bottom: 0 !important;
    }
    #ui-datepicker-div table {
    margin: 0 !important;
    }

    Regards,
    Richard

    Posted 11 years ago on Tuesday May 14, 2013 | Permalink
  27. Thanks a ton, Richard.
    That worked like a charm.

    Posted 11 years ago on Thursday May 16, 2013 | Permalink
  28. Richard Vav
    Administrator

    @cjbuilt you're welcome

    Posted 11 years ago on Thursday May 16, 2013 | Permalink
  29. I'm am having this issue as well. My form is here: https://www.profilemassage.com/us/online-booking/

    I tried adding that code to the stylesheet, but no luck.

    Posted 11 years ago on Friday May 17, 2013 | Permalink
  30. Richard Vav
    Administrator

    @landongw Unfortunately the CSS solution I recommended to others won't work for you as you're issue is likely being caused by the way scripts are being included by your theme. The first step in resolving your issue is updating jQuery, your theme is including the following really old version from Google

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

    jQuery UI which powers the datepicker requires a minimum jQuery version of 1.6+ while Gravity Forms works best when you use the same version that ships with WordPress which as of 3.5.1 is jQuery 1.8.3

    Your theme is also including the full jQuery UI library twice from Google as well, up in the head you have this

    <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js?ver=3.5.1'></script>

    and in your footer you have this

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>

    However a number of plugins are including versions 1.9.2 of some of the individual jQuery UI components from WordPress in the footer

    <script type='text/javascript' src='https://www.profilemassage.com/us/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='https://www.profilemassage.com/us/wp-includes/js/jquery/ui/jquery.ui.accordion.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='https://www.profilemassage.com/us/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2'></script>

    Loading multiple versions of jQuery and jQuery UI is not advisable as it can cause issues such as your datepicker not working, remove the multiple versions, make sure you're using jQuery 1.8.3 and jQuery UI 1.9.2 and then check your datepicker again.

    Regards,
    Richard

    Posted 11 years ago on Friday May 17, 2013 | Permalink
  31. Well I am stumped. I looked in all of those files and none of that code is actually there. So, then I killed all of the plugins--but only one gave me the calendar icon back (no picker).

    Any thoughts on how I would go about making those edits. Or is it time for a new theme?

    Posted 11 years ago on Friday May 17, 2013 | Permalink
  32. Richard Vav
    Administrator

    Can you copy and paste the contents of your themes functions.php header.php and footer.php files seperately to http://www.pastie.org/ and then paste the links here so I can take a look.

    Posted 11 years ago on Friday May 17, 2013 | Permalink
  33. Richard Vav
    Administrator

    in your footer there is this

    <?php get_template_part('includes/scripts'); ?>

    Can you take a look in your theme folder and the /includes/scripts subdirectory and see what's there

    Posted 11 years ago on Friday May 17, 2013 | Permalink
  34. here is the includes/scripts.php
    http://pastie.org/private/xacrhukqw3zsdz6mfqjika

    Posted 11 years ago on Friday May 17, 2013 | Permalink
  35. Ok, I found the jquery ui version line 3 and changed it to 1.9.3 and boom! It works.

    But it would be good to update the jquery as well...

    Thanks Richard.

    Posted 11 years ago on Friday May 17, 2013 | Permalink
  36. Richard Vav
    Administrator

    You're welcome, I would wait until WordPress 3.6 is released before updating jQuery as v1.9 is a major rewrite which removes allot of deprecated functions that are still in use in WordPress 3.5 and number of plugins all of which will need to be updated

    Posted 11 years ago on Saturday May 18, 2013 | Permalink
  37. Richard Vav
    Administrator

    Well I think it's safe for the admins to close this topic now, if anyone needs any further assistance please start a new topic.

    Regards,
    Richard

    Posted 11 years ago on Saturday May 18, 2013 | Permalink
  38. Hi everyone. Hoping this topic isn't closed yet. I've read through this thread and even tried some of the suggestions with no luck. I was wondering if someone could have a look at my link and suggest a solution for my site. Just an FYI that I'm not the most technical person when it comes to this stuff so I apologize.

    http://www.mexicorealestatecondos.com/vacations/rates-and-reservations/

    In the source code I do see to scripts that show a jquery date picker script 1.9.2 as well as the gravity forms 1.7.3 date picker script. Any chance there is a conflict here?

    Before the Gravity Forms 1.7.3 update I had no issues.

    Thanks.

    Posted 11 years ago on Wednesday May 22, 2013 | Permalink
  39. Richard Vav
    Administrator

    Hi Cary,

    I believe you issue is being caused by your theme loading a very old version of jQuery from the Google CDN, heres the code I found on line 53 by right-clicking on your page and viewing the source code

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

    For WordPress 3.5.1 the recommended version of jQuery to use is 1.8.3, the same version which ships with WordPress. To fix this can you copy and paste the contents of your theme's functions.php file to http://www.pastie.org/ and then paste the link here, I will take a look at how the theme author is including jQuery and then walk you through a fix.

    Regards,
    Richard

    Posted 11 years ago on Wednesday May 22, 2013 | Permalink
  40. You da man Richard!! That was it. I found the jquery script in my script.php file and changed it from 1.4.4 to 1.8.3 and all is right in the world again. I appreciate your help on this.

    Thanks a lot!

    Posted 11 years ago on Thursday May 23, 2013 | Permalink
  41. Richard Vav
    Administrator

    You're welcome

    Posted 11 years ago on Thursday May 23, 2013 | Permalink
  42. choong.michael88
    Member

    Hi Richard,
    I was wondering if you could help me. The Date of birth on my form isn't working - the date picker just won't show up. FYI, I've upgraded my javascript to 1.9.1 but no luck. My site can be found at https://www.gardenschool.edu.my/test-3/

    Many thanks in advance for your help.

    Michael

    Posted 11 years ago on Friday June 21, 2013 | Permalink
  43. David Peralty

    You have two other links to old versions of JQuery in your theme. One in your header - https://www.gardenschool.edu.my/wp-content/plugins/wp-lightbox/js/jquery.min.js?ver=1.5.2 and one in your footer - <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js">

    You also have Contact Form 7 JS on your page that can cause issues with the datepicker. You will want to go through and fix these issues please.

    Posted 11 years ago on Friday June 21, 2013 | Permalink
  44. Richard Vav
    Administrator

    Hi Michael,

    As David points out you have multiple versions of jQuery being loaded by both your theme and at least one plugin which is bad for multiple reasons, if you need any help sorting them out let me know.

    Regards,
    Richard

    Posted 11 years ago on Friday June 21, 2013 | Permalink
  45. rgenieters
    Member

    Hi Richard,

    Could you also help me out maybe? I tried several things that are listed in te discussion here above.. but no luck yet.. To see one of the forms select on the top radio option on this page http://bit.ly/14NS7k1

    Hope you can help me out!

    Ren

    Posted 11 years ago on Friday June 21, 2013 | Permalink
  46. Richard Vav
    Administrator

    Hi Ren,

    You have the following javascript error which I believe may be preventing the jQuery UI datepicker from running.

    Uncaught TypeError: Cannot read property 'fadeIn' of undefined jquery.ui.datepicker.min.js:5

    I suspect the reason is that jQuery UI Effects is being loaded incorrectly by the createit jquery drilldown menu plugin up in the header

    <script type='text/javascript' src='http://www.notarissenwaddinxveen.nl/ontwikkel/wp-content/plugins/createit-jquery-drilldown-menu/js/jquery-ui-effects.js?ver=3.5.1'></script>

    before jQuery UI Core which is correctly being loaded from wordpress down in the footer

    <script type='text/javascript' src='http://www.notarissenwaddinxveen.nl/ontwikkel/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2'></script>

    To try and confirm if this is the issue can you try disabling that plugin and then check your page again.

    Posted 11 years ago on Friday June 21, 2013 | Permalink
  47. rgenieters
    Member

    Hi Richard,

    You are correct - when I disabled that plugin the date picker worked. So the jquery-ui-effects.js should be loaded in the footer?

    So how do I fix this problem? Could you get me started with the solution?

    Thnx!

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  48. Richard Vav
    Administrator

    Hi Ren,

    Can you take a look at that plugins .php files and in one of them you should find a line that includes the jquery-ui-effects.js file it may begin with wp_enqueue_script when you find it can you copy the function that line is part of so I can take a look, I will then be able to provide you with a function you can place in your theme's functions.php file that will sort it out.

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  49. choong.michael88
    Member

    Hi David and Richard,

    Thank you very much for getting back to me. I'm using the Evolution Lightbox 1.4.5 and I'm not sure how to upgrade the old jquery 1.5.2 to 1.9.1. Also, I couldn't find the https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js any where near my footer.php. Could you please help?

    FYI, for some reason the date picker work ok on my beta site (http://goo.gl/J2veU) but not on this live site(http://goo.gl/JdbvY). The beta site and the live site are identical.

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  50. Richard Vav
    Administrator

    Hi Michael,

    Can you copy the contents of the lightbox plugins .php file and your theme's header.php, functions.php and footer.php files separately to Pastie or PasteBin and post the links here so I can take a look.

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  51. rgenieters
    Member

    Hi Richard,

    Thanks again for the quick reply. So i've checked the plugins dir and found that in te creatit-jquery-drilldown-menu plugin it has the jquery-ui-effects implementation. This is the line that code that is used to call it:

    function header() {
    		// Scripts
    		wp_enqueue_script('jquery');
    		wp_enqueue_script('jquery-ui-effects', self::get_plugin_directory() . '/js/jquery-ui-effects.js', array('jquery'));
    		wp_enqueue_script('ctDrillDown', self::get_plugin_directory() . '/js/ctDrillDown.min.js', array('jquery'));
    	}

    Is that what you asked for?

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  52. Richard Vav
    Administrator

    Ren,

    That looks like it, can you try adding the following to your theme's functions.php file and then check your page to see if it helps.

    //fix how jquery-ui-effects.js is loaded
    add_action('wp_enqueue_scripts','fix-ui-effects');
    function fix-ui-effects(){
        if(wp_script_is('jquery-ui-effects',$list='queue')){
            wp_deregister_script('jquery-ui-effects');
            wp_enqueue_script('jquery-effects-core',array('jquery','jquery-ui-core'),false,true);
        }
    }
    Posted 11 years ago on Monday June 24, 2013 | Permalink
  53. choong.michael88
    Member

    Hi Richard,

    As requested, please find below the link to PasteBin:

    Lightbox php: http://pastebin.com/raw.php?i=XMf2dvFa
    Footer php: http://pastebin.com/raw.php?i=TdJvVHYm

    Many thanks in advance for your help.

    Cheers,
    Michael

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  54. Richard Vav
    Administrator

    Michael,

    Can you copy the contents of your theme's functions.php file, so I can take a look at that.

    It looks like there is an updated version of the Lightbox Evolution plugin available, version 1.7, rather than editing the plugin file to update jQuery I would recommend you install the latest version http://codecanyon.net/item/lightbox-evolution-for-wordpress/119478

    There is also an updated version of Nivo Slider available, v3.2, you are running v2.6, since your version it looks like there have been a number of bug fixes and improvements including compatibility with the latest version of jQuery http://dev7studios.com/nivo-slider/#/documentation

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  55. choong.michael88
    Member

    Hi Richard,

    As requested, here is the function php - http://pastebin.com/raw.php?i=62DZEfm9

    FYI, even if i tried to disable the lightbox evolution - the date picker still doesn't work. sigh..

    Michael

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  56. Richard Vav
    Administrator

    Michael,

    Well it's not in there, so it must just be the plugins, if you disable both lightbox evolution and nivo slider does that make any difference. If not what other plugins are you running?

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  57. choong.michael88
    Member

    Richard,

    You're absolutely right! When i disabled both plugin it works ok. Funny things is the date picker works fine on my production website: http://www.gardeninternationalschool.com/test-3/ - same content same set of plugins.

    I can't disable these two plugins as we need it for the site to function properly. Any idea how we can fix this?

    Michael

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  58. Richard Vav
    Administrator

    I would recommend updating those plugins to their most recent versions if at all possible, if that's not possible then it will mean editing the plugin files.

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  59. choong.michael88
    Member

    Hi Richard,

    Thanks for getting back to me. I just realised, my production site is still using grafity form 1.6.12 and the date picker works fine. On my live site, i've recently updated it 1.7.5 and it's not working. When I try to downgrade my live site back to 1.6.12, it works ok.

    I was wondering how should I fix this problem? Please find below the two problematic plugin files:
    Nivoslider: http://tinyurl.com/q7ew7mk
    Lightbox: http://tinyurl.com/ndluztq

    I would really appreciate it if you could help me point me out where should I edit the plugin. Many thanks in advance for your help.

    Regards,
    Michael

    Posted 11 years ago on Wednesday June 26, 2013 | Permalink
  60. Richard Vav
    Administrator

    Hi Michael,

    The best way would be to update to the latest versions of those plugins but if you can't here are the changes you will have to make to the plugin files so they will load jQuery correctly. For wp-lightbox in plugin-lightbox.php can you change the following

    function lbe_myplugin_lightbox_head()
    {
      global $lbe_panel;
      wp_deregister_script('jquery');
      wp_register_script('jquery', $lbe_panel->path().'/js/jquery.min.js', false, '1.5.2');

    to this, I have commented out the old jquery lines and added in the correct line

    function lbe_myplugin_lightbox_head()
    {
      global $lbe_panel;
      //wp_deregister_script('jquery');
      //wp_register_script('jquery', $lbe_panel->path().'/js/jquery.min.js', false, '1.5.2');
        wp_enqueue_script('jquery');

    For nivo-slider-for-wordpress in nivoslider4wp-show.php can you change the following

    function js_NivoSlider(){
    	?>
    		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>

    to this

    function js_NivoSlider(){
            wp_enqueue_script('jquery');
    		//<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    	?>

    Can you also copy the contents of your theme's header.php file as I suspect there is a change required in there as well.

    Regards,
    Richard

    Posted 11 years ago on Wednesday June 26, 2013 | Permalink
  61. choong.michael88
    Member

    Hi Richard,

    Here is the header.php: http://pastebin.com/raw.php?i=SZHxpQ70
    Many thanks for your help.

    Cheers,
    Michael

    Posted 11 years ago on Wednesday June 26, 2013 | Permalink
  62. choong.michael88
    Member

    Hi Richard,

    It seems the Lightbox not happy with the below line of codes:

    function lbe_myplugin_lightbox_head()
    {
    global $lbe_panel;
    //wp_deregister_script('jquery');
    //wp_register_script('jquery', $lbe_panel->path().'/js/jquery.min.js', false, '1.5.2');
    wp_enqueue_script('jquery');

    The scrolling ticker just won't show up. Would you be able to help?

    Regards,
    Michael

    Posted 11 years ago on Wednesday June 26, 2013 | Permalink
  63. Richard Vav
    Administrator

    Michael,

    In your theme's header.php you should the following

    <script src="<?php bloginfo('template_url'); ?>/js/jquery1.9.1.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_url'); ?>/js/global.js" type="text/javascript"></script>
    <?php wp_head(); ?>

    can you change it to the following

    <?php
    wp_enqueue_script('jquery');
    wp_head(); ?>
    <script>var $ = jQuery.noConflict();</script>
    <script src="<?php bloginfo('template_url'); ?>/js/global.js" type="text/javascript"></script>

    and then can you provide a link to a page where I can see the ticker not working.

    Posted 11 years ago on Wednesday June 26, 2013 | Permalink
  64. David Peralty

    At this point, every Date Picker not working issue has been a JavaScript issue, and all those coming to this thread have plenty of information and resources to look through if they require help. Anyone still having this issue that isn't resolved by going through the information in this thread can post a new topic so we can better assist troubleshooting.

    Posted 11 years ago on Wednesday June 26, 2013 | Permalink

This topic has been resolved and has been closed to new replies.