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

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14951
    jasonking
    jasonking
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

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


    #14956
    jasonking
    jasonking
    Participant

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

    #14957
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

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

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.