Home › Forums › Calendar Products › Events Calendar PRO › Select2 error on admin pages
- This topic has 3 replies, 4 voices, and was last updated 7 years, 8 months ago by
Bella.
-
AuthorPosts
-
July 2, 2018 at 8:05 am #1565916
Bella
ParticipantHi
On visiting the page for adding a new WooCommerce product – /wp-admin/post-new.php?post_type=product – the following JavaScript error appears in the console:
Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element. at String.<anonymous> (select2.min.js?ver=4.7.15:21) at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2) at i.prepareOpts (select2.min.js?ver=4.7.15:21) at i.prepareOpts (select2.min.js?ver=4.7.15:22) at init (select2.min.js?ver=4.7.15:21) at HTMLSelectElement.<anonymous> (select2.min.js?ver=4.7.15:22) at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2) at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2) at a.fn.init.e.fn.select2 (select2.min.js?ver=4.7.15:22) at Object.d.initializeEnhancedSelect (wc-memberships-enhanced-select.min.js?ver=1.10.4:1) (anonymous) @ select2.min.js?ver=4.7.15:21 each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2 prepareOpts @ select2.min.js?ver=4.7.15:21 prepareOpts @ select2.min.js?ver=4.7.15:22 init @ select2.min.js?ver=4.7.15:21 (anonymous) @ select2.min.js?ver=4.7.15:22 each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2 each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2 e.fn.select2 @ select2.min.js?ver=4.7.15:22 d.initializeEnhancedSelect @ wc-memberships-enhanced-select.min.js?ver=1.10.4:1 (anonymous) @ wc-memberships-admin.min.js?ver=1.10.4:1 i @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2 fireWith @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2 ready @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2 K @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,underscor&load[]=e,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=4.9.6:2I have the following plugins enabled:
WooCommerce 3.4.3
WooCommerce Memberships 1.10.4
The Events Calendar PRO 4.4.28========================
PLEASE LEAVE FOR SUPPORT
Reporting the same issue as: https://theeventscalendar.com/support/forums/topic/the-events-calendar-select2-conflict-with-woocommerce-membership-plugin/July 2, 2018 at 9:46 am #1566043Mathew
Participant+1.
Select2 is loading on ALL admin pages, not just Woo. Rolling back to TECPro 4.4.27 resolves the issue.
I have opened my own ticket.
July 3, 2018 at 1:04 am #1566523Jeremy
KeymasterHi Bella and Mathew,
Thanks for reaching out to us!
I’m sorry to hear you are experiencing this problem.
It is a known bug, so I added this ticket to the bug report. I’m going to set this thread’s status as “Pending fix” as well. That way, we can notify you as soon as a fix is released. At this time though, I can’t give you a release date, but I can guarantee our developers will do their best to solve this.
We apologize for the inconvenience and we appreciate your patience while we work on this.
Let me know if you have any other questions in the meantime!
Cheers,
JeremyJuly 12, 2018 at 12:19 pm #1573995Victor
MemberHi Bella and Mathew!
Just wanted to share with you that a new release of Events Calendar PRO is out, including a fix for this issue 🙂
Find out more about this release → https://theeventscalendar.com/announcing-events-calendar-pro-4-4-29-2/
We apologize for the delay and appreciate your patience while we worked on this.
Please update the plugins and let us know if the fix works for your site.
Best,
VictorAugust 3, 2018 at 9:35 am #1589689Support 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 error on admin pages’ is closed to new replies.
