Mobile search giving an error "response data is missing"

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 Ernest Marcinko 1 year, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32128
    carterangon76
    carterangon76
    Participant

    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,
    Carmelo

    Attachments:
    You must be logged in to view attached files.
    #32130
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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:

    /jquery.ajaxsearchpro*.min.js

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #32131
    carterangon76
    carterangon76
    Participant

    Wow 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,
    Carmelo

    #32137
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.