Select2 error on admin pages

Home Forums Calendar Products Events Calendar PRO Select2 error on admin pages

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1565916
    Bella
    Participant

    Hi

    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:2

    I 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/

    #1566043
    Mathew
    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.

    #1566523
    Jeremy
    Keymaster

    Hi 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,
    Jeremy

    #1573995
    Victor
    Member

    Hi 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,
    Victor

    #1589689
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Select2 error on admin pages’ is closed to new replies.