Title: Uncaught TypeError: $(&#8230;).ajaxError is not a function
Last modified: November 8, 2019

---

# Uncaught TypeError: $(…).ajaxError is not a function

 *  Resolved [thomask](https://wordpress.org/support/users/thomask/)
 * (@thomask)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-ajaxerror-is-not-a-function/)
 * error in JS console with wordfence
    Uncaught TypeError: $(…).ajaxError is not
   a function at Object.init (admin.ajaxWatcher.1573059078.js?ver=7.4.1:7) at HTMLDocument.
   <anonymous> (admin.ajaxWatcher.1573059078.js?ver=7.4.1:83) at e (jquery-3.4.1.
   slim.min.js:2) at t (jquery-3.4.1.slim.min.js:2)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-ajaxerror-is-not-a-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [WFGerroald](https://wordpress.org/support/users/wfgerald/)
 * (@wfgerald)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-ajaxerror-is-not-a-function/#post-12112639)
 * Hey [@thomask](https://wordpress.org/support/users/thomask/),
 * It sounds like there might be a conflict either with the theme or one of the 
   plugins you’re using, could you try temporarily switching to a default theme 
   if you’re not already using one and disabling all other plugins then reactivating
   them one by one to see if the issue persists?
 * To do so I recommend the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
   plugin which allows you to disable all plugins and switch to a default theme,
   but only for your user.
 * Please let me know how it goes.
 * Thanks,
 * Gerroald
 *  [jhars5511](https://wordpress.org/support/users/jhars5511/)
 * (@jhars5511)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-ajaxerror-is-not-a-function/#post-12112686)
 * I no longer have a web site but I still get the Forum email. How can this be 
   stopped?
    Thank yoJack
 *  Thread Starter [thomask](https://wordpress.org/support/users/thomask/)
 * (@thomask)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-ajaxerror-is-not-a-function/#post-12112722)
 * Oh [@wfgerald](https://wordpress.org/support/users/wfgerald/), i see. The problem
   is, that i use the latest jQuery version (3.4.1), not that wp built-in from several
   years old ver. 1.2 branch. Interesting, you are the only plugin, that got problems
   with that.
    P.S: this is my setup if you want to test it with modern jquery
 *     ```
       //Remove JQuery migrate
       function remove_jquery_migrate($scripts)
       {
           if (!is_admin() && isset($scripts->registered['jquery'])) {
               $script = $scripts->registered['jquery'];
   
               if ($script->deps) { // Check whether the script has any dependencies
                   $script->deps = array_diff($script->deps, array(
                       'jquery-migrate'
                   ));
               }
           }
       }
   
       add_action('wp_default_scripts', 'remove_jquery_migrate');
   
       //Making jQuery to load from Google Library
       function replace_jquery() {
       	if (!is_admin()) {
       		// comment out the next two lines to load the local copy of jQuery
       		wp_deregister_script('jquery');
       		wp_register_script('jquery', '//code.jquery.com/jquery-3.4.1.slim.min.js', false, NULL,true);
       		wp_enqueue_script('jquery');                                                                           
               wp_script_add_data( 'jquery', 'integrity', 'sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=');
               wp_script_add_data( 'jquery', 'crossorigin', 'anonymous' );
       	}    
       }
       add_action('init', 'replace_jquery');
       ```
   
 *  [WFGerroald](https://wordpress.org/support/users/wfgerald/)
 * (@wfgerald)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-ajaxerror-is-not-a-function/#post-12155679)
 * Hey [@thomask](https://wordpress.org/support/users/thomask/),
 * I was discussing this with a colleague this morning. It seems the reason this
   is likely happening is that you’re loading the slim version of jQuery, which 
   doesn’t contain all of the necessary functions/calls. If you load the full 3.4.1
   version everything should work just fine. Below is an article that goes more 
   in-depth on the topic.
 * [https://webdesign.tutsplus.com/tutorials/quick-tip-beware-when-using-the-slim-version-of-jquery–cms-30935](https://webdesign.tutsplus.com/tutorials/quick-tip-beware-when-using-the-slim-version-of-jquery–cms-30935)
 * Please let me know if this helps.
 * Thanks,
 * Gerroald
 *  [WFGerroald](https://wordpress.org/support/users/wfgerald/)
 * (@wfgerald)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-ajaxerror-is-not-a-function/#post-12202771)
 * Hey [@thomask](https://wordpress.org/support/users/thomask/),
 * We haven’t heard back from you in a while, so I’ve gone ahead and marked this
   thread as resolved.
 * Please feel free to open another thread if you’re still having issues with Wordfence.
 * Thanks,
 * Gerroald

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

The topic ‘Uncaught TypeError: $(…).ajaxError is not a function’ is closed to new
replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [WFGerroald](https://wordpress.org/support/users/wfgerald/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-ajaxerror-is-not-a-function/#post-12202771)
 * Status: resolved