Answers.Body: <p>This is a known bug in Select2 which we have <a href="https://issues.civicrm.org/jira/browse/CRM-16154" rel="nofollow">worked around</a> as of CiviCRM v4.6.0.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-01T20:53:16.513Z
Answers.Text: I confirmed that replacing the select2.min.js with the patched version does resolve the conflict on civicrm 4.5
  
  https://raw.githubusercontent.com/colemanw/select2/09a6e7bb1f435c94869ad9e008c70f37fe60297d/select2.min.js
Answers.UserDisplayName: ginkgoMZD
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-01T20:37:07.170Z
Answers.LastActivityDate: 2015-06-01T20:37:07.170Z
Answers.UserDisplayName: Coleman
Body: <p>I found that I am getting js errors when I have the Call to Action wordpress plugin enabled.
  My hunch is that it is because CTA also includes Select2 but I did not test this. The error in particular I was looking at was $.fn.select2.defaults is not defined. (everything before "defaults" is defined). At least when in Common.js. In the console it appears to be defined.</p>
  
  <p>I did not find CTA on the incompatible plugin list.
  <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/WordPress+plugins+incompatible+with+CiviCRM" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/WordPress+plugins+incompatible+with+CiviCRM</a></p>
  
  <p>Does it need to be added? is there a known work-around?
  Can someone point me to a model for resolving this conflict?</p>
  
  <p>civicrm 4.5.8
  WP 4.2.2
  CTA 2.3.6</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-01T16:39:54.207Z
Comments.Text: Just confirming:  is this the plugin:  https://wordpress.org/plugins/cta/  ?  We have used this one https://wordpress.org/plugins/call-to-action-widget/ when all we need is a widget and it has worked well wth CiviCRM
Comments.UserDisplayName: Kevin Cristiano
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-01T20:43:03.063Z
Comments.Text: that's the one.
Comments.UserDisplayName: ginkgoMZD
Tags: <wordpress>
Title: WP "Call to Action" plugin causes JS errors
ThreadText: # WP "Call to Action" plugin causes JS errors
  
  (Asked by: username_0 on 2015-06-01)
  
  I found that I am getting js errors when I have the Call to Action wordpress plugin enabled.
  My hunch is that it is because CTA also includes Select2 but I did not test this. The error in particular I was looking at was $.fn.select2.defaults is not defined. (everything before "defaults" is defined). At least when in Common.js. In the console it appears to be defined.
  
  I did not find CTA on the incompatible plugin list.
  <http://wiki.civicrm.org/confluence/display/CRMDOC/WordPress+plugins+incompatible+with+CiviCRM>
  
  Does it need to be added? is there a known work-around?
  Can someone point me to a model for resolving this conflict?
  
  civicrm 4.5.8
  WP 4.2.2
  CTA 2.3.6
  
  **Tags:** wordpress
  
  > **Comments:**
  > **username_1**: Just confirming:  is this the plugin:  https://wordpress.org/plugins/cta/  ?  We have used this one https://wordpress.org/plugins/call-to-action-widget/ when all we need is a widget and it has worked well wth CiviCRM  
  > **username_0**: that's the one.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-06-01. Score: 1 | Accepted answer
  
  This is a known bug in Select2 which we have [worked around](https://issues.civicrm.org/jira/browse/CRM-16154) as of CiviCRM v4.6.0.
  
  > **Comments:**
  > **username_0**: I confirmed that replacing the select2.min.js with the patched version does resolve the conflict on civicrm 4.5  https://raw.githubusercontent.com/colemanw/select2/09a6e7bb1f435c94869ad9e008c70f37fe60297d/select2.min.js  
  
  ---
  
  