• Resolved jamesc91

    (@jamesc91)


    Hello,

    I am using Woodmart / Elementor and get this uncaught error on relation to the search. Have you seen this before / know how I could fix this?

    search.min.js?ver=1.30.0:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘split’)
    at n.getSearchStyle (search.min.js?ver=1.30.0:1:42129)
    at n.hide (search.min.js?ver=1.30.0:1:33793)
    at n.close (search.min.js?ver=1.30.0:1:19294)
    at n.dispose (search.min.js?ver=1.30.0:1:47797)
    at Object.reinitSearchBar (search.min.js?ver=1.30.0:1:67750)
    at HTMLInputElement. (search.min.js?ver=1.30.0:1:67179)
    at ce.each (jquery.min.js?ver=3.7.1:2:3129)
    at e..each (jquery.min.js?ver=3.7.1:2:1594)
    at Object.pullAndReconditionSearchBars (search.min.js?ver=1.30.0:1:66953)
    at search.min.js?ver=1.30.0:1:64598

    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi @jamesc91,

    This error can occur when the search bar is removed from the page e.g. by a JavaScript script. In that case, there’s nothing to reference, and the error appears.

    However, I see that on your site the search bar is now displaying correctly and the error no longer appears in the console.

    Thread Starter jamesc91

    (@jamesc91)

    Hi Damian,

    Hope you are well and thanks for the reply.

    Would a caching plugin cause this to be removed?

    The strange thing is it does appear when you load the page then refresh. Or loads on a product page straight away. I am having an issue where when you go to a product on a category page then click back on mobile sometimes the page does not load products until it is refreshed. Thinking it could be one of these errors causing them not to load.

    Cheers

    James

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