• 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 to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Could you provide the reproduction steps for the error? I’m getting the same error when visiting the page.

    Thread Starter andret04

    (@andret04)

    Thanks a lot for your response. Sorry, Im not sure where to find that information. I am a beginner

    @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: ?.?

    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/ and the problems are found on the pages containing actions and popups, such as 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 4 years, 3 months ago by chrisstefan. Reason: Update with recent actions taken
    Thread Starter andret04

    (@andret04)

    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 https://www.megaproducts.com.ec
    Here is the link where I detected the error, 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)

    @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/ ?

    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

    (@andret04)

    @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.

    Hello @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.

    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.