Javascript Error Editing Event

Home Forums Calendar Products Events Calendar PRO Javascript Error Editing Event

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1354309
    Gordon Bain
    Participant

    When I try and edit an event within the WordPress Admin I’m getting the following error message. This error stops any of the Javascript UI elements from loading.

    events-admin.js?ver=4.5.13:94 Uncaught TypeError: $item.timepicker is not a function
    at HTMLInputElement.<anonymous> (events-admin.js?ver=4.5.13:94)
    at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-color,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-position,jquery-ui-menu,&load[]=wp-a11y,jquery-ui-autocomplete,plupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker&ver=4.8.2:2)
    at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-color,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-position,jquery-ui-menu,&load[]=wp-a11y,jquery-ui-autocomplete,plupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker&ver=4.8.2:2)
    at Object.obj.setup_timepickers (events-admin.js?ver=4.5.13:71)
    at HTMLTableCellElement.obj.container (events-admin.js?ver=4.5.13:46)
    at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-color,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-position,jquery-ui-menu,&load[]=wp-a11y,jquery-ui-autocomplete,plupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker&ver=4.8.2:2)
    at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-color,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-position,jquery-ui-menu,&load[]=wp-a11y,jquery-ui-autocomplete,plupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker&ver=4.8.2:2)
    at HTMLDocument.obj.init (events-admin.js?ver=4.5.13:63)
    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-color,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-position,jquery-ui-menu,&load[]=wp-a11y,jquery-ui-autocomplete,plupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker&ver=4.8.2:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-color,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-position,jquery-ui-menu,&load[]=wp-a11y,jquery-ui-autocomplete,plupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker&ver=4.8.2:2)

    #1355196
    Andras
    Keymaster

    Hello Gordon,

    Thanks for using our plugins and welcome to the forums!

    I’m sorry you are experiencing this issue. It looks like there might be a conflict with something.

    As a first step I’d like to ask you to go through our conflict testing guide and check if that brings anything to the surface.

    Let me know and we’ll continue from there.

    Cheers,
    Andras

    #1355409
    Gordon Bain
    Participant

    This is not really possible. Firstly this is a live site that was working until recent Event Calendar updates.

    Secondly this is a WordPress Multi site install so we have network activated plugins.

    Also this appears to have been on your known issues list for about 6 weeks.

    Very frustrating.

    #1356489
    Barry
    Member

    Hi Gordon,

    I understand it’s frustrating – and we want to help you.

    It’s possible it was removed recently, but I’m not sure I can identify this bug on our known issues list. Here’s what I can tell you, though: the majority of our users aren’t experiencing the problem you have described and I’m unable to replicate it myself, either on a regular installation or within a multisite network. As I’m sure you can appreciate, that makes it difficult for us to assist you and it points to the existence of a conflict somewhere along the line.

    How about this: let’s ignore the multisite angle for the time being. If you install a new WordPress site – it can be as simple as a sub-directory install such as example.com/test (most CPanel type hosting environments make setting this up pretty easy) – are you able to replicate the same thing using only our plugins?

    Assuming for the moment you cannot, start adding the same plugins and the same theme that you have on your live site. Do you find one of those trigger the problem? If so, pause and let us know!

    Approaching things this way may help to identify the component that is triggering the conflict and it will avoid any disruption on your live site 🙂

    Are you able to give that a shot?

    #1360197
    Gordon Bain
    Participant

    OK, I’m determined to get to the bottom of this. Firstly I thought the known issue titled ‘Fatal Error with the Customizer for Some Users of Events Calendar Pro’ was the same issue. Perhaps it’s not.

    We have a fresh install of WordPress and I’ve activated the Events Calendar + Pro and Event Tickets + Pro. No errors.

    I then enabled the same theme. Still no errors.

    I then worked my way through the rest of the plugins the site uses until they both have the same theme and plugins. Still no errors.

    The original site still reports a JS error. But the new website does not. Any ideas what next?

    Here is the error… it’s got to be something to do with a JQuery conflict. It’s just finding it.

    Uncaught TypeError: $item.timepicker is not a function
    at HTMLInputElement.<anonymous> (events-admin.js:94)
    at Function.each (load-scripts.php:2)
    at a.fn.init.each (load-scripts.php:2)
    at Object.obj.setup_timepickers (events-admin.js:71)
    at HTMLTableCellElement.obj.container (events-admin.js:46)
    at Function.each (load-scripts.php:2)
    at a.fn.init.each (load-scripts.php:2)
    at HTMLDocument.obj.init (events-admin.js:63)
    at i (load-scripts.php:2)
    at Object.fireWith [as resolveWith] (load-scripts.php:2)

    I could provide admin access if required?

    #1360558
    Andras
    Keymaster

    Hi Gordon,

    Thanks for going through all those steps. I’m happy to hear that on the test site all works fine.

    That eliminates a lot.

    I see that you have some MultiSite plugins as well. Do you have those installed too?

    I recently had a case where the Multisite Domain Mapping plugin was causing some issues. I directed the user to this site to as an alternative solution and that fixed it.

    One more possibility is having some customizations in your theme’s functions.php file on your live site. Did you take those into consideration as well?

    Check those and let me know.

    Andras

    #1361035
    Gordon Bain
    Participant

    OK, we are absolutely getting somewhere.

    Based on your feedback I took the problem website offline by deleting the entry within the domain mapping plugin. I then visited the Events Calendar plugin and this was working as expected.

    I then followed the guide you sent across that uses the native method for mapping the domain name. This worked perfectly instead of the domain mapping plugin and now the problems within the Events Calendar have corrected themselves.

    We have been using that functionality long before WordPress supported this and never came across any notes about this now being supported.

    Great news though.

    We have a number of sites using the Events Calendar that I’ll now have to check to ensure this is working correctly.

    #1361254
    Andras
    Keymaster

    Hi Gordon,

    Happy to hear that things are working out!

    Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.

    Good luck with your project!

    Cheers,
    Andras

    PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
    https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
    https://wordpress.org/support/view/plugin-reviews/event-tickets/

    PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

     

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Javascript Error Editing Event’ is closed to new replies.