JavaScript enqueue conflict related to jquery.dataTables.js

Home Forums Calendar Products Events Calendar PRO JavaScript enqueue conflict related to jquery.dataTables.js

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1342046
    wiscweb
    Participant

    Plugin Version: 4.5.9
    Tested on WordPress Versions: 4.7.5, 4.8.0, 4.8.1

    * The events calendar plugin tries to load on every wordpress page, which is causing conflicts with other plugins we have (specifically wpDataTables).
    * You’re using a common javascript enqueue handle, “data tables”, that’s being called by other plugins. This the following code that we think is causing the problem: 


    wp_register_script('datatables',WDT_JS_PATH.'jquery-datatables/jquery.dataTables.min.js',array('jquery')); wp_enqueue_script('datatables'); }

    * There’s also conflict between WPDataTables and the-event-calendar on line 172 of the-event-calendar/common/src/Tribe/main.php:

    

array( 'datatables', 'vendor/datatables/media/js/jquery.dataTables.js', array( 'jquery' ) );


    * Do you have a hook available/or any other solution that will help us avoid this conflict?

    • This topic was modified 8 years, 8 months ago by wiscweb.
    #1342650
    Victor
    Member

    Hi Travis!

    Thanks for reaching out to us to report this.

    Could you please let us know the pages where you are experiencing the conflicts in? Let us know

    Also, what could you please share with us your system info by following this guide > https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    With that info we’ll run some tests on our end to see if we can come up with a workaround for the issue.

    Thanks,
    Victor

    #1346555
    wiscweb
    Participant

    Hi Victor,

    Sorry the delayed response here – I didn’t see a notification email come through. Here is one of the sites that’s having the issue on the following page: https://wempec.wisc.edu/wempec-alumni-2/ — the data table doesn’t show on the page, even though we have the correct shortcode. I’ve attached a screenshot of the console errors here as well. I’ve also shared the system data with you.

    Thanks

    • This reply was modified 8 years, 7 months ago by wiscweb. Reason: mispelling
    #1346601
    wiscweb
    Participant

    Victor,

    I also forgot to add that this page (on the same site) is an example of the JavaScript not working: https://wempec.wisc.edu/wempec-alumni/. If it where, it would look like this.

    • This reply was modified 8 years, 7 months ago by wiscweb. Reason: add link to screenshot
    #1346909
    Victor
    Member

    Hi Travis!

    Thanks for coming back with those links.

    I will reach out to the team about this issue to see if we can reproduce and find the source of the problem. I’ll get back to you as soon possible.

    It seems I’m not being able to fetch your sys info. Could you please copy and paste it in a private reply?

    Please hang in there while we have a look at this.

    Thanks,
    Victor

    #1347577
    wiscweb
    Participant

    This reply is private.

    #1347694
    Victor
    Member

    Hi Travis!

    Thanks for your patience with this.

    I made a few tests in my local installation but could not reproduce this issue.

    In the link you shared I can’t see the console errors you sent and I see the datatable working fine. Just to confirm, did you manage to solve this? Please let us know about it.

    Thanks,
    Victor

    #1358406
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘JavaScript enqueue conflict related to jquery.dataTables.js’ is closed to new replies.