• Resolved kisabelle

    (@kisabelle)


    Hi, we recently updated to WooCommerce 3.0 and are now getting a select2.js error coming from the WooCommerce Export Orders – PRO Plugin. This javascript error is appearing on the edit order page in the admin area, and is preventing us from being able to issue refunds via Stripe. We have had to disable the plugin for now.

    Here’s a sample console error:

    select2.js:934 Uncaught Error: Option ‘ajax’ is not allowed for Select2 when attached to a <select> element.
    at String.<anonymous> (select2.js:934)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
    at constructor.prepareOpts (select2.js:932)
    at constructor.prepareOpts (select2.js:2794)
    at constructor.init (select2.js:690)
    at HTMLSelectElement.<anonymous> (select2.js:3578)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
    at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
    at a.fn.init.$.fn.select2 (select2.js:3565)
    at HTMLSelectElement.<anonymous> (wc-enhanced-select.min.js:1)
    (anonymous) @ select2.js:934
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2
    prepareOpts @ select2.js:932
    prepareOpts @ select2.js:2794
    init @ select2.js:690
    (anonymous) @ select2.js:3578

    Please advise when this issue is resolved. If you require additional information / logging info I’m happy to help.

    Thank you!

Viewing 8 replies - 31 through 38 (of 38 total)
  • Same here. WooCommerce problem with other plugins with version Select2

    Disabling “Ultimate Addons for Visual Composer” plug-in resolved this issue for me.

    @merlinmonmouth even with the 3.1.1 woocommerce I still got the same error about products variations not loading and having to desactive ACF plugin which I must use.

    Thanks for any help,
    Thomas

    I had the same problem.
    Make sure you update your ACF Plugin, too.

    This fixed the issue for me.

    Hi, we recently updated to WooCommerce 3.0 and are now getting a select2.js error

    Here’s a sample console error:

    select2.js:934 Uncaught Error: Option ‘ajax’ is not allowed for Select2 when attached to a <select> element.
    at String.<anonymous> (select2.js:934)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
    at constructor.prepareOpts (select2.js:932)
    at constructor.prepareOpts (select2.js:2794)
    at constructor.init (select2.js:690)
    at HTMLSelectElement.<anonymous> (select2.js:3578)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
    at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
    at a.fn.init.$.fn.select2 (select2.js:3565)
    at HTMLSelectElement.<anonymous> (wc-enhanced-select.min.js:1)
    (anonymous) @ select2.js:934
    each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2
    prepareOpts @ select2.js:932
    prepareOpts @ select2.js:2794
    init @ select2.js:690

    Someone please help me!

    I disabled the Ultimate Addons for Visual Composer and this fixed the issue for me

    I’m also getting this issue; spinning icon and error:
    Error: Option ‘ajax’ is not allowed for Select2 when attached to a <select> element.

    My eyes lit up when there was a plugin update this morning (v3.1.2)

    I don’t have Visual Composer installed and I’ve been through and disabled all other plugins and themes. ??

    This was a ‘trial’ of WooCommerce so it looks like I’m going to have to find something else.

    Still seeing the conflict with Ultimate Addons for Visual Composer. That plugin is loading Select2 v3 while WooCommerce needs Select2 v4.

Viewing 8 replies - 31 through 38 (of 38 total)
  • The topic ‘select2.js error after updating to WooCommerce 3.0’ is closed to new replies.