Ajax Search Pro Documentation
Get Ajax Search Pro!Get SupportKnowledge BaseDevelopment
  • Ajax Search Pro Documentation
  • GDPR and Cookie policy
  • Video Guides
  • Plugin Updates
    • Automatic Updates
      • Activation on Development and Staging environments
      • Managing purchase codes
      • Purchase Code (license key)
    • Manual Updates
    • Safe Update Guide
    • Plugin update issues or errors
    • Disabling update check
  • Installation instructions
    • Uninstallation & Reset
  • Getting started
    • Importing from the Lite version
    • Editor Blocks
    • Search Shortcodes
    • Search Widget
    • Gutenberg and Other Page Editors
    • Replacing the default theme search bar
    • Placing the search shortcode in theme files
    • Search as menu item
    • Custom result box position
    • Custom filters box position
    • Shortcode generator
  • Search Sources
    • Search Engine
    • Post, Page, Product and other Post Type Search
    • Searching Titles, Content, Excerpt
    • Search in custom fields
      • Search By Product SKU
    • Search by categories, tags or other terms
    • Search in Attachments
      • Mime types table
    • Search in File contents (pdf, word, excel etc..)
    • Search in Users
      • User meta fields
    • Limits (number of results)
    • Categories and terms as results
    • Image options
    • Result ordering
    • Peepso Groups & Group activities search
    • Grouping title duplicates
  • Behavior
    • Return/Enter key and Magnifier icon click actions
    • Search logic (primary and secondary)
      • Exact Matches vs Fuzzy Matches
      • Search logics explained
    • Live search triggering events
    • Results page override
    • Results, Archive Page and Shop Live Search and Filter
  • Elementor Integration
    • Elementor Pro Posts Widget Live Filter
    • Elementor Loop Grid Integration
    • Elementor Pro Product Widget Live Filter
    • Custom results page with Elementor Pro
    • Elementor custom search page archive override and live filter
  • Other Integration
    • Jet Engine Listing Grid Integration
  • Multisite Settings
  • Frontend Search Settings & Search Filters
    • Settings layout, position and visibility
    • Generic Selectors
    • Content Type filters
    • Date filters
    • Category and Taxponomy term filters
    • Post type Filters
    • Custom field filters - selectors
    • Search button
    • Reset button
  • Layout Settings
    • Result Layout Types
    • Results information box
    • Results position & snap
    • Content, author, date and description in results
    • More results loader and infinite scroll feature
    • Results behavior
    • Results text keyword highlighter
    • Compact search box layout
    • Auto Populate - Automatic search results on initial page load
  • Autocomplete and Keyword suggestions
    • Autocomplete
    • Results and Keyword suggestions
    • "Try these" - suggested phrases
  • Theme Options - Visual changes to the search bar
    • Theme chooser
    • Preview
    • Search box and input field layout
    • Settings and Magnifier icon
    • Settings dropdown
    • Typography
  • Index Table
    • Generating the index table
    • Enabling index table engine
    • File Content Search Addon
    • Index table FAQ
    • Synonyms
  • Relevance Options
  • Advanced Options and Uses
    • Using the Results shortcode as a custom results page
    • Shortcodes in results content
    • HTML tags in results
    • Primary and Secondary title and description fields
    • Advanced title and Content fields
      • User Search - Advanced Title and Content fields
    • Excluding & Including results
      • Exclude by category or terms
      • Exclude or Include by authors (users)
      • Exclude or Include by date
      • Exclude by Item or ID
      • Include by ID
      • Include by categories or terms (restrict to category)
      • Exclude or Include by custom field values
    • Grouping results
    • Keyword Exception & Exclusions
  • Result priority settings
    • Individual Priorities
    • Priorities by Rules (priority groups)
  • Performance Tuning
    • Fine tuning the search configuration
    • Cache
    • Visual performance
    • Ajax performance tracker
  • Compatibility Settings
    • Javascript Compatibility
  • Google Analytics Integration (GA4)
    • Tracking with Google Site Tag (gtag.js)
    • Tracking with Google Tag Manager
    • Site Search Tracking
  • Troubleshooting
    • Styling issues
    • The response data is missing from the ajax request error message
  • Translating components
    • Translating with WPML
    • Translating with Polylang
  • Pre-Purchase FAQ
  • Plugin API
    • Actions list and usage
    • Filters list and usage
    • asp_query_args filter
    • Theme functions
    • Front-end filters API
    • Javascript API
  • Other Useful Things
    • Additional search keywords for post types
    • Negative keywords
    • Meta box on post editor screen
