Title: Select2 js error
Last modified: December 16, 2016

---

# Select2 js error

 *  [aliwebdesarrollo](https://wordpress.org/support/users/aliwebdesarrollo/)
 * (@aliwebdesarrollo)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/select2-js-error/)
 * I’m using the last version of Stream avaible now, and when i try to add o delete
   a rule this is the message i get in Google Chrome Console:
 * select2.min.js:21 Uncaught Error: Option ‘ajax’ is not allowed for Select2 when
   attached to a <select> element.(…)
    (anonymous function) @ select2.min.js:21 
   each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,
   jquery-ui-widget,jquery-ui-mo…:2 prepareOpts @ select2.min.js:21 prepareOpts 
   @ select2.min.js:22 init @ select2.min.js:21 (anonymous function) @ select2.min.
   js:22 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
   @ select2.min.js:22 (anonymous function) @ exclude.js:63 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 initSettingsSelect2 @ exclude.js:60 (
   anonymous function) @ exclude.js:263i @ 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 ready @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,
   jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2 K @ load-scripts.php?c=0&load[]
   =jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
 * That is all the error trace that GC Console shows me. I try to delete de plugin,
   install again but nothing changes.

Viewing 1 replies (of 1 total)

 *  [John](https://wordpress.org/support/users/johnolek/)
 * (@johnolek)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/select2-js-error/#post-8622738)
 * I ran into this same issue myself. It looks like it’s because Stream 3.1.1 is
   not using the “full” version of select2. A similar issue is described here: [http://stackoverflow.com/questions/30235909/using-select2-get-error-error-no-select2-compat-query](http://stackoverflow.com/questions/30235909/using-select2-get-error-error-no-select2-compat-query)
 * Fortunately it looks like this was fixed in the GitHub repo, so I’m expecting
   this will be fixed in the next release: [https://github.com/xwp/stream/commit/67274aee0bb9dffa5345c8c2e7d93c35feed5ec0#diff-1eea398e7896ba5b5dd5a6f93862c89a](https://github.com/xwp/stream/commit/67274aee0bb9dffa5345c8c2e7d93c35feed5ec0#diff-1eea398e7896ba5b5dd5a6f93862c89a)

Viewing 1 replies (of 1 total)

The topic ‘Select2 js error’ is closed to new replies.

 * ![](https://ps.w.org/stream/assets/icon.svg?rev=3128015)
 * [Stream](https://wordpress.org/plugins/stream/)
 * [Support Threads](https://wordpress.org/support/plugin/stream/)
 * [Active Topics](https://wordpress.org/support/plugin/stream/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stream/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stream/reviews/)

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)
 * [select2](https://wordpress.org/support/topic-tag/select2/)

 * 1 reply
 * 2 participants
 * Last reply from: [John](https://wordpress.org/support/users/johnolek/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/select2-js-error/#post-8622738)
 * Status: not resolved