Support » Plugin: Events Manager » Error with time picker

  • Resolved marcosdipaolo

    (@marcosdipaolo)


    I’m trying to get working the event submission form. Any ideas with this?

    Uncaught TypeError: wrap.find(...).timePicker is not a function
    events-manager.js?ver=5.7:790 
        at em_setup_timepicker (events-manager.js?ver=5.7:790)
        at HTMLDocument.<anonymous> (events-manager.js?ver=5.7:8)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at Function.ready (jquery.js?ver=1.12.4:2)
        at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    WP v.4.8.1 and EM v.5.7.3. Using MAMP.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter marcosdipaolo

    (@marcosdipaolo)

    Hi guys, need more info? anything to say?
    I get this error and the time and date picker are not working neither the Visual editor.

    Hope you give me somethin coz i have no idea what to do at this point and i need this plugin.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    just to narrow down the problem and help us debug the issue is it possible to try the following temporarily:

    – deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the default theme to rule out any theme-specific problems

    Thread Starter marcosdipaolo

    (@marcosdipaolo)

    Hi Angelo
    I already tried de-activating all plugins.
    What i haven’t tried yet is to change to default theme which i just did.
    TimePicker error is gone (another comes to the surface related to Google Maps key missing [or somthin] but it doesn’t look as important as the timpepicker).

    So now that we know is a theme related problem where should I start looking?

    Thread Starter marcosdipaolo

    (@marcosdipaolo)

    events-manager.js?ver=5.7:790 Uncaught TypeError: wrap.find(…).timePicker is not a function
    at em_setup_timepicker (events-manager.js?ver=5.7:790)
    at HTMLDocument.<anonymous> (events-manager.js?ver=5.7:8)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)
    em_setup_timepicker @ events-manager.js?ver=5.7:790
    (anonymous) @ events-manager.js?ver=5.7:8
    i @ jquery.js?ver=1.12.4:2
    fireWith @ jquery.js?ver=1.12.4:2
    ready @ jquery.js?ver=1.12.4:2
    K @ jquery.js?ver=1.12.4:2

    the one above is the complete error:
    I tried removing jQuery 3.2.1 from wp_enqueue_script at my functions php and voila. Date picker and time picker works but my entire site doesn’t.
    I tried different versions of jQuery without success.
    I see at the console:
    [JQMIGRATE: Migrate is installed, version 1.4.1]
    (which i don’t know if that has anything to do with it).

    Visual/Html editor still does not work in any of the situations.

    Also tried this

    Further edit:
    I removed https://code.jquery.com/jquery-3.2.1.min.js from functions.php and added it to the header just with the script tag and error dissapeared (not sure if that is a definitive solution).

    Visual editor just doesn’t work, had to disable it …???
    The only remaining problem at this point and with this temporary solution is the missing google map api key, but that also happens at the default theme.

    Plugin Support caimin_nwl

    (@caimin_nwl)

    Sounds like you need to add a Google Maps API key. This should help:
    http://wp-events-plugin.com/documentation/google-maps/api-key/

    Thread Starter marcosdipaolo

    (@marcosdipaolo)

    Thanks, I already did and worked.
    But my problems are:

    • In order to make the timepicker work I had to remove the jquery wp_enqueue_script from functions.php and add it to the header.php file with the script tag.
    • the visual editor, the one which has the button to add media and everything, does not work. I had to configure the plugin to remove it. It is theme related since it worked with the default theme. But I don’t know what’s the problem.
    Plugin Support caimin_nwl

    (@caimin_nwl)

    These sounds like things not related to Events Manager, you may need to ask your theme developer for help since that’s where the issues seem to come from.

    Thread Starter marcosdipaolo

    (@marcosdipaolo)

    I’m the theme developer, i asked myself many times but i don’t dare to give myself an answer. >:D

    Plugin Support angelo_nwl

    (@angelo_nwl)

    this maybe an old article but hopefully you can get additional info – http://msyk.es/blog/prevent-jquery-wordpress-theme/

    Thread Starter marcosdipaolo

    (@marcosdipaolo)

    Ok, thanks angelo_nwl for the jQuery article, it helped cleaning things up.
    It’ll sound crazy but after a loooong time I solved the visual editor issue:
    If someone ask you sometime why the Visual editor doesn’t work in the event submission form, check if his footer.php has the wp_footer(); function before the </body> closing tag, because if you accidentally miss it the visual editor won’t work (together with other stuff like the playlist).

    • This reply was modified 4 years, 11 months ago by marcosdipaolo.
    • This reply was modified 4 years, 11 months ago by marcosdipaolo.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error with time picker’ is closed to new replies.