• Resolved Chris Raymond

    (@chrisraymond)


    Hello,
    Recently started having issues with the checkout page. My team reviewed and appears to be JS issues(Uncaught ReferenceError: WC_Square_Payment_Form_Handler is not defined) which means this class(WC_Square_Payment_Form_Handler) is not available in DOM. Not sure how to resolve as the JS file in in min form. Any ideas how to fix? Thanks in advance.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hey @chrisraymond,

    I can see the error in the console on the site but I’m not having that problem on my test site. Are you running version 2.0.3?

    I’d try deleting and reinstalling the plugin and retesting.

    Thread Starter Chris Raymond

    (@chrisraymond)

    Hi @shellbeezy
    We are indeed running version 2.0.3 of this plugin. Also using the latest version of Woocommerce, and WordPress as well.

    Thread Starter Chris Raymond

    (@chrisraymond)

    Also, tried deleting and reinstalling but issue persists.

    Hi @chrisraymond,

    Thank you for the additional information! Testing this I too see the error on your site.

    Checking through my test site, I see some hidden fields but no errors. Due to this, have you switched out your theme to something like Storefront or Twenty Seventeen temporarily to see if the issue persists? There may be a javascript conflict there that is not happening on our side, which is why we are not able to replicate the issue.

    We do recommend a staging site for these tests so that your Live site is unaffected. You can reach out to your Host if you need to have a staging site set up, as they usually can assist you with this. Please let us know the results!

    Thread Starter Chris Raymond

    (@chrisraymond)

    Hi @nixiack8,
    Thank you for the recommendation. What we found was custom code in the Functions.php file “defer js” that caused the issue. Once we removed that, all worked as expected. Thanks.

    @nixiack8 @chrisraymond Thanks for the help and Post. i also had same problem, it was one of a plugin that having issue. i just deactivated the plugin and worked smoothly.

    Anonymous User 18019806

    (@anonymized-18019806)

    I woke up to this issue on a client site this AM. I found the solution to the issue to be similar to the @chrisraymond found.

    For me, the issue was the SG Optimizer plugin. I had their “Combine JS Files” feature turned on which was causing this problem. Once I turned that off, the fields loaded just as they should.

    Figured I’d add this as this is the top-ranking response for this error on google right now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JS Error on Checkout’ is closed to new replies.