• Resolved x1code

    (@secretja)


    Hi,

    We have JavaScript error on website, checkout page.

    jquery-3.6.0.min.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')

    And when we click on coupon code submit or delete product we got:

    cart.min.js?ver=9.8.5:1 Uncaught TypeError: t.addClass(...).block is not a function

    We had similar problem one another website and you manage to fix it. Right now we can’t contact you on Klarna website because you have error and there, chat don’t work. When your plugin is disabled, all works fine. Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Klarna

    (@klarnaplugin)

    Hello,

    Thank you for raising this! What plugin version are you using? Would you be able to share your url for troubleshooting? Have you tried the same fix you were recommended previously?

    Kind regards,

    Sara/Klarna team

    Thread Starter x1code

    (@secretja)

    Hi Sara,

    Website isn’t live, it’s in development. You did something, this is regarding parameters, not sure what is missing but you manage to fix that. Unfortunately I can’t contact you on website so I needed to contact you here.

        if ("undefined" == typeof wc_checkout_params)
    return !1;
    e.blockUI.defaults.overlayCSS.cursor = "default";
    Plugin Support Andreas – Krokedil

    (@boozebrorsan)

    @secretja

    I think the error comes from that you important an older version of jQuery 3.6.0 and not using the jQuery version that is available in WordPress.

    I have seen in the past that merchants has added an import script that loads jquery-3.6.0 from a CDN service.

    Do you know if you are doing any imports? If so try and remove that and hopefully the JS error will be gone.

    Thread Starter x1code

    (@secretja)

    Hi @boozebrorsan ,

    This isn’t the case, fresh theme, Hello, is giving this error, I disabled all plugins and only problem is your plugin. We had exactly the same problem with another client and then we contacted Klarna support and they fixed this, or they told as what we need to do in dashboard, we don’t have access to this history. We can’t contact Klarna support because support chat don’t work…

    Plugin Support Andreas – Krokedil

    (@boozebrorsan)

    HI @secretja

    I think we would need more info around this to be able to figure this out. Can you reach out to us (Krokedil) in our support form here. We might need info that is not suitable to leave on an open forum. When we have looked at it we can post (hopefully) a solution here in the forum. I hope that sounds good?

    Thread Starter x1code

    (@secretja)

    Hi Andreas,

    Thank you for support!!!

    Plugin Support Andreas – Krokedil

    (@boozebrorsan)

    The error was an important of an older version of jQuery 3.6.0 that was placed in a widget.

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

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