• Resolved staggeringlygood

    (@staggeringlygood)


    Periodically (twice in the last 5 days), square will disconnect from our site leaving no payment method and costing us hundreds of pounds of lost business as well as several irate customers in the process.

    It doesn’t appear to correlate to peak times and memory usage is well within our servers capacity.

    I then go back into the plugin re-connct to square and it comes back up fine, will work for a few hours/days and then drop out again.

    Seriously frustrating and costly! Is there at the very least a way of getting an alert when the connection is dropped?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    I can understand how frustrating it is to have your main payment gateway disconnect on a live site.

    Is there at the very least a way of getting an alert when the connection is dropped?

    There isn’t one at the moment, but the extension itself should not disconnect this way. I do see a similar report that was submitted to our developers, but before I confirm that this is the same issue you’re having on your store, can you please get back to us with:

    1. System Status Report

    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.

    2. Square logs:

    There’s a built-in logging system enabled in the Square extension that could help you determine the cause of this behavior. If you haven’t enabled this already, you can enable this in (**WooCommerce > Settings > Square**) :

    square
    Link to image: https://d.pr/i/YAvv9A

    Once enabled, this saves sync logs under **WooCommerce > Status > Logs >**. Search for  Square logs in the drop-down at the top-right section and click on view button. Please copy the logs you’re seeing (for the date where your site was disconnected) and paste them as a response to this topic.

    [Please redact any private details, including address, name, email address, transaction details, API Keys, Passwords, etc]

    This will help us track where the problem lies. Note that we will only be able to view logs for actions performed after logging has been enabled. So we wouldn’t be able to track behavior via log if that occurred before enabling logs for the same.

    Thank you for working with us on this.

    Thread Starter staggeringlygood

    (@staggeringlygood)

    Okay this was already checked so will try and dig out the log.

    Thread Starter staggeringlygood

    (@staggeringlygood)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.staggeringlygood.com
    Site address (URL): https://www.staggeringlygood.com
    WC Version: 4.5.2
    REST API Version: ✔ 4.5.2
    WC Blocks Version: ✔ 3.1.0
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ❌ Inactive 1.5.0
    Log Directory Writable: ✔
    WP Version: 5.5.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.18.0
    PHP Version: 7.4.7
    PHP Post Max Size: 200 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 10000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.13-MariaDB
    Max Upload Size: 200 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 4.5.2
    WC Database Prefix: wp_
    Total Database Size: 90.58MB
    Database Data Size: 46.61MB
    Database Index Size: 43.97MB
    wp_woocommerce_sessions: Data: 3.02MB + Index: 0.08MB + 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.17MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 1.52MB + Index: 0.31MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 10.52MB + Index: 8.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + 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.03MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.17MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.17MB + Index: 0.20MB + Engine InnoDB
    wp_comments: Data: 4.50MB + Index: 2.25MB + Engine InnoDB
    wp_followup_coupons: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_coupon_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_customers: Data: 0.13MB + Index: 0.22MB + Engine InnoDB
    wp_followup_customer_carts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_orders: Data: 0.14MB + Index: 0.09MB + Engine InnoDB
    wp_followup_email_excludes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_orders: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_followup_email_tracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_followup_followup_history: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_order_categories: Data: 0.13MB + Index: 0.20MB + Engine InnoDB
    wp_followup_order_items: Data: 0.33MB + Index: 0.56MB + Engine InnoDB
    wp_followup_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscribers_to_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscriber_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailchimp_carts: Data: 0.25MB + Index: 0.00MB + Engine InnoDB
    wp_mailchimp_jobs: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 2.05MB + Index: 1.08MB + Engine InnoDB
    wp_postmeta: Data: 16.03MB + Index: 16.30MB + Engine InnoDB
    wp_posts: Data: 2.42MB + Index: 0.69MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 3.48MB + Index: 4.00MB + Engine InnoDB
    wp_users: Data: 0.14MB + Index: 0.14MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.05MB + 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.11MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 8.00MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + 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_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpklist_template_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_pickup_locations_geodata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_woocommerce_square_customers: Data: 0.36MB + Index: 0.00MB + Engine InnoDB
    wp_xeroom_credentials: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_xeroom_debug: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_xeroom_export_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_xeroom_license_key_status: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_xeroom_orders_export: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_xeroom_tax: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yikes_easy_mc_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 267
    br_minmax_limitation: 1
    custom_css: 1
    customize_changeset: 1
    nav_menu_item: 11
    order_form: 1
    page: 23
    post: 1
    product: 46
    product_variation: 15
    revision: 74
    shop_coupon: 256
    shop_order: 2581
    shop_order_refund: 30
    wc_order_email: 1
    wc_order_status: 7
    wc_pickup_location: 1
    wcs_ruleset: 5
    woo_discount: 1
    woo_discount_cart: 1
    wpcf7_contact_form: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (28) ###
    
    Age Gate: by Phil Baker – 2.12.0
    Astra Pro: by Brainstorm Force – 2.6.4
    Conditional Shipping for WooCommerce: by Lauri Karisola / WooElements.com – 2.1.1
    Contact Form 7: by Takayuki Miyoshi – 5.2.2
    Invoice Gateway For WooCommerce: by Rymera Web Co – 1.0.1 – Installed version not tested with active version of WooCommerce 4.5.2
    Mailchimp for WooCommerce: by Mailchimp – 2.4.7 – Installed version not tested with active version of WooCommerce 4.5.2
    Maps Block for Gutenberg: by WebFactory Ltd – 1.30
    Orbisius Child Theme Creator: by Svetoslav Marinov (Slavi) – 1.5.1
    Preoders for WooCommerce PRO: by Bright Plugins – 1.0.5 – Installed version not tested with active version of WooCommerce 4.5.2
    Redis Object Cache: by Till Krüss – 2.0.15
    Under Construction: by WebFactory Ltd – 3.82
    WordPress Users & WooCommerce Customers Import Export(BASIC): by WebToffee – 1.4.4
    WC Search Orders By Product: by WPHEKA – 1.5 – Installed version not tested with active version of WooCommerce 4.5.2
    Estimated Delivery Date Plugin For WooCommerce: by PluginHive – 1.8.2
    Woo Coming Soon: by Fahad Mahmood – 1.2.2
    Woo Discount Rules PRO 2.0: by Flycart Technologies LLP – 2.2.2
    Woo Discount Rules: by Flycart Technologies LLP – 2.2.2
    WooCart SendGrid Integration: by SendGrid && WooCart – 1.0.0
    WooCommerce Min and Max Quantities: by BeRocket – 3.0.4.2
    WooCommerce Local Pickup Plus: by SkyVerge – 2.8.3 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce Square: by WooCommerce – 2.2.2
    WooCommerce Wholesale Lead Capture: by Rymera Web Co – 1.14.7 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce Wholesale Order Form: by Rymera Web Co – 1.16.3
    WooCommerce Wholesale Prices Premium: by Rymera Web Co – 1.24.7
    WooCommerce Wholesale Prices: by Rymera Web Co – 1.11.11 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce: by Automattic – 4.5.2
    Xeroom - Woocommerce to Xero accounts synch: by Peter Lloyd – Xeroom 2.1.0 – Installed version not tested with active version of WooCommerce 4.5.2
    Easy Forms for Mailchimp: by YIKES
    Inc. – 6.7.0
    
    ### Inactive Plugins (18) ###
    
    Advanced Coupons for WooCommerce Free: by Rymera Web Co – 1.2.3 – Installed version not tested with active version of WooCommerce 4.5.2
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.6
    Akismet Anti-Spam: by Automattic – 4.1.6
    Estimated Delivery Date for Woocommerce (Basic): by PluginHive – 1.3.3 – Installed version not tested with active version of WooCommerce 4.5.2
    Filter WooCommerce Orders by Payment Method: by SkyVerge – 1.0.0 – Installed version not tested with active version of WooCommerce 4.5.2
    Follow-Up Emails: by WooCommerce – 4.9.7 – Installed version not tested with active version of WooCommerce 4.5.2
    If Menu - Visibility control for menu items: by Layered – 0.16.1
    NotificationX: by WPDeveloper – 1.9.0
    Order / Coupon / Subscription Export Import Plugin for WooCommerce (BASIC): by WebToffee – 1.6.9
    Simple Banner: by Ryan Petersen – 2.5.0
    Social Media Widget: by Noah Kagan – 4.0.6
    Ultimate Order Combination: by Fahad Mahmood – 1.2.2 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce GoCardless Gateway: by WooCommerce – 2.4.13 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce Max Quantity: by Isabel Castillo – 1.5.2 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce Order Export: by JEM Plugins – 3.0.5 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce Order Status Manager: by SkyVerge – 1.11.9 – Installed version not tested with active version of WooCommerce 4.5.2
    WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels (Basic): by WebToffee – 2.6.9
    WP Notification Bars: by MyThemeShop – 1.0.5
    
    ### Must Use Plugins (1) ###
    
    WooCart Customization: by WooCart – 3.20.0
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: ✔
    Currency: GBP (£)
    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: #5 - /store/
    Cart: #11 - /cart/
    Checkout: #10 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: #15 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: Astra Child theme of astra
    Version: 2.5.4
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Astra
    Parent Theme Version: 2.5.5
    Parent Theme Author URL: https://wpastra.com/about/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: ✔
    Debug Mode: Off
    
    ### Local Pickup Plus ###
    
    Status: ✔ Enabled
    Geocoding: ✔
    Pickup Locations: 1
    Pickup Appointments: ✔ Required
    Pickup Location Tax: –
    Checkout Display: Pickup selection mode: per orderCart item handling mode: automatic groupingDefault cart item handling: ship items
    
    ### Action Scheduler ###
    
    Canceled: 16
    Oldest: -0001-11-29 23:58:45 -0001
    Newest: -0001-11-29 23:58:45 -0001
    
    Complete: 118
    Oldest: 2020-10-09 09:40:06 +0100
    Newest: 2020-10-09 09:41:29 +0100
    
    Failed: 16
    Oldest: –
    Newest: –
    
    In-progress: 1
    Oldest: –
    Newest: –
    
    Pending: 17
    Oldest: 2020-10-09 10:05:59 +0100
    Newest: 2020-10-16 09:39:23 +0100
    
    
    Thread Starter staggeringlygood

    (@staggeringlygood)

    https://dpaste.com/2L2YP79H4.txt
    [Large code excerpt removed by moderator per our FAQ. Please use Pastebin or a Gist for all large code excerpts, they work better anyway.]

    • This reply was modified 5 years, 6 months ago by staggeringlygood.
    • This reply was modified 5 years, 6 months ago by Yui.
    Thread Starter staggeringlygood

    (@staggeringlygood)

    The most current log is massive and has loads of addresses and emails etc. Don’t have time to go through them all and redact them as it’d take hours. Is there something specific I can look for?

    Plugin Support Aashik P – a11n

    (@aashik)

    Thank you for the logs and System Status Report.

    I do see an existing report to our developers regarding IDEMPOTENCY_KEY_REUSED error in update_matched_products cycle for Square product sync. I’ve linked this topic in the GitHub report.

    We will get back to you if the developers need some more details for further investigation.

    I am having the same issue. Seems to disconnect every couple of days. May be linked to when I update inventory in woocommerce? I do not have inventory setup in square(want to only manage inventory on my wp backend)

    Plugin Support Aashik P – a11n

    (@aashik)

    I am having the same issue. Seems to disconnect every couple of days. May be linked to when I update inventory in woocommerce? I do not have inventory setup in square(want to only manage inventory on my wp backend)

    Please create a new forum topic with your System Status Report and Square logs so that we can further investigate what’s happening in your store.

    @staggeringlygood – our developers are currently working on a fix for your original report.

    You can keep an eye out for the changelogs to confirm if this is fixed in the coming update.

    I’ll mark this topic as solved for now. Please feel free to open a new topic if you have any other questions.

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

The topic ‘Square Keeps Disconnecting’ is closed to new replies.