Home › Forums › Calendar Products › Events Calendar PRO › JavaScript enqueue conflict related to jquery.dataTables.js
- This topic has 8 replies, 2 voices, and was last updated 8 years, 7 months ago by
wiscweb.
-
AuthorPosts
-
August 29, 2017 at 1:59 pm #1342046
wiscweb
ParticipantPlugin 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.
August 30, 2017 at 12:51 pm #1342650Victor
MemberHi 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,
VictorSeptember 8, 2017 at 6:32 am #1346555wiscweb
ParticipantHi 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
September 8, 2017 at 7:49 am #1346601wiscweb
ParticipantVictor,
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
September 8, 2017 at 6:00 pm #1346909Victor
MemberHi 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,
VictorSeptember 11, 2017 at 10:00 am #1347577wiscweb
ParticipantThis reply is private.
September 11, 2017 at 1:15 pm #1347694Victor
MemberHi 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,
VictorOctober 3, 2017 at 9:36 am #1358406Support Droid
KeymasterHey 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 -
This topic was modified 8 years, 8 months ago by
-
AuthorPosts
- The topic ‘JavaScript enqueue conflict related to jquery.dataTables.js’ is closed to new replies.
