Warning: "The response data is missing (…)"

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Warning: "The response data is missing (…)"

This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30718
    allaboutfrench59
    allaboutfrench59
    Participant

    Hi,

    I just updated Ajax Search Pro and checked if everything was fine as usual but when I try to perform a search (for example here: https://allaboutfrench.com/french-sayings) I received this message:

    “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.”

    I tried to activate the Custom ajax handler as recommended but with no success…
    Can you please help me with that? Might it be related with WordPress 5.6 that I updated too?

    Thanks a lot in advance!

    PS : screenshots of before / after update

    #30720
    allaboutfrench59
    allaboutfrench59
    Participant
    You cannot access this content.
    #30731
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you for the details!

    The issue is caused by a 3rd party plugin (most likely), as I am seeing a function wrapped around the localized script: https://i.imgur.com/0UNimPx.png
    Wordpress does not do that by default, so something else is probably placing a function scrope around the localized string – this causes the variable to be undefined. I suspect maybe a cache plugin or something similar. I understand their intention, it is to probably increase performance, but the variables declared via wp_localize_script will be unusable, due to the function scope. I strongly recommend fixing this, whichever plugin is doing that to the localized scripts – as by default developers tend to use that within the window variable scope.

    Best,
    Ernest Marcinko

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


    #30749
    allaboutfrench59
    allaboutfrench59
    Participant

    Thanks a lot for these informations!
    They bring me to try to rollback WP Rocket to version 3.7 and everything went back to normal.

    Don’t worry, now that I know the issue is on their side I will contact their support.
    But do you have any idea for a quick fix? Or should I just not update WP Rocket anymore?
    Maybe an option on WP Rocket or something else?

    And in case it happens to some of you users, here are the changelogs for WP Rocket: https://wp-rocket.me/changelog/
    Seems like it might be coming from #3303 (https://github.com/wp-media/wp-rocket/issues/3303) or maybe #3402?

    Thanks a lot for the support

    #30757
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I will investigate this in more detail for sure for the upcoming release. We are moving to a different solution either way, that will probably circumvent this issue alltogether.
    Either way, they are probably will fix this sooner or later for sure. I don’t think those are related issues, but it is possible. I definitely need to investigate this further, to make sure I am not doing something incorrectly. From what it looks like, the issue is probably on their side.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.