Title: ucaught type error
Last modified: December 16, 2020

---

# ucaught type error

 *  [andret04](https://wordpress.org/support/users/andret04/)
 * (@andret04)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/)
 * Please I need help. It keep showing this error, I have installed jquery as suggested
   in the worpress update but it didnt fix it. What can I do. Thank you so much 
   in advance
 * Uncaught TypeError: Cannot read property ‘indexOf’ of undefined
    at HTMLInputElement.
   <anonymous> (woo-multistep-checkout.min.js?ver=2.0.0:1) at HTMLInputElement.dispatch(
   jquery.min.js?ver=3.5.1:2) at HTMLInputElement.v.handle (jquery.min.js?ver=3.5.1:
   2) (index):179 Uncaught TypeError: Cannot read property ‘1’ of null at window.
   onerror ((index):179)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fucaught-type-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Kai Hao](https://wordpress.org/support/users/kevin940726/)
 * (@kevin940726)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13795825)
 * Could you provide the reproduction steps for the error? I’m getting the same 
   error when visiting the page.
 *  Thread Starter [andret04](https://wordpress.org/support/users/andret04/)
 * (@andret04)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13797706)
 * Thanks a lot for your response. Sorry, Im not sure where to find that information.
   I am a beginner
 *  [Kai Hao](https://wordpress.org/support/users/kevin940726/)
 * (@kevin940726)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13800933)
 * [@andret04](https://wordpress.org/support/users/andret04/) That’s totally okay!
   I’m just asking if you could provide us the steps to reproduce the error you 
   encountered, because I can’t seem to reproduce it myself.
 * Something like:
    1. Go to [some page] 2. Click on [something] 3. Notice the error[
   error message] in the browser console
 * Bonus point if you could also provide the environments you’re using! Like:
 * Wordpress version: 5.6
    WooCommerce version: ?.?
 *  [chrisstefan](https://wordpress.org/support/users/chrisstefan/)
 * (@chrisstefan)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13802314)
 * I have this exact same problem. This has caused our page contact system to break
   and as a result we have been losing customers for days now, who tried to contact
   us. We have only just became aware of this.
    We are using the latest version 
   of WordPress (5.6) as well as for all the plugins. Our site is located at [https://www.sabusinesscoaches.co.za/](https://www.sabusinesscoaches.co.za/)
   and the problems are found on the pages containing actions and popups, such as
   [https://www.sabusinesscoaches.co.za/services/bcoaching/](https://www.sabusinesscoaches.co.za/services/bcoaching/)
   I have just installed jQuery Migrate plugin and some previous javascript errors
   disappeared, but not this one. Help urgently needed. UPDATE: I have reverted 
   to a previous WordPress version (4.5) and luckily the website is now usable again.
   However this is of course a temporary fix and the problem will still be there
   when we upgrade again.
    -  This reply was modified 5 years, 5 months ago by [chrisstefan](https://wordpress.org/support/users/chrisstefan/).
      Reason: Update with recent actions taken
 *  Thread Starter [andret04](https://wordpress.org/support/users/andret04/)
 * (@andret04)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13803950)
 * Thanks again, lets see if I get this right.
 * Wordpress version 5.6
    Woocommerce version Versión 4.8.0 I also installed jQuery
   migrate plugin. It did not help to solve the issue.
 * My webpage is [http://www.megaproducts.com.ec](http://www.megaproducts.com.ec)
   
   Here is the link where I detected the error, [https://www.megaproducts.com.ec/finalizar-compra/](https://www.megaproducts.com.ec/finalizar-compra/)
   and this is what the browser console shows:
 * Uncaught TypeError: Cannot read property ‘indexOf’ of undefined
    at HTMLInputElement.
   <anonymous> (woo-multistep-checkout.min.js?ver=2.0.0:1) at HTMLInputElement.dispatch(
   jquery.min.js?ver=3.5.1:2) at HTMLInputElement.v.handle (jquery.min.js?ver=3.5.1:
   2) (index):179 Uncaught TypeError: Cannot read property ‘1’ of null at window.
   onerror ((index):179) woo-multistep-checkout.min.js?ver=2.0.0:1 Uncaught TypeError:
   Cannot read property ‘indexOf’ of undefined at HTMLInputElement.<anonymous> (
   woo-multistep-checkout.min.js?ver=2.0.0:1) at HTMLInputElement.dispatch (jquery.
   min.js?ver=3.5.1:2) at HTMLInputElement.v.handle (jquery.min.js?ver=3.5.1:2) (
   index):179 Uncaught TypeError: Cannot read property ‘1’ of null at window.onerror((
   index):179)
 *  [Kai Hao](https://wordpress.org/support/users/kevin940726/)
 * (@kevin940726)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13806759)
 * [@andret04](https://wordpress.org/support/users/andret04/) Do we have to press
   anything to trigger the error? Or is the error showing as soon as you go to [https://www.megaproducts.com.ec/finalizar-compra/](https://www.megaproducts.com.ec/finalizar-compra/)?
 * When I go the that link, I see no errors. It would be really helpful if you can
   provide some additional info.
 *  Thread Starter [andret04](https://wordpress.org/support/users/andret04/)
 * (@andret04)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13810332)
 * [@kevin940726](https://wordpress.org/support/users/kevin940726/) Sorry, I was
   not more specific. So basically, you add a product to the cart, click next to
   go ahead with the purchase. It will direct you to fill up a form with your info
   and when you are done doing that, and click next ( siguiente) to pay, here it
   is when the error comes out. It wont let me pass and it will get stuck on that
   page.
 * I am not sure why. Any suggestions to fix this would be greatly appreciate it.
 * I just realized that the link doesnt show you the error because you have nothing
   in the cart. Sorry about that.
 *  [Kai Hao](https://wordpress.org/support/users/kevin940726/)
 * (@kevin940726)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13865742)
 * Hello [@andret04](https://wordpress.org/support/users/andret04/),
 * Sorry for getting back late. I believe I have now found the issue. It’s a regression
   after updating to WordPress 5.6 with the OceanWP theme. Fortunately, it has already
   been fixed upstream: [https://github.com/oceanwp/oceanwp/commit/ac68c23ae962818a8f1ac5adba662fc05750628f](https://github.com/oceanwp/oceanwp/commit/ac68c23ae962818a8f1ac5adba662fc05750628f).
 * Update your OceanWP theme to 2.0.1 or above and check if it fixes your issue.
   Cheers!

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

The topic ‘ucaught type error’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 8 replies
 * 3 participants
 * Last reply from: [Kai Hao](https://wordpress.org/support/users/kevin940726/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/ucaught-type-error/#post-13865742)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
