Home › Forums › Calendar Products › Events Calendar PRO › Select2 Issue
- This topic has 9 replies, 2 voices, and was last updated 7 years, 8 months ago by
provbusnews.
-
AuthorPosts
-
July 27, 2018 at 9:54 am #1584845
provbusnews
ParticipantWe have Event Calendar Pro and Event Tickets and Community events, we can no longer create venues or organizers due to Select2 issue. First there was a 404 error in the console looking for /wp-content/plugins/the-events-calendar/vendor/select2/select2.js That file did not exist so I thought there might have been an issue on my end so I completely deleted all EventCalendar plugins and reinstalled from scratch with fresh files downloaded from My Account area. The error still persisted. I then downloaded Select2 and manually created the directory and file. That got rid of the 404 but I now have
Uncaught TypeError: Cannot read property ‘apply’ of undefined
at HTMLSelectElement.<anonymous> (select2.js?ver=4.6.20.1:6519)
at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,postbox,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.7:2)
at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,postbox,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.7:2)
at a.fn.init.$.fn.select2 (select2.js?ver=4.6.20.1:6509)
at Object.t.element (dropdowns.min.js?ver=4.7.17:1)
at HTMLSelectElement.<anonymous> (dropdowns.min.js?ver=4.7.17:1)
at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,postbox,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.7:2)
at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,postbox,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.7:2)
at Object.t.dropdown (dropdowns.min.js?ver=4.7.17:1)
at a.fn.init.e.fn.tribe_dropdowns (dropdowns.min.js?ver=4.7.17:1)It seems like with every new version of Events Calendar things keep breaking. Is there any assistance you can provide?
July 30, 2018 at 9:40 am #1585964Sky
KeymasterHi there,
Thanks for reaching out. I’m sorry to hear that you’re having issues with your site. I will try to help you get this sorted.
We’ve seen an uptick in issues related to the Select2 javascript library lately. The issue is related to a difference in the version of Select2 that our plugins use vs the version that other plugins are loading.
Here is a code snippet that will only load the older version on Events related admin pages. You can just add this to your child theme’s functions.php or to a functionality plugin.
https://gist.github.com/skyshab/9572d58d6272dd1ec86b1fd8b587e1d2
Note that generally fixes issues on other plugins pages. If you are using plugins that try to implement Select2 on your events pages, you may still have problems due to the conflicting versions.
Let me know if this helps!
Thanks,
SkyJuly 30, 2018 at 10:15 am #1586017provbusnews
ParticipantI actually already have that code in there from looking through forums, and it does not help at all since the error I am having is on the Create and Edit Event page.
July 31, 2018 at 8:27 am #1586687Sky
KeymasterHi again,
It is possible you are experiencing a different issue with Select2.
Do you still see this problem if you disable all other plugins and switch to the Twenty Seventeen theme?
For more information on this troubleshooting process, please check out this article: https://theeventscalendar.com/knowledgebase/testing-for-conflicts/
If things work correctly in this configuration, it will help to figure out which plugin is having a conflict. If you enable plugins one at a time, which one causes the issue to show up?
Let me know the results of that process.
Thanks,
SkyJuly 31, 2018 at 8:55 am #1586718provbusnews
ParticipantSo I narrowed it down to the Event Tickets plugin Version 4.7.5.1 | By Modern Tribe, Inc. when id DISABLE that plugin, the Select2 error goes away and everything works correctly.
August 1, 2018 at 8:41 am #1587577Sky
KeymasterHi again,
Thanks for looking into that. Are you saying that even with all of the other non events calendar plugins disabled, you still see the error?
By going through the troubleshooting process, I was hoping to discover if and which of your other plugins is conflicting with ours.
If the error happens with just our plugins enabled, and is something I can reproduce, I can create a bug ticket and it will be something we can fix.
If the problem is due to a conflict with another plugin, we can only see if there is a way to modify things so they will both work. But the main issue of which version of Select2 we are using is not something that can be easily fixed. So, it may be that our plugins are not compatible with your other plugins.
Can you verify for me whether you still see the error when switching to the Twenty Seventeen theme and disabling all other plugins besides the Events Calendar plugins?
Thanks,
SkyAugust 1, 2018 at 9:12 am #1587611provbusnews
ParticipantI don’t think you read my ticket… I disabled ALL plugins, and I enabled just The Events Calendar, The Events Calendar Pro it works. I then enabled Event Tickets plugin Version 4.7.5.1 and it throws the Select2 error. That to me says it is an issue with Event Tickets plugin…
August 1, 2018 at 9:49 am #1587798Sky
KeymasterThank you for clarifying. Most people claim to have done this, but very few actually do. That’s why I asked you to verify this before proceeding.
With that combination of plugins, I am not seeing any errors on the event page. Can you tell me what action you take to show the error? Or is it showing when you first load the admin page?
Does this error show when you create a new event? Is it present on other existing events?
Can you also clarify if you have modified the plugin files? You say “I then downloaded Select2 and manually created the directory and file” but this is not something you should have to do to use our plugins. While troubleshooting, please make sure you remove any customizations, re-downloading the plugins if necessary.
Thanks,
SkyAugust 1, 2018 at 10:03 am #1587818provbusnews
ParticipantI see the select2 error in the JS console when either creating or editing and event. I just went and deleted all Modern Tribe plugins and then downloaded them from My Account section and reinstalled them all. The issue still persists.
I am going to look for alternatives for our Calendar solution as there always seems to be issues with The Events Calendar and conflicts when new versions come out.
August 2, 2018 at 9:11 am #1588697Sky
KeymasterHello,
Thanks for the additional information. Since I am unable to reproduce the issue on my end, it’s hard to say what the problem may be.
It is possible that there may be something configured in your server settings or htaccess file that is causing a conflict.
There were updates released for all of our plugins yesterday. You might try updating and see if that changes anything. Also, make sure to clear any caches from your site, hosting and browser when testing.
Please let us know if you would like to continue troubleshooting the issue.
Thanks,
SkyAugust 24, 2018 at 9:35 am #1605122Support 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 -
AuthorPosts
- The topic ‘Select2 Issue’ is closed to new replies.
