[3.0] Error: Option ‘ajax’ is not allowed for Select2

This topic has 6 replies, 2 voices, and was last updated 7 years, 8 months ago ago by Rose Tyler

  • Avatar: InesD
    Ines
    Participant
    April 10, 2017 at 11:40

    This is what is written on official woocommerce support:
    “WooCommerce 3.0 uses Select2 v4 due to the many fixes and enhancements added since Select2 v3. This version is however incompatible with v3.”

    And this is an error I get when trying to add an attribute to my product. I have the newest version of Royal theme.

    
    wc-enhanced-select.min.js:1 Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element.
        at String.<anonymous> (ultimate-woocomposer-backend.min.js:1)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2)
        at d.prepareOpts (ultimate-woocomposer-backend.min.js:1)
        at d.prepareOpts (ultimate-woocomposer-backend.min.js:2)
        at d.init (ultimate-woocomposer-backend.min.js:1)
        at HTMLSelectElement.<anonymous> (ultimate-woocomposer-backend.min.js:2)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2)
        at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2)
        at a.fn.init.a.fn.select2 (ultimate-woocomposer-backend.min.js:2)
        at HTMLSelectElement.<anonymous> (wc-enhanced-select.min.js:1)
    ultimate-woocomposer-backend.min.js:1 Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element.
        at String.<anonymous> (ultimate-woocomposer-backend.min.js:1)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2)
        at d.prepareOpts (ultimate-woocomposer-backend.min.js:1)
        at d.prepareOpts (ultimate-woocomposer-backend.min.js:2)
        at d.init (ultimate-woocomposer-backend.min.js:1)
        at HTMLSelectElement.<anonymous> (ultimate-woocomposer-backend.min.js:2)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2)
        at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2)
        at a.fn.init.a.fn.select2 (ultimate-woocomposer-backend.min.js:2)
        at HTMLSelectElement.<anonymous> (wc-enhanced-select.min.js:1)
    (anonymous) @ ultimate-woocomposer-backend.min.js:1
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    prepareOpts @ ultimate-woocomposer-backend.min.js:1
    prepareOpts @ ultimate-woocomposer-backend.min.js:2
    init @ ultimate-woocomposer-backend.min.js:1
    (anonymous) @ ultimate-woocomposer-backend.min.js:2
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    a.fn.select2 @ ultimate-woocomposer-backend.min.js:2
    (anonymous) @ wc-enhanced-select.min.js:1
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    (anonymous) @ wc-enhanced-select.min.js:1
    dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:3
    r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:3
    trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:3
    a.event.trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:9
    (anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:3
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:3
    (anonymous) @ meta-boxes-product.min.js:1
    i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    y @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:4
    c @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:4
    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2017 at 13:19

    Hello,

    Go to Appearance > Themes > install and activate Storefront theme – official WC theme and check if this problem persists when default theme is activated. Reply back if problem appears with our theme only. Then we’ll be able to help you.
    Please try to disable Ultimate Addons for Visual Composer plugin and then check.
    Also, we will need FTP access.

    Regards,
    Rose Tyler.

    Avatar: InesD
    Ines
    Participant
    April 11, 2017 at 13:43

    Hey Rose,

    I turned off the plugins as you said and it is working now.
    Thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2017 at 14:36

    Hello,

    You’re welcome!
    This plugin will be updated soon and we’ll upload it on our site https://www.8theme.com/download-plugins/page/2/. I think they will release it today-tomorrow.
    You can try to use it then.

    Regards,
    Rose Tyler.

    Avatar: InesD
    Ines
    Participant
    April 11, 2017 at 14:47

    Great, thank you for that info.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2017 at 14:49

    Hello,

    You’re welcome!
    Have a nice day.

    Regards,
    Rose Tyler.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘[3.0] Error: Option ‘ajax’ is not allowed for Select2’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.