• Resolved curiouslt

    (@curiouslt)


    This seems to be a new error that is happening as of 6/17

    Here is my system report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://miralon.net
    Site address (URL): https://miralon.net
    WC Version: 6.6.1
    REST API Version: ✔ 6.6.1
    WC Blocks Version: ✔ 7.6.2
    Action Scheduler Version: ✔ 3.4.0
    Log Directory Writable: ✔
    WP Version: 6.0
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.21.5
    PHP Version: 7.4.28
    PHP Post Max Size: 128 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.15-MariaDB-1:10.5.15+maria~focal
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 6.6.1
    WC Database Prefix: eqi_
    Total Database Size: 35.33MB
    Database Data Size: 26.69MB
    Database Index Size: 8.64MB
    eqi_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    eqi_woocommerce_order_items: Data: 0.11MB + Index: 0.05MB + Engine InnoDB
    eqi_woocommerce_order_itemmeta: Data: 0.50MB + Index: 0.55MB + Engine InnoDB
    eqi_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    eqi_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_actionscheduler_actions: Data: 0.08MB + Index: 0.13MB + Engine InnoDB
    eqi_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    eqi_commentmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    eqi_comments: Data: 1.52MB + Index: 0.59MB + Engine InnoDB
    eqi_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    eqi_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    eqi_mailpoet_scheduled_tasks: Data: 0.14MB + Index: 0.13MB + Engine InnoDB
    eqi_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    eqi_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    eqi_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    eqi_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    eqi_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_mailpoet_subscribers: Data: 0.11MB + Index: 0.19MB + Engine InnoDB
    eqi_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_subscriber_segment: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    eqi_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_options: Data: 2.17MB + Index: 0.08MB + Engine InnoDB
    eqi_postmeta: Data: 3.52MB + Index: 4.00MB + Engine InnoDB
    eqi_posts: Data: 12.52MB + Index: 0.22MB + Engine InnoDB
    eqi_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_usermeta: Data: 1.52MB + Index: 0.86MB + Engine InnoDB
    eqi_users: Data: 0.09MB + Index: 0.08MB + Engine InnoDB
    eqi_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    eqi_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    eqi_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_wc_customer_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    eqi_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_wc_order_product_lookup: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    eqi_wc_order_stats: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    eqi_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    eqi_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    eqi_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    eqi_woocommerce_square_customers: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    eqi_wt_iew_action_history: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    eqi_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    eqi_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 150
    mailpoet_page: 1
    mc4wp-form: 1
    nav_menu_item: 22
    page: 14
    post: 5
    product: 26
    product_variation: 14
    revision: 253
    salient_g_sections: 1
    shop_coupon: 13
    shop_order: 539
    shop_order_refund: 3
    shop_subscription: 7
    tablepress_table: 1
    wp_global_styles: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (23) ###
    
    Duplicate Page: by mndpsingh287 – 4.4.8
    Jetpack: by Automattic – 11.0
    Salient WPBakery Page Builder: by Michael M - WPBakery.com | Modified by ThemeNectar – 6.6.0
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.7
    MailPoet 3 (New): by MailPoet – 3.91.0
    MainWP Child: by MainWP – 4.2.3
    Order Export & Order Import for WooCommerce: by WebToffee – 2.2.4
    Salient Core: by ThemeNectar – 1.8.2
    Salient Demo Importer: by ThemeNectar – 1.3
    Salient Home Slider: by ThemeNectar – 1.4
    Salient Nectar Slider: by ThemeNectar – 1.7
    Salient Portfolio: by ThemeNectar – 1.7
    Salient Shortcodes: by ThemeNectar – 1.5
    Salient Social: by ThemeNectar – 1.2
    Salient Widgets: by ThemeNectar – 1.2
    SVG Support: by Benbodhi – 2.4.2
    TablePress: by Tobias Bäthge – 1.14
    WooCommerce All Products For Subscriptions: by WooCommerce – 3.3.1
    WooCommerce Shipping & Tax: by WooCommerce – 1.26.1
    WooCommerce Square: by WooCommerce – 3.1.0
    WooCommerce Subscriptions: by WooCommerce – 4.4.0
    WooCommerce: by Automattic – 6.6.1
    WordPress Importer: by wordpressdotorg – 0.7
    
    ### Inactive Plugins (0) ###
    
    ### Must Use Plugins (1) ###
    
    Kinsta Must-use Plugins: by Kinsta Team – 2.4.3
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    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: ✔
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #5 - /shop/
    Cart: #6 - /cart/
    Checkout: #7 - /checkout/
    My account: #8 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Salient
    Version: 13.0.5
    Author URL: https://themeforest.net/user/themenectar
    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: salient/woocommerce/cart/mini-cart.php
    salient/woocommerce/checkout/form-checkout.php
    salient/woocommerce/checkout/review-order.php
    salient/woocommerce/checkout/terms.php
    salient/woocommerce/content-product.php
    salient/woocommerce/content-single-product.php
    salient/woocommerce/loop/add-to-cart.php
    salient/woocommerce/loop/loop-start.php
    salient/woocommerce/myaccount/form-login.php
    salient/woocommerce/single-product/product-image.php
    salient/woocommerce/single-product/rating.php
    salient/woocommerce/single-product/tabs/description.php
    salient/woocommerce/single-product/tabs/tabs.php
    salient/woocommerce/single-product/title.php
    salient/woocommerce/single-product-reviews.php
    
    ### Subscriptions ###
    
    WCS_DEBUG: ✔ No
    Subscriptions Mode: ✔ Live
    Subscriptions Live URL: https://miralon.net
    Subscription Statuses: wc-active: 2
    wc-pending: 1
    wc-on-hold: 1
    wc-cancelled: 3
    
    WooCommerce Account Connected: ✔ Yes
    Active Product Key: ✔ Yes
    Report Cache Enabled: ✔ Yes
    Cache Update Failures: ✔ 0 failure
    
    ### Store Setup ###
    
    Country / State: United States (US) — Florida
    
    ### Subscriptions by Payment Gateway ###
    
    Square: wc-active: 2
    wc-cancelled: 3
    wc-on-hold: 1
    wc-pending: 1
    
    ### Payment Gateway Support ###
    
    Square: products
    card_types
    customer_decline_messages
    payment_form
    authorization
    charge
    charge-virtual
    capture_charge
    refunds
    voids
    customer_id
    tokenization
    add_payment_method
    token_editor
    subscriptions
    subscription_suspension
    subscription_cancellation
    subscription_reactivation
    subscription_amount_changes
    subscription_date_changes
    multiple_subscriptions
    subscription_payment_method_change_customer
    subscription_payment_method_change_admin
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: 
    Debug Mode: Save to Log
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ✔ Next scheduled: 2022-06-28 11:07:09 +00:00
    Options: ✔
    Notes: 86
    Onboarding: completed
    
    ### All Products for WooCommerce Subscriptions ###
    
    Template Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 175
    Oldest: 2022-05-27 17:21:49 +0000
    Newest: 2022-06-27 17:08:44 +0000
    
    Failed: 1
    Oldest: 2022-05-20 17:59:52 +0000
    Newest: 2022-05-20 17:59:52 +0000
    
    Pending: 3
    Oldest: 2022-06-28 16:22:31 +0000
    Newest: 2022-07-31 03:20:40 +0000
    
    ### Status report information ###
    
    Generated at: 2022-06-27 17:10:26 +00:00
    

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey @curiouslt,

    Sorry to hear about the trouble there. We definitely want customers to be able to check out.

    Have they been able to check out until recently or are you just getting started with Square?

    Are customers seeing any error messages?

    If you can, please install the WP Debugging plugin. It enables WordPress’s debug mode and will save error messages to a log file. There will be a link in the admin bar at the top of the screen to view the log. If this happens again, please check the log and paste it here in your reply.

    Thanks!

    Thread Starter curiouslt

    (@curiouslt)

    yes, orders have been failing since the 17th. I tried rolling back to the previous version, but that did not work.

    Here is the debug on the failed order:
    28-Jun-2022 13:55:56 UTC] WordPress database error Duplicate entry '' for key 'PRIMARY' for query INSERT INTOeqi_woocommerce_square_customers(square_id,email_address`) VALUES (”, ‘natasha@mhthealth.com’) made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct->process_payment, WooCommerce\Square\Gateway->get_order, WooCommerce\Square\Gateway\Customer_Helper::add_customer

    [28-Jun-2022 13:56:02 UTC] WordPress database error Duplicate entry ” for key ‘PRIMARY’ for query INSERT INTO eqi_woocommerce_square_customers (square_id, email_address) VALUES (”, ‘natasha@mhthealth.com’) made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct->process_payment, WooCommerce\Square\Gateway->get_order, WooCommerce\Square\Gateway\Customer_Helper::add_customer`

    Hey @curiouslt,

    Thanks for checking on that error. This is a bug that was recently uncovered. Until then, you’re welcome to add the table yourself.

    You would need to access your web host’s database tool. It could be phpMyAdmin or something else. You can also use the WP phpMyAdmin plugin. Please make a backup before making any changes.

    After that run the SQL statement that’s in this link:

    https://gist.github.com/billrobbins/5b01f075a6936a51b2ef464d8d9dea98

    If you need help running that, your web host may be able to assist you. That should get this table created for you.

    Let us know if customers can check out after that.

    Thread Starter curiouslt

    (@curiouslt)

    Unfortunately, this did not resolve the issue. The table already exists and is populated.

    Here is a screenshot of the error the host received when they ran the query.
    https://drive.google.com/file/d/1FFNAcb-5RS7o6zvnS5WvsP6d-T8REW7-/view?usp=sharing

    Hey @curiouslt,

    My apologies. I had in mind a different error. That’s definitely not the situation here. It looks like the structure of this table may not be set up correctly. That’s causing it to try and reuse the “primary key” with a value that already exists. This should automatically increment the key number by one with each new entry.

    Could I get you to open up a ticket for us at WooCommerce.com about this? Please include the error you mentioned earlier in your message.

    https://woocommerce.com/my-account/create-a-ticket/

    Thanks!

    Thread Starter curiouslt

    (@curiouslt)

    Just an FYI for anyone that stumbles across this. After being on with Woo chat for a 1/2 hour with no real help, I decided to disconnect Square after seeing the store location wasn’t showing up in the dropbox on the settings page. I reconnected Square and that reset things, and orders are now processing again.

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

The topic ‘All orders are failing’ is closed to new replies.