• Resolved speedypotato

    (@speedypotato)


    Hi all, I recently started using wordpress + woocommerce. Recently(as of a week ago-ish), I’ve been getting duplicate new order emails to both my e-mail and to the customer’s e-mail. All other emails to my knowledge are just fine. Any help would be appreciated.

    WP Mail Logging

    Two emails to A(customer), two emails to B(me), 3 other orders (c, d, e) for order complete which are just fine.

    View post on imgur.com

    My Inbox
    Had a duplicate email on 10/28, but since 10/31 it’s been every new order email.

    View post on imgur.com

    NOT USING PAYPAL.

    Woocommerce Status Report

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.speedylabs.shop
    Site address (URL): https://www.speedylabs.shop
    WC Version: 5.8.0
    REST API Version: ? 5.8.0
    WC Blocks Version: ? 5.9.1
    Action Scheduler Version: ? 3.3.0
    WC Admin Version: ? 2.7.2
    Log Directory Writable: ?
    WP Version: 5.8.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.24
    PHP Post Max Size: 40 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.79.0
    OpenSSL/1.1.1l
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.21-MariaDB
    Max Upload Size: 40 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.8.0
    WC Database Prefix: wp_
    Total Database Size: 13.89MB
    Database Data Size: 10.60MB
    Database Index Size: 3.29MB
    wp_woocommerce_sessions: Data: 1.02MB + 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.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.11MB + Index: 0.13MB + 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
    wp_actionscheduler_actions: Data: 0.22MB + Index: 0.28MB + 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.19MB + Index: 0.16MB + Engine InnoDB
    wp_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_aioseo_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.16MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 4.02MB + Index: 0.11MB + Engine InnoDB
    wp_postmeta: Data: 0.42MB + Index: 0.39MB + Engine InnoDB
    wp_posts: Data: 0.28MB + Index: 0.06MB + 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: 0.09MB + Index: 0.09MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + 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.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_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpml_mails: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 27
    customize_changeset: 10
    feedback: 7
    mailpoet_page: 1
    nav_menu_item: 6
    page: 11
    post: 2
    product: 10
    product_variation: 9
    revision: 31
    shop_order: 81
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (7) ###
    
    Jetpack: by Automattic – 10.3
    Simple CSS: by Tom Usborne – 1.1.1
    WooCommerce Payments: by Automattic – 3.2.3
    WooCommerce Shipping & Tax: by WooCommerce – 1.25.19
    WooCommerce: by Automattic – 5.8.0
    WP Mail Logging: by Wysija – 1.9.9
    WP Mail SMTP: by WPForms – 3.1.0
    
    ### Inactive Plugins (0) ###
    
    ### 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: –
    
    ### WC Pages ###
    
    Shop base: #6 - /store/
    Cart: #7 - /cart/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.9.1
    Author URL: https://woocommerce.com/
    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: –
    
    ### Subscriptions ###
    
    WCS_DEBUG: ? No
    Subscriptions Mode: ? Live
    Subscriptions Live URL: https://www.speedylabs.shop/
    Subscription Statuses: –
    WooCommerce Account Connected: ? No
    
    ### Store Setup ###
    
    Country / State: United States (US) — Michigan
    
    ### Payment Gateway Support ###
    
    WooCommerce Payments: products
    refunds
    subscriptions
    subscription_cancellation
    subscription_suspension
    subscription_reactivation
    subscription_amount_changes
    subscription_date_changes
    subscription_payment_method_change
    subscription_payment_method_change_customer
    subscription_payment_method_change_admin
    multiple_subscriptions
    tokenization
    add_payment_method
    
    ### Action Scheduler ###
    
    Complete: 716
    Oldest: 2021-10-15 00:57:34 +0000
    Newest: 2021-11-04 15:02:50 +0000
    
    Failed: 2
    Oldest: 2021-10-15 22:14:29 +0000
    Newest: 2021-10-15 22:17:26 +0000
    
    Pending: 1
    Oldest: 2021-11-04 16:22:08 +0000
    Newest: 2021-11-04 16:22:08 +0000
    
    ### Status report information ###
    
    Generated at: 2021-11-04 11:11:18 -04:00
    
Viewing 9 replies - 1 through 9 (of 9 total)
  • MayKato

    (@maykato)

    Hello,

    This kind of problem is usually caused by a conflict with your theme or with another plugin. The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Test to see if the issue has been resolved

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Thread Starter speedypotato

    (@speedypotato)

    1. I am using the Storefront theme already, just with a bunch of colors changed in the customizer.

    2. Honestly I don’t really have many plugins – just the bare minimum for the most part. Woocommerce/payments/shipping is a given, WP Mail SMTP is needed to send e-mails, and I turned on WP Mail Logging because of these duplicate email issues. That leaves just Simple CSS and Jetpack. I suppose I could disable jetpack but considering its popularity and also by Automattic I would be surprised if this was the issue.

    Mike W

    (@nixiack8)

    Hi @speedypotato,

    It is possible that there is a setting mixup regarding the WP Mail SMTP plugin. I would double check the settings and also check with your Host to see if they see something which might be the root cause. If you can (if there is the possibility) you can disable the WP Mail SMTP plugin and configure email through your Host, and see if the issue persists.

    Let us know the results!

    Thread Starter speedypotato

    (@speedypotato)

    I’ve looked around WP Mail SMTP settings and didn’t see much. Also checked sendinblue but nothing seemed out of the ordinary there either.

    My hosting setup uses a VPS so I suppose I could look into setting something up. I’m unfortunately not too familiar with how e-mail works and when setting up wordpress on both a dedicated machine and VPS I wasn’t able to send e-mails with wordpress’ default system – which led me to setup WP Mail SMTP.

    It’s been a few days and I’ve been watching the e-mail logs. It seems to be a 50-50 chance for a duplicate e-mail to be sent. Oddly enough, only the “New Order” e-mails get duplicated too still.

    Just counted:

    11 orders which only sent out one “New Order” email
    8 orders which sent out a duplicated “New Order” e-mail

    Sam L.

    (@scionet)

    Hello @speedypotato

    Please take a screenshot of the order notes from an order that sent out duplicate emails. Sometimes a misconfigured payment gateway can trigger duplicate emails. You can take the screenshot and upload the file to your site’s Media Library. Then share the link to it in the forum post.

    Let us know the results!

    Thread Starter speedypotato

    (@speedypotato)

    @scionet I think we’re getting close, I’ve looked through a couple orders which sent out duplicate emails and the order notes are very odd.

    The duplicate orders I checked all show 2 lines of Pending -> Processing: https://i.imgur.com/2rawavb.jpg

    However, some of the duplicate orders also deduct the stock count twice!: https://i.imgur.com/aYTcwd7.jpg

    A normal order’s notes for reference: https://i.imgur.com/LUP8E5s.jpg

    Would both the above cases be related to the payment gateway?

    Sam L.

    (@scionet)

    Hello @speedypotato

    We suspect it’s whatever has triggered the duplicate status changes to “processing”. Sadly, there isn’t an indication from the note as to what has triggered this.

    Please open up a ticket at WooCommerce (https://woocommerce.com/my-account/create-a-ticket/) for us to take a closer look, you should link this thread in the ticket as well.

    Good luck.

    Thread Starter speedypotato

    (@speedypotato)

    Thanks, I’ve just submitted the ticket.

    Felipe (a11n)

    (@felipea8c)

    Perfect. Thank you for confirming that!

    In this case, we will mark the topic as resolved on the forums as we are already helping you directly on the ticket. ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Woocommerce sending 2 emails on new order’ is closed to new replies.