Title: jQuery(&#8230;).sortable is not a function
Last modified: April 24, 2018

---

# jQuery(…).sortable is not a function

 *  Resolved [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/)
 * I’ve just rolled a development site to a staging server and suddenly the admin
   Constant Contact form edit page is throwing this error. The dev and staging servers
   are identical, and I do not have the problem on the dev server. The functionality*
   works* on the front end of the staging server, but I can’t make any changes to
   the settings now.
 * Anyone have any ideas?

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

 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214029)
 * Are you familiar with the SCRIPT_DEBUG constant available for WordPress? We would
   be curious to see more information for this case, and that constant will use 
   the non-minified copies of js files, and provide a better call stack.
 * [https://codex.wordpress.org/Debugging_in_WordPress#SCRIPT_DEBUG](https://codex.wordpress.org/Debugging_in_WordPress#SCRIPT_DEBUG)
 * Also, any differences in active plugins or active theme?
 *  Thread Starter [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214053)
 * Thanks for the quick reply – turning on all debugging options gives this in output:
 * `Fatal error: Declaration of CMB2_Type_Wysiwyg::render() must be compatible with
   CMB2_Type_Textarea::render($args = Array) in /path-to-content/wp-content/plugins/
   constant-contact-forms/vendor/CMB2/includes/types/CMB2_Type_Wysiwyg.php on line
   16`
 * And continues to throw the jQuery(…).sortable is not a function error, reporting
   jQuery v=1.12.4 and tinymce-shortcode-script.js v=5.4.7.2
    -  This reply was modified 8 years, 1 month ago by [maxxd](https://wordpress.org/support/users/maxxd/).
      Reason: typo
 *  [Justin Sternberg](https://wordpress.org/support/users/jtsternberg/)
 * (@jtsternberg)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214074)
 * This occurs when the bundled version of CMB2 is not up-to-date and the server
   is on PHP 7.2+. Please read here for more on the matter: [https://wordpress.org/support/topic/fatal-error-cmb2_type_colorpicker-line-13/](https://wordpress.org/support/topic/fatal-error-cmb2_type_colorpicker-line-13/)
   and [https://github.com/CMB2/CMB2/issues/1070](https://github.com/CMB2/CMB2/issues/1070)
 * See here for potential workaround: [https://github.com/CMB2/CMB2/issues/1070#issuecomment-367756645](https://github.com/CMB2/CMB2/issues/1070#issuecomment-367756645)
 *  Thread Starter [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214106)
 * There is a discrepancy in PHP versions – I hadn’t noticed that. I assume [@constantcontact](https://wordpress.org/support/users/constantcontact/)
   is working on this?
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214121)
 * Version 1.3.7 will include the updated copy of CMB2, but we have not yet released
   it yet. Hopefully soon.
 * Here’s an early release copy of what we have in 1.3.7 at the present moment: 
   [https://www.dropbox.com/s/vp01v7k5w5mgm25/constant-contact-forms20182404.zip?dl=0](https://www.dropbox.com/s/vp01v7k5w5mgm25/constant-contact-forms20182404.zip?dl=0)
 * Hopefully this resolves that portion of the issue, and we can resume the jQuery
   aspect.
 *  Thread Starter [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214317)
 * Just installed and it works – thank you very much!
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214421)
 * Did the update fix all the issues? Not just the fatal error part?
 * Other than that, it sounds like maybe the two servers were on different PHP versions
   and that’s where the conflict came from.
 *  Thread Starter [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214849)
 * Update fixed the fatal error, which in turn fixed the jQuery error. The site 
   appears to be good to go – thank you again!
 *  Plugin Author [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * (@constantcontact)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214888)
 * Awesome, thanks [@maxxd](https://wordpress.org/support/users/maxxd/)

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

The topic ‘jQuery(…).sortable is not a function’ is closed to new replies.

 * ![](https://ps.w.org/constant-contact-forms/assets/icon-256x256.png?rev=2951825)
 * [Constant Contact Forms](https://wordpress.org/plugins/constant-contact-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/constant-contact-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/constant-contact-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/constant-contact-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/constant-contact-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/constant-contact-forms/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [sortable](https://wordpress.org/support/topic-tag/sortable/)
 * [staging](https://wordpress.org/support/topic-tag/staging/)

 * 9 replies
 * 3 participants
 * Last reply from: [Constant Contact](https://wordpress.org/support/users/constantcontact/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/jquery-sortable-is-not-a-function/#post-10214888)
 * Status: resolved