This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Ajax functionality not working, no auto search or clickable options

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Ajax functionality not working, no auto search or clickable options

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14951
    jasonkingjasonking
    Participant

    The 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.

    #14953
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    #14956
    jasonkingjasonking
    Participant

    Thank you very much Ernest, I can confirm that was the problem and it’s now working again.

    #14957
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Great! Will make sure to fix this in the upcoming release.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.