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 2 years, 5 months ago.
- AuthorPosts
- December 15, 2020 at 6:46 pm #30718
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
-
This topic was modified 2 years, 5 months ago by
allaboutfrench59.
December 15, 2020 at 6:52 pm #30720You cannot access this content.December 16, 2020 at 9:56 am #30731Hi,
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
Best,
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.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 16, 2020 at 11:58 am #30749Thanks 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
December 16, 2020 at 1:52 pm #30757I 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.
Best,
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.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This topic was modified 2 years, 5 months ago by
- AuthorPosts
You must be logged in to reply to this topic.