Title: Search function not working
Last modified: March 25, 2021

---

# Search function not working

 *  [susankilcoyne](https://wordpress.org/support/users/susankilcoyne/)
 * (@susankilcoyne)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/search-function-not-working-41/)
 * For some reason the search function has stopped working on the plugin on this
   site. It doesn’t generate the searches as you type nor does it even bring up 
   any results by pressing enter. Could you help?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsearch-function-not-working-41%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [susankilcoyne](https://wordpress.org/support/users/susankilcoyne/)
 * (@susankilcoyne)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14233613)
 * Just to add to this- if I enter a word into the search when I land on the mobile
   page nothing comes up. If I refresh the page and enter a word it starts working?
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14233687)
 * Hi,
 * The jquery script in your site header is deferred, so the browser loads it later
   on the execution chain, as it does the search plugin script so it does not work.
   
   If you remove the js deferring on header scripts, it will resolve the issue.
 * Best,
    Ernest M.
 *  [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14235277)
 * Hi [@wpdreams](https://wordpress.org/support/users/wpdreams/),
    So, the plugin
   doesn’t work if jquery and your plugin scripts are loaded in a deferred way? 
   But removing defer will be a big blow to web perf and it simply means more render-
   blocking js and page loads slower. Hmmm…! 🙁
 *  [chesscoin](https://wordpress.org/support/users/chesscoin/)
 * (@chesscoin)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14307940)
 * Hi,
    Same issue here. I have the Pro version of the plugin, and it doesn’t work
   even after adding /ajax-search-pro/js/* to the excluded defer list… Any help 
   please ? Thanks
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14311253)
 * For Pro version support, please open a ticket here: [https://wp-dreams.com/open-support-ticket-step-1/](https://wp-dreams.com/open-support-ticket-step-1/)
 * It is against the forum rules to discuss paid versions. The issue is probably
   something else then. We will take a look as soon as possible, once you have the
   ticket open.
 * Best,
    Ernest M.
 *  [seneva](https://wordpress.org/support/users/seneva/)
 * (@seneva)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14312969)
 * I have the same issue. after debugging found that typeof _this.version == ‘undefined’
   in asl_wrapper.js comes undefined and stop executing the code below.
    after removed
   it from the if() everything works
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14316194)
 * > I have the same issue. after debugging found that typeof _this.version == ‘
   > undefined’ in asl_wrapper.js comes undefined and stop executing the code below.
   > 
   > after removed it from the if() everything works
 * Thank you for the feedback. That means, that something is still removing or moving
   the order the initialization inline script added via [wp_add_inline_script](https://developer.wordpress.org/reference/functions/wp_add_inline_script/)
   method. Removing that may look like it is resolving the issue, but there are 
   still missing properties or methods from the window.ASP variable.
    Are you using
   a cache/minify plugin as well? If so, then I may have to contact them about this.

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

The topic ‘Search function not working’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/search-function-not-working-41/#post-14316194)
 * Status: not resolved