Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Mobile search giving an error "response data is missing"
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years ago.
- AuthorPosts
- March 11, 2021 at 2:04 pm #32128
Hello Ernest,
I have an issue. I was testing the Search on mobile and I´m getting an error:
Ajax Search Pro Warning: The response data is missing from the ajax request!
This could mean a server related issue.Check your .htaccess configuration and try disabling all other plugins to see if the problem persists.
*image capture attached from my mobile: iPhone 6S
—-
What could this be?
Hope you can guide!
Many thanks,
CarmeloAttachments:
You must be logged in to view attached files.March 11, 2021 at 2:24 pm #32130Hi,
Thanks for the details!
Looking at the source it seems like wp-rocket script deferring is causing the issue. It wraps the inline section of the script in the following function:
window.addEventListener('DOMContentLoaded', function() {
That completely breaks the functionality. I googled around, and looks like they are doing it intentionally. I understand what the initial purpose of this is, but this is an extremely bad practice with a very bad outcome. I found the information here: https://docs.wp-rocket.me/article/1265-load-javascript-deferred#technical
Please either turn off this feature, or add our plugin script to the exceptions:
Best,/jquery.ajaxsearchpro*.min.js
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 11, 2021 at 2:38 pm #32131Wow Ernest!
Many thanks for such great infor and super fast support.
I have read the article and I see what´s happening : (
Luckily it´s working again with the feature you provided.
Muchas gracias!!!
Best,
CarmeloMarch 12, 2021 at 9:40 am #32137You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.