Title: Uncaught error
Last modified: March 24, 2025

---

# Uncaught error

 *  Resolved [jamesc91](https://wordpress.org/support/users/jamesc91/)
 * (@jamesc91)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/uncaught-error-50/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-error-50%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Damian Góra](https://wordpress.org/support/users/damian-gora/)
 * (@damian-gora)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/uncaught-error-50/#post-18387354)
 * Hi [@jamesc91](https://wordpress.org/support/users/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](https://wordpress.org/support/users/jamesc91/)
 * (@jamesc91)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/uncaught-error-50/#post-18387577)
 * 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
 *  Plugin Author [Damian Góra](https://wordpress.org/support/users/damian-gora/)
 * (@damian-gora)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/uncaught-error-50/#post-18393153)
 * Hi James,
 * Caching plugins are unlikely to cause this issue. Ideally, we need to find a 
   set of repeatable steps that consistently trigger the error.
 * I can’t recreate this issue. I tried do it on Android na iPhone and on desktop.
   I wasn’t able to reproduce the JavaScript error in either case. Could you provide
   the exact steps needed to trigger the JavaScript error? Also, please let us know
   which device and browser you’re using when the error occurs.
 *  Thread Starter [jamesc91](https://wordpress.org/support/users/jamesc91/)
 * (@jamesc91)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/uncaught-error-50/#post-18412094)
 * Hi Damian,
 * Apologies I did not get a notification for your reply.
 * I did speak to our caching plugin guys and they said it is not to do with them.
 * I am using Google chrome – I have listed below a video to replicate.
 * [https://drive.google.com/file/d/1Ifs5fvrc5FJ_1uAzNmrPYEkkJdDIek82/view](https://drive.google.com/file/d/1Ifs5fvrc5FJ_1uAzNmrPYEkkJdDIek82/view)
 *  Plugin Author [Damian Góra](https://wordpress.org/support/users/damian-gora/)
 * (@damian-gora)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/uncaught-error-50/#post-18421476)
 * Hi James,
 * Thanks for the clearer explanation. We’ll make sure to handle this error in the
   next plugin release.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Uncaught error’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-for-woocommerce/assets/icon-256x256.png?rev=
   2883754)
 * [FiboSearch - Ajax Search for WooCommerce](https://wordpress.org/plugins/ajax-search-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-for-woocommerce/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Damian Góra](https://wordpress.org/support/users/damian-gora/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/uncaught-error-50/#post-18421476)
 * Status: resolved