WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Events Calendar] Date Picker Error in Admin

[Plugin: Events Calendar] Date Picker Error in Admin

  • jennygold
    Member

    @jennygold

    I’m testing the upgrade to 6.6-beta running WordPress 2.8.4, and the datepicker is not working on this page: wp-admin/admin.php?page=events-calendar, where the events are created. I’m getting a jquery error in Firebug “$(“#EC_start_clockpick”).clockpick is not a function” and it seems to be due to jquery not being called in my WordPress admin pages. Is this a problem with WordPress or the plugin?

    http://wordpress.org/extend/plugins/events-calendar/

Viewing 7 replies - 1 through 7 (of 7 total)
  • jennygold
    Member

    @jennygold

    The error was due to a broken link in events-calendar.php.

    Line 211: wp_enqueue_script(‘jqueryclockpicker’, ‘/wp-content/plugins/events-calendar/js/jquery.clockpick.1.2.6.js’, array(‘jquery’), ‘1.2.6’);

    The clockpick file in events-calendar/js is named jquery.clockpick.min.js not jquery.clockpick.1.2.6.js.

    Unfortunately my datepicker and timepicker are still not functioning.

    Steve
    Participant

    @stevielovegun

    I’m having the same issue and also think it’s related to javascript calls. Further info…

    • on adding events I don’t get the datepicker icon or functionality, do get the time icon but it doesn’t work
    • on editing existing events both work fine
    andrewtf
    Member

    @andrewtf

    to get the datepicker to work:

    line 176 in ec_managementjs.class.php
    DELETE – $this->calendarjs();

    after line 233 in ec_management.class.php

    ADD – $js->calendarjs();

    clockpicker still broken after this little fix though

    andrewtf
    Member

    @andrewtf

    you can get clockpick to work by getting the latest version of it @
    http://www.jnathanson.com/index.cfm?page=jquery/clockpick/ClockPick#download

    and set military to true in ec_managementjs.class.php on lines ~226 and ~234

    Jen Baumann
    Member

    @dreamwhisper

    I’m a bit confused as my datepicker is not working, but those line numbers don’t seem to correspond to my files. 6.6-beta running WordPress 2.8.4

    Lenny
    Member

    @lbsources

    hey

    andrewtf
    i installed the cloclpick but cant edit the lines
    coz they are different

    please specify the version over which these changes will occur

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Events Calendar] Date Picker Error in Admin’ is closed to new replies.