• Resolved consumedesign

    (@consumedesign)


    Upgraded the plugins, wordpress and woo and not getting a javascript error on my checkout on the page load:

    
    Uncaught ReferenceError: WC_Square_Payment_Form_Handler is not defined
        at HTMLDocument.<anonymous> ((index):305)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
        at Function.ready (jquery.js?ver=1.12.4-wp:2)
        at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
    (anonymous) @ (index):305
    i @ jquery.js?ver=1.12.4-wp:2
    fireWith @ jquery.js?ver=1.12.4-wp:2
    ready @ jquery.js?ver=1.12.4-wp:2
    J @ jquery.js?ver=1.12.4-wp:2
    
    WooCommerce version:		3.9.1
    WordPress version:		5.3.2
    WooCommerce Square	 	by WooCommerce – 2.0.8 – Not tested with the active version of WooCommerce
    

    The CC fields remain hidden when Square is selected. I changed it to the Twenty Twenty Version: 1.1 theme with no luck, and disabled all the plug ins with no luck (when Square is the default the fields show but still get the JS error). This all happens in incognito mode as well.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there @consumedesign,

    I’m sorry to hear that you’re having issues with Square payment form!

    I tried to replicate the same JS console error on my test site with the same WooCommerce core and Square versions installed, but couldn’t. I have also switched my theme to Twenty Twenty:

    Square console
    Link to image: https://d.pr/i/AzF1ie

    There is a JS error, but it has a different wording.

    You mentioned that Square fields are not hidden anymore if you switch your theme and disable your plugins – this indicates that the issue is indeed related to something else on your site.

    If you switch your theme back to yours, are the fields hidden too? Or is it resolved only of you disable other plugins? If the latter, please enable them one by one testing after each to see which plugin interfers here.

    Let us know how that goes!

    I am using a theme from ThemeForest called Jardi Winery.
    (https://themeforest.net/item/jardi-winery-vineyard-wine-shop-/16390279)

    I have been using the Square plugin and everything was going fine until recently. I’m not sure when this started exactly however I am getting a similar error when Square is activated in Woocommerce. The page will not load and hangs.

    (index):78 Uncaught ReferenceError: WC_Square_Payment_Form_Handler is not defined
    at HTMLDocument.<anonymous> ((index):78)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at Function.ready (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)

    So that the site staying working I have turned Square off and am using Paypal until this is fixed.
    I have contacted the theme builder and they say it’s not their problem and to contact you, even though when temporarily testing with the 2020 theme i don’t get this issue.

    The website this occurs on is https://www.bartonestate.com.au.

    Thread Starter consumedesign

    (@consumedesign)

    They always say it’s not their issue, ha. We dumped the plug-in for Stripe, which works very well. The Square plug in is conflicting with another plug-in and I don’t want to troubleshoot it for then not do I want disable any other plug-in I have installed. Just remove this plug-in and get Stripe. Good luck.

    Hi there @gpengilly,

    I’m sorry to hear that your theme author is not cooperative towards the solution.
    There is no much we can do on our end to make the plugin compatible for every single theme out there, therefore we provide 100% compatibility with Storefront only and that’s why we ask to test with this theme.

    @consumedesign, a conflict test is a standard troubleshooting step for issues which we can’t replicate on a vanilla site.

    You can also use the Health Check plugin which would allow you to run a conflict test without affecting your live site – https://www.ads-software.com/plugins/health-check/. That should make a conflict test a bit smoother.

    You can find more details here too: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Please let us know if there is anything else we can do for you!

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WC_Square_Payment_Form_Handler is not defined’ is closed to new replies.