Search bar not returning results / jscript error

This topic has 4 replies, 2 voices, and was last updated 2 years, 1 months ago ago by Olga Barlow

  • Avatar: laurena86
    February 21, 2022 at 17:33


    We noticed that recently our search bar in the top left corner of the header of our site is whirring and whirring when you search, and not returning any results / product previews as it usually did. Before, it would auto suggest results with a preview without having to hit Enter. Now it doesn´t do this.

    Below is the error that I am getting in console that seems related to this.

    Our developers have said that they think it is a bug in the theme´s minify script. I updated the theme to the latest version and it doesn´t seem to have helped.

    Any help would be greatly appreciated!

    Many thanks,

    ajaxSearch.min.js:1 Uncaught TypeError: Cannot read properties of null (reading ‘replace’)
    at formatResult (ajaxSearch.min.js:1:18073)
    at Object. (ajaxSearch.min.js:1:8801)
    at Function.each (jquery.min.js:2:3003)
    at u.suggest (ajaxSearch.min.js:1:8656)
    at u.processResponse (ajaxSearch.min.js:1:10500)
    at Object.
    at c (jquery.min.js:2:28327)
    at Object.fireWith [as resolveWith] (jquery.min.js:2:29072)
    at l (jquery.min.js:2:79901)
    at XMLHttpRequest.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 22, 2022 at 22:22


    Issue caused by Surge plugin. Once I disable that search works ok.


    Avatar: laurena86
    February 22, 2022 at 22:34

    Hi Olga

    What’s the Surge plugin? We don’t have a plug in with that name?

    Many thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 23, 2022 at 01:08


    You have
    Ask your developers who installed that. It does not come with our theme.


  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.