Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › The response data is missing
- This topic has 7 replies, 2 voices, and was last updated 2 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
October 15, 2023 at 7:44 am #45704
barabasis
ParticipantHello,
we purchased support again cause we have an urgent problem on our website with your plugin.
Pls see attachement a.jpg for the error we are getting on this page:
https://mistresskym.com/blog/if you try to change the language (bottom selector) to e.g. italian, german or japanese or other languages but the default English.
We followed EACH AND EVERY step to troubleshoot it from this page:
https://documentation.ajaxsearchpro.com/troubleshooting/the-response-data-is-missing-from-the-ajax-request-error-messagebut didn’t help solve the problem.
Both translatepress tea and our hosting said everything is going fine with their plugin and server.
We also tried to change custom handler and several other plugin options but nothing seems to work.
We also have cloudflare and bypassed cache and other settings but nothing worked too.
Also, this is a new problem and we didn’t change anything on our stack since years.ps. we gave you admin credentials to the live website, so apls be careful. If you need staging access pls let us know.
Thanks
Kind regardsOctober 16, 2023 at 5:03 pm #45715Ernest Marcinko
KeymasterHi!
Sure, I will help you don’t worry.
So after one quick peek I already see the problem. After changing to that language, the search ajax response is altered (very likely by the translator plugin), which is causing the problem. The original response should start with this, but on the translation it is altered like this.
Those are basically special delimiters to filter the ajax request before showing the results. If they are changed, then the plugin can’t fetch the data.Optimally XHR requests should not be altered, that is a very bad idea. However if you can somehow add these delimiter words to the translation exception list, that may work as well:
___ASPSTART_HTML___ ___ASPEND_HTML___ ___ASPSTART_DATA___ ___ASPEND_DATA___Unfortunately I don’t know how the translator works, but if you can add exceptions, then this could very likely solve the issue.
October 16, 2023 at 5:25 pm #45717barabasis
ParticipantYou cannot access this content.
October 17, 2023 at 9:00 am #45720Ernest Marcinko
KeymasterWPML, Loco and Polylang work perfectly fine, as they are not intercepting XHR request reponse bodies, but translating the individual components on the database layer. We can’t really do much to prevent these on-the-fly translations, it is out of the plugins reach.
I can check out the settings for this specific plugin, maybe there is something to change, but I can’t login, the username/password seems to be incorrect. Can you check please?
October 17, 2023 at 9:38 am #45721barabasis
ParticipantYou cannot access this content.
October 17, 2023 at 9:51 am #45722Ernest Marcinko
KeymasterThanks, that worked.
So I have added the strings, but that does nothing at all, they are not respected. I also added the full XHR path, that may have resolved it but I am not sure.
So far I can make queries, so that may have helped.October 17, 2023 at 10:00 am #45724barabasis
Participantthat seems to have solved the problem, definitely!!
It definitely helped asking for your support, you are always so kind and competent!Thanks a lot and again thanks for your best-in-class plugin you have made
kind regards
October 17, 2023 at 10:06 am #45725Ernest Marcinko
KeymasterYou are very welcome and thank you very much for your kind words 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.