Search form doesn't search first time. Must input twice.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search form doesn't search first time. Must input twice.

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33677
    Ingersolldigital68
    Ingersolldigital68
    Participant

    The search form takes two entries to work. When you enter the first time and click enter, there are no little searching dots and the page refreshes. When you enter it again and click enter it works. I have added a short video capture of the problem. Also, it works fine when logged in. Please advise. Thanks. Mike

    Attachments:
    You must be logged in to view attached files.
    #33683
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    There is a major script error on the error console: https://i.imgur.com/EhtstBU.png
    That blocks further script execution and the plugin can not initialize after that.
    If the search works when you are logged in, then this is an issue with your cache for sure. If you are using some sort of a script minify/defer feature, that can be the cause of that error message. On the reported error srouce I see an inline variable, which tries to access a property, but the script where it is initialized is defered, so it does not exist yet: https://i.imgur.com/bk2rkKE.png
    Make sure to always monitor the error console when using script defer or async features – those need to be setup very carefully.

    It works after the redirection because on that page the error message is not generated as the defer attribute is not there, I assume because of the query arguments, so the plugin initializes correctly.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.