Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Ajax functionality not working, no auto search or clickable options
- This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by
Ernest Marcinko.
-
AuthorPosts
-
September 29, 2017 at 2:07 pm #14951
jasonking
ParticipantThe Ajax isn’t working on the search form, no spinning icon, no searching, no results, no search settings switch opening when clicked.
Before this happened, it was working really well. I can’t think of anything that changed on the website to cause the problem. The only odd thing I noticed was that the index emptied, but I rebuilt it.
Your plugin has been updated to the latest version, but problem persists.
Don’t think it’s a plugin conflict, I already tried switching them all off and retested.
PHP debug didn’t turn up anything helpful.
I’m seeing this error in the web dev tools console in Chrome, only on this page:
Uncaught SyntaxError: Unexpected token ‘ in JSON at position 390
at JSON.parse (<anonymous>)
at HTMLDivElement.<anonymous> (jquery.ajaxsearchpro.min.js?ver=qnU4iR:15)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at Object.window.ASP.initialize (jquery.ajaxsearchpro.min.js?ver=qnU4iR:15)
at HTMLDocument.<anonymous> (jquery.ajaxsearchpro.min.js?ver=qnU4iR:15)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)The plugin’s great normally, thank you.
September 29, 2017 at 2:14 pm #14953Ernest Marcinko
KeymasterHi!
I believe it is probably an apostrophe in the ‘No results text’, or at least that’s what I suspect. Somehow it is not encoded correctly and the escaping fails.
Can you please try to remove the apostrophe from that text? This is the option: https://i.imgur.com/k2fhqYZ.png
If I guessed right, I will make sure to do some tests on that and fix it in the next release.September 29, 2017 at 2:30 pm #14956jasonking
ParticipantThank you very much Ernest, I can confirm that was the problem and it’s now working again.
September 29, 2017 at 4:02 pm #14957Ernest Marcinko
KeymasterGreat! Will make sure to fix this in the upcoming release.
-
AuthorPosts
- You must be logged in to reply to this topic.