Square breaks checkout process when enabled
-
For the past couple of days if square is enabled as a payment option you cannot complete the checkout process on my site. On the first step when you click next nothing happens. As soon as you disable square the checkout process works.
We have updated all plugins, theme and woocommerce/wordpress. Tried uninstalling square and reinstalling to latest version. Disconnected square and reconnected. Nothing works.
Any ideas what has happened to square in past couple of days?
-
Hi @suffa01,
Could you enable logging under WooCommerce > Settings > Payments and select Manage next to Square. Then at the bottom of those settings you’ll see a checkbox to enable Logging.
Link to image: https://cld.wthms.co/t7saqjThen if any errors are logged you’ll find those under WooCommerce > Status > Logs tab. There will be a Square log for every day that logging is enabled. Pick the appropriate day to find that days logs.
Would you also please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.Thanks, this info will be helpful in troubleshooting your issues.
I had a look at the square logs and there is nothing out of the ordinary. Just the typical “refresh token” messages.
With further testing I found that if I disable multi-step checkout and set to a single page checkout then my site will work with square enabled.
Hi @suffa01,
Oh ok, good find. I’m not sure why Square itself would break the multi-step checkout and other payment methods would work. Would the plugin/theme you were using to create that have logging as well? Perhaps there would be a clue there.
The site uses oceanwp and elementor ill take a look if I can produce some other logs.
It’s weird that it started happening as there were no plugin or theme updates that were done on the day it decided to stop working. The only thing for certain is that when square is enabled you cant continue through the multi-step checkout.Hi @suffa01,
Thanks for continuing to dig in. Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.### WordPress Environment ### WordPress address (URL): https://led86.com.au Site address (URL): https://led86.com.au WC Version: 3.8.0 REST API Version: ✔ 1.0.2 Log Directory Writable: ✔ WP Version: 5.3 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.10 (Debian) PHP Version: 7.0.33-1~dotdeb+8.1 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version PHP Post Max Size: 10 MB PHP Time Limit: 300 PHP Max Input Vars: 2500 cURL Version: 7.38.0 OpenSSL/1.0.1t SUHOSIN Installed: – MySQL Version: ❌ 5.5.62-0+deb8u1-log - We recommend a minimum MySQL version of 5.6. See: WordPress requirements Max Upload Size: 10 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.8.0 WC Database Prefix: wp_ MaxMind GeoIP Database: ✔ Total Database Size: 59.24MB Database Data Size: 49.28MB Database Index Size: 9.96MB wp_woocommerce_sessions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.23MB + Index: 0.25MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB sib_model_contact: Data: 0.02MB + Index: 0.00MB + Engine InnoDB smackuci_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB smackuci_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 1.41MB + Index: 0.92MB + Engine InnoDB wp_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_import_detail_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_import_log_detail: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_import_postID: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 6.05MB + Index: 0.20MB + Engine InnoDB wp_postmeta: Data: 20.47MB + Index: 4.42MB + Engine InnoDB wp_posts: Data: 5.41MB + Index: 0.75MB + Engine InnoDB wp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_redirection_404: Data: 1.02MB + Index: 0.30MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.33MB + Index: 0.47MB + Engine InnoDB wp_redirection_logs: Data: 1.02MB + Index: 0.27MB + Engine InnoDB wp_smackcsv_file_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_terms: Data: 0.13MB + Index: 0.16MB + Engine InnoDB wp_term_relationships: Data: 0.20MB + Index: 0.14MB + Engine InnoDB wp_term_taxonomy: Data: 0.14MB + Index: 0.19MB + Engine InnoDB wp_ultimate_csv_importer_acf_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_log_values: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_manageshortcodes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_mappingtemplate: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_media: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_shortcodes_statusrel: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ultimate_csv_importer_shortcode_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_usermeta: Data: 0.22MB + Index: 0.22MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_vxc_qbooks_accounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_vxc_qbooks_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Data: 1.27MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Data: 5.52MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 1.27MB + Index: 0.23MB + Engine InnoDB wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Data: 0.14MB + Index: 0.03MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Data: 0.17MB + Index: 0.11MB + Engine InnoDB wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_ywrr_email_blocklist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ywrr_email_schedule: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ywsfl_list: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (53) ### Advanced Custom Fields PRO: by Elliot Condon – 5.6.10 Afterpay Gateway for WooCommerce: by Afterpay – 2.1.3 Autoptimize: by Frank Goossens (futtta) – 2.5.1 Breeze: by Cloudways – 1.1.2 Cloudflare: by John Wineman Furkan Yilmaz Junade Ali (Cloudflare Team) – 3.4.1 Custom Post Type UI: by WebDevStudios – 1.7.1 Ele Custom Skin: by Dudaster.com – 1.3.8 Elementor Pro: by Elementor.com – 2.7.3 Elementor: by Elementor.com – 2.7.5 Essential Addons for Elementor: by WPDeveloper – 3.6.0 Woody ad snippets (PHP snippets | Insert PHP): by Will Bontrager Software LLC Webcraftic – 2.3.0 Jetpack by WordPress.com: by Automattic – 7.9.1 Leverage Browser Caching: by Rinku Yadav – 1.8 Mailchimp for WooCommerce: by Mailchimp – 2.3 – Not tested with the active version of WooCommerce Metorik Helper: by Metorik – 1.3.0 – Not tested with the active version of WooCommerce My Custom Functions: by Space X-Chimp – 4.40 NotificationX: by WPDeveloper – 1.4.2 Ocean Extra: by OceanWP – 1.5.19 PixelYourSite Pinterest: by PixelYourSite – 2.0.8 – Not tested with the active version of WooCommerce PixelYourSite PRO: by PixelYourSite – 7.3.6 – Not tested with the active version of WooCommerce PixelYourSite Super Pack: by PixelYourSite – 2.0.6 – Not tested with the active version of WooCommerce Product Catalog Feed Pro by PixelYourSite: by PixelYourSite – 4.0.6 – Not tested with the active version of WooCommerce Really Simple SSL: by Rogier Lankhorst Mark Wolters – 3.2.6 reCAPTCHA in WP comments form: by Joan Miquel Viadé – 9.1.2 Redirection: by John Godley – 4.4.2 SendGrid: by SendGrid – 1.11.8 WooCommerce Shippit: by Shippit Pty Ltd – 1.5.3 – Not tested with the active version of WooCommerce ShortPixel Image Optimizer: by ShortPixel – 4.14.6 WC Password Strength Settings: by Daniel Santoro – 2.1.0 – Not tested with the active version of WooCommerce WooCommerce Bulk Editor: by realmag777 – 1.0.5.1 WooCommerce Admin: by WooCommerce – 0.22.0 WooCommerce Cart Reports: by WooCommerce – 1.2.4 – Not tested with the active version of WooCommerce WooCommerce Cost of Goods: by SkyVerge – 2.8.4 – Not tested with the active version of WooCommerce WooCommerce Freshdesk: by Automattic – 1.1.17 – Not tested with the active version of WooCommerce WooCommerce Stripe Gateway: by WooCommerce – 4.3.1 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.3.5 WooCommerce Sequential Order Numbers: by SkyVerge – 1.9.2 WooCommerce Square: by WooCommerce – 2.0.7 WooCommerce: by Automattic – 3.8.0 Wordfence Login Security: by Wordfence – 1.0.4 Wordfence Security: by Wordfence – 7.4.1 Yoast SEO Premium: by Team Yoast – 12.4 Yoast SEO: WooCommerce: by Team Yoast – 12.2 – Not tested with the active version of WooCommerce YITH WooCommerce Advanced Reviews Premium: by YITH – 1.6.2 – Not tested with the active version of WooCommerce YITH WooCommerce Brands Add-on Premium: by YITH – 1.3.5 – Not tested with the active version of WooCommerce YITH WooCommerce Category Accordion Premium: by YITH – 1.0.25 – Not tested with the active version of WooCommerce YITH WooCommerce Email Templates Premium: by YITH – 1.3.18 – Not tested with the active version of WooCommerce YITH WooCommerce Order Tracking Premium: by YITH – 1.5.9 – Not tested with the active version of WooCommerce YITH WooCommerce Review Reminder Premium: by YITH – 1.5.4 – Not tested with the active version of WooCommerce YITH WooCommerce Save for Later Premium: by YITH – 1.0.16 – Not tested with the active version of WooCommerce YITH WooCommerce Waiting List Premium: by YITH – 1.6.2 – Not tested with the active version of WooCommerce YITH WooCommerce Wishlist Premium: by YITH – 2.2.12 – Not tested with the active version of WooCommerce Zip - WooCommerce: by Zip – 2.1.4 – Not tested with the active version of WooCommerce ### Inactive Plugins (3) ### Disable XML-RPC: by Philip Erb – 1.0.1 PowerPack Elements: by Team IdeaBox - PowerPack Elements – 1.3.9.1 YITH WooCommerce Review For Discounts Premium: by YITH – 1.2.8 – Not tested with the active version of WooCommerce ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: ✔ Force SSL: – Currency: AUD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #171 - /store Cart: #1863 - /cart Checkout: #1864 - /checkout My account: #1865 - /my-account Terms and conditions: #2461 - /sales-returns-and-refunds ### Theme ### Name: OceanWP Version: 1.7.3 Author URL: https://oceanwp.org/about-me/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: oceanwp/woocommerce/cart/mini-cart.php oceanwp/woocommerce/content-single-product.php /home/179421.cloudwaysapps.com/vyjfnkzzmf/public_html/wp-content/plugins/yith-woocommerce-email-templates-premium/templates/emails/woocommerce2.5/emails/email-footer.php /home/179421.cloudwaysapps.com/vyjfnkzzmf/public_html/wp-content/plugins/yith-woocommerce-email-templates-premium/templates/emails/woocommerce2.5/emails/email-header.php /home/179421.cloudwaysapps.com/vyjfnkzzmf/public_html/wp-content/plugins/yith-woocommerce-email-templates-premium/templates/emails/woocommerce3.7/emails/email-order-details.php /home/179421.cloudwaysapps.com/vyjfnkzzmf/public_html/wp-content/plugins/yith-woocommerce-email-templates-premium/templates/emails/woocommerce3.7/emails/email-order-items.php /home/179421.cloudwaysapps.com/vyjfnkzzmf/public_html/wp-content/plugins/yith-woocommerce-email-templates-premium/templates/emails/woocommerce2.5/emails/email-styles.php oceanwp/woocommerce/loop/loop-start.php /home/179421.cloudwaysapps.com/vyjfnkzzmf/public_html/wp-content/plugins/yith-woocommerce-advanced-reviews-premium/templates/ywar-rating.php version 3.1.0 is out of date. The core version is 3.6.0 oceanwp/woocommerce/single-product/title.php Outdated Templates: ❌ Learn how to update ### Square ### Environment: Production Tokenization Enabled: ✔ Debug Mode: Save to Log ### Action Scheduler ### Complete: 1,344 Oldest: 2019-10-27 04:09:32 +0000 Newest: 2019-11-26 23:04:23 +0000 Pending: 3 Oldest: 2019-11-27 00:04:23 +0000 Newest: 2019-12-03 00:26:41 +0000 Canceled: 58 Oldest: 2019-11-01 09:40:11 +0000 Newest: 2019-11-28 11:47:30 +0000 In-progress: 0 Oldest: – Newest: – Failed: 3 Oldest: – Newest: –
Could be due to Autoptimize optimizing the JS, try if unticking the “also optimize cart/ checkout”-option fixes things?
Hi @suffa01,
Thanks for that system status, after looking at that and the site there seems to be some sort of JavaScript error/conflict happening here.
Link to image: https://cld.wthms.co/0R8DkKSometimes a delete/reinstall could help, but I think perhaps in this case something loading on the checkout page stop the DOM from loading the WC_Square_Payment_Form_Handler JavaScript. Which perhaps this is coming from a setting in the Auto Optimize plugin? I assume maybe it has a way to minify and/or combine JavaScript that could be causing issues?
I think its the Autooptimize pluging causing the issue. I’ve disabled it and can run multistep checkout again.
Thanks all.Well, you could always keep AO active and simply untick the “also optimize cart/ checkout”-option 🙂
Ill give that a try, thanks 🙂
Ill give that a try, thanks 🙂
Let us know how it goes :).
Hi there,
We haven’t heard from you in a while so I’ll be marking this thread as resolved.
Feel free to open a new thread and link to this one if you have further questions though.
Have a wonderful day ahead!
- The topic ‘Square breaks checkout process when enabled’ is closed to new replies.