Title: Dashboard JavaScript error
Last modified: June 25, 2018

---

# Dashboard JavaScript error

 *  Resolved [Daniel Maier](https://wordpress.org/support/users/demaier/)
 * (@demaier)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/)
 * Hello,
 * After the latest update I am having the following error in the dashboard:
 * Error: Option ‘multiple’ is not allowed for Select2 when attached to a <select
   > element.[https://domain.com/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js?ver=4.7.15](https://domain.com/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js?ver=4.7.15)
   line 21
 * Please advise and thank you!

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Ed](https://wordpress.org/support/users/erishel/)
 * (@erishel)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10452837)
 * Hey there **[@demaier](https://wordpress.org/support/users/demaier/)**!
 * Thanks for reaching out.
 * Sounds like another plugin you are using is loading a different version of Select2.
   Take a look at our [Testing for Conflicts](https://theeventscalendar.com/knowledgebase/testing-for-conflicts/)
   to see if you can find the culprit.
 * Take care,
    Ed 🙂
 *  Thread Starter [Daniel Maier](https://wordpress.org/support/users/demaier/)
 * (@demaier)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10469861)
 * Hi Ed,
 * Why are you blaming this on another plugin and not yours? I get the warning coming
   from yours:
 * Error: Option ‘multiple’ is not allowed for Select2 when attached to a <select
   > element.[https://domain.org/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js?ver=4.7.15](https://domain.org/wp-content/plugins/the-events-calendar/common/vendor/tribe-select2/select2.min.js?ver=4.7.15)
   line 21
 * What about adding a check on your plugin to see if Select2 is already loaded 
   and then not load it twice?
 *  [Ed](https://wordpress.org/support/users/erishel/)
 * (@erishel)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10487973)
 * I’m not passing any blame here 🙂 The version of [Select2](https://select2.org/)
   that we are using is actually a bit older than others and is what is causing 
   the conflict. I suggested [Testing for Conflicts](https://theeventscalendar.com/knowledgebase/testing-for-conflicts/)
   to be aware of which other plugin was using [Select2](https://select2.org/). 
   Once the other plugin is found, it would be easier to find out what other version
   is being called for.
 * You can try this snippet (functions.php) to dequeue the version we are running
   and rely on the one being called by the other plugin(s). The success of this 
   really depends on which version will ultimately be enqueued.
 *     ```
       function tribe_dequeue_script_example() {
       wp_deregister_script( ‘tribe-select2’ );
       }
       add_action( ‘wp_enqueue_scripts’, ‘tribe_dequeue_script_example’, 100 );
   
       add_action( ‘admin_enqueue_scripts’, ‘tribe_dequeue_script_example’, 100 );
       ```
   
 * Other than that, I’m not sure if there are any immediate plans to start packaging
   a newer version of [Select2](https://select2.org/) or not. I’ll look into it 
   a bit more.
 * Hope that helps!
 *  Thread Starter [Daniel Maier](https://wordpress.org/support/users/demaier/)
 * (@demaier)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10491654)
 * Thanks Ed.
 * It seems you guys just released a patch for this:
 * > = [4.4.29.2] 2018-07-12 =
   >  Fix – A conflict with select2 loading on the editors for WooCommerce Membership
   > causing an ‘ajax’ error in the console [110441]
 *  [Ed](https://wordpress.org/support/users/erishel/)
 * (@erishel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10502426)
 * You’re welcome. Did that release fix the AJAX error for you?
 *  [Ed](https://wordpress.org/support/users/erishel/)
 * (@erishel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10538500)
 * Hey there,
 * Since this thread has been inactive for a while, I’m going to go ahead and mark
   it as resolved. Don’t hesitate to create a new thread any time you help again!
 * Ed 🙂
 *  Thread Starter [Daniel Maier](https://wordpress.org/support/users/demaier/)
 * (@demaier)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10551403)
 * Yes, that fixed it for me.
 * FYI, The “Notify me of follow-up replies via email” in this post doesn’t work
   for me.
 * Thanks!
 *  [H. Adam Lenz](https://wordpress.org/support/users/adrock42/)
 * (@adrock42)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10797386)
 * There is a better way! If you change the version of select2 that ACF uses everything
   works fine. At least with widgets, which is where I was having the issue. ACF
   makes it easy to change settings
 *     ```
       function acf_setting(){
        acf_update_setting('select2_version', 3);
       }
   
       add_action('acf/init', 'acf_settings' );
       ```
   
 *  Thread Starter [Daniel Maier](https://wordpress.org/support/users/demaier/)
 * (@demaier)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10797807)
 * H. Adam Lenz, if you update the plugin it should fix the issue as it did for 
   me.
 * Thanks.
    -  This reply was modified 7 years, 7 months ago by [Daniel Maier](https://wordpress.org/support/users/demaier/).
 *  [H. Adam Lenz](https://wordpress.org/support/users/adrock42/)
 * (@adrock42)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10798140)
 * I think this was a different case as it was with acf pro being used to make widgets
   and the event calendar pro widgets. When both were in a side bar on the widgets
   edit screen, select2 would not work and produced the same error
 *  Thread Starter [Daniel Maier](https://wordpress.org/support/users/demaier/)
 * (@demaier)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10803459)
 * Got it! Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Dashboard JavaScript error’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [Daniel Maier](https://wordpress.org/support/users/demaier/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/dashboard-javascript-error/#post-10803459)
 * Status: resolved