Powered by GitBook
On this page
  • Try the custom ajax handler ON/OFF
  • Check if the empty server ajax handler is accessible
  • Wrong redirections via the .htaccess file
  • Wrong redirections via plugin or custom code
  • wp-admin/ directory not accessible or moved to a different location
  • The server ajax handler works, now what?
  • 3rd party plugin conflicts
  • Custom code
  • None of the above works, now what?
  1. Troubleshooting

The response data is missing from the ajax request error message

PreviousStyling issuesNextTranslating components

Last updated 1 month ago

This issue occurs, when the plugin sends the search query to the server, but does not get back anything. In most cases it is only caused by a minor server misconfiguration, and should be possible to resolve by following a few steps.

Please note, that in most cases the cause of this reported issue is unrelated to the plugin. Therefore make sure to try the suggested resolutions below.

Try the custom ajax handler ON/OFF

Under the panel, turn ON the Custom Ajax Handler option temporarily to see if that helps. If no luck, make sure to turn it OFF before continuing to the next step.

Check if the empty server ajax handler is accessible

WordPress uses file within the wp-admin directory to handle all ajax related requests. When this file is not accessible, the issue occurs. Open up the following URL in your browser (replace yourdomain.com with your site address):

yourdomain.com/wp-admin/admin-ajax.php

The expected result should be exactly white screen with a 0 printed to it:

If you are seeing anything different - like a 404 or 403 error page or anything else, that means this file is not accessible, and no ajax requests can be made. There are many reasons this could happen, we will list the most likely causes and possible resolutions.

Wrong redirections via the .htaccess file

The .htaccess file can be found within the root directory of your WordPress installation. It is mostly used by plugins and the WordPress system to resolve permalink structures. An incorrect rule can cause a wrong redirection, and make the ajax handler inaccesible.

  • If you are using any plugins to change permalinks - SEO, Cache etc.. try turning those off first temporarily, and make sure those permalinks does not work anymore.

  • Security/Firewall plugins tend to block requests to specific paths. Try turning off those plugins as well to test if the file is accessible.

  • If you have added any custom .htaccess mod_rewrite rules in your .htaccess file, make sure to remove them - especiall if you are seeing a server error message (error 400, error 500 etc..) when accessing the wp-admin/admin-ajax.php file.

  • If you have added any custom codes related to URL redirections or header modifications, make sure to remove them from the functions.php theme file (or from a custom code plugin if you are using any)

  • Check your core WordPress permalink configuration. Try turning it back to the default configuration:

  • If you are using WooCommerce, check the permalink configuration there as well.

Wrong redirections via plugin or custom code

  • Make sure to temporary turn off any URL or page redirection plugins

  • If you added any custom code anywhere in relation to redirecting URLs, make sure to remove them

wp-admin/ directory not accessible or moved to a different location

In some cases users tend to revoke access from the wp-admin/ WordPress directory. This is not only a very weak security measure, but conflicts with the correct function of the WordPress core.

If you still need to use a block on the wp-admin/ directory, make sure to add an exception to access the wp-admin/admin-ajax.php file, because it is important for not only this plugin, but the WordPress core (as well as any plugin/theme using ajax)

The server ajax handler works, now what?

Don't worry, there is still hope.

3rd party plugin conflicts

Some plugins (especially cache related) - when incorrectly configured - may conflict with the request headers, so WordPress does not know what to do with the request.

  • Turn off any cache related plugins first. Then clear your browser cache and try again.

  • Turn off CDN caching temporarily - Some CDN features can conflict with requests

  • Turning off all the plugins one-by-one temporarily will also help pinpointing the conflicting asset

  • Switching the theme is also a must, if everything else fails

Custom code

  • If you have added any custom .htaccess mod_rewrite rules in your .htaccess file, make sure to remove them

  • If you have added any custom codes related to URL redirections or header modifications, make sure to remove them from the functions.php theme file (or from a custom code plugin if you are using any)

None of the above works, now what?

Before continuing, make sure the is turned OFF.

If none of the above works, feel free to open a with us.

support ticket
Custom Ajax Handler