{"id":784,"date":"2026-10-20T09:04:22","date_gmt":"2026-10-20T08:04:22","guid":{"rendered":"https:\/\/userswp.io\/documentation\/article\/jquery-sortable-is-not-a-function\/"},"modified":"2026-10-20T09:04:22","modified_gmt":"2026-10-20T08:04:22","slug":"jquery-sortable-is-not-a-function","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/jquery-sortable-is-not-a-function\/","title":{"rendered":"Fix &#8220;jQuery(&#8230;).sortable is not a function&#8221; in the WordPress admin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The error <code>Uncaught TypeError: jQuery(...).sortable is not a function<\/code> means a script tried to use jQuery UI Sortable before it was loaded, or after another plugin replaced jQuery. Once a JavaScript error like this happens, the rest of the scripts on the page stop, so screens such as Edit User can look broken.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress ships jQuery UI Sortable, and UsersWP loads it on the screens that use drag and drop, such as UsersWP &gt; Form Builder and UsersWP &gt; User Types. The error was reported on the Edit User screen with an old UsersWP version. If you see it today, work through these steps.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Update UsersWP, its add-ons and WordPress to the latest versions.<\/li>\n\n\n\n<li>Clear any caching or script optimisation plugin, and turn off its JavaScript combine or minify options while you test. Combined scripts are a common cause of load order errors.<\/li>\n\n\n\n<li>Open the browser console (F12) and reload the page. Note the file name in the error, because it tells you which plugin&#8217;s script failed.<\/li>\n\n\n\n<li>Deactivate other plugins one at a time, or use the Health Check &amp; Troubleshooting plugin&#8217;s troubleshooting mode, until the error goes away. A plugin that loads its own copy of jQuery is the usual culprit.<\/li>\n\n\n\n<li>Switch to a default theme such as Twenty Twenty-Four to rule out the theme.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">To see which line fails in readable code, add <code>define( &#039;SCRIPT_DEBUG&#039;, true );<\/code> to wp-config.php. UsersWP then loads its unminified scripts. Remove the line when you are done.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the error only appears with UsersWP active and everything else switched off, send us the full console error and your System Status report from UsersWP &gt; Status.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The error Uncaught TypeError: jQuery(&#8230;).sortable is not a function means a script tried to use jQuery UI Sortable before it was loaded, or after another plugin replaced jQuery. Once a JavaScript error like this happens, the rest of the scripts on the page stop, so screens such as Edit User can look broken. WordPress ships [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[39,7],"class_list":["post-784","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-troubleshooting","gd_placecategory-tips-tricks-more"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=784"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/784\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=784"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=784"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}