• Resolved mohamednabil2

    (@mohamednabil2)


    Hello,
    I’ve a problem customers only get 1 email that contain the information about order but they don’t get the other email that contain the download link.
    The only email customers get is this email below:

    Thanks for your order. It’s on-hold until we confirm that payment has been received. In the meantime, here’s a reminder of what you ordered:

    I followed woocommerce docs instructions and added this function to “functions.php” file:

    add_action( ‘woocommerce_thankyou’, ‘custom_woocommerce_auto_complete_order’ );
    function custom_woocommerce_auto_complete_order( $order_id ) {
    if ( ! $order_id ) {
    return;
    }

    $order = wc_get_order( $order_id );
    $order->update_status( ‘completed’ );
    }

    The order auto completed just fine but costumers don’t get the confirmation email.
    my woocommerce version is 4.2.2
    WordPress version is 5.5.3

    System Report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://tebooks.net
    Site address (URL): https://tebooks.net
    WC Version: 4.2.2
    REST API Version: ? 1.0.8
    WC Blocks Version: ? 2.5.16
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.2.4
    Log Directory Writable: ?
    WP Version: 5.5.3
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.11
    PHP Post Max Size: 2 GB
    PHP Time Limit: 500
    PHP Max Input Vars: 1000
    cURL Version: 7.73.0
    OpenSSL/1.1.1h
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 1 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.6.2
    WC Database Prefix: TE_
    Total Database Size: 63.88MB
    Database Data Size: 36.73MB
    Database Index Size: 27.15MB
    TE_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    TE_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_woocommerce_downloadable_product_permissions: Data: 0.20MB + Index: 0.41MB + Engine InnoDB
    TE_woocommerce_order_items: Data: 0.33MB + Index: 0.09MB + Engine InnoDB
    TE_woocommerce_order_itemmeta: Data: 2.11MB + Index: 2.72MB + Engine InnoDB
    TE_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    TE_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_actionscheduler_actions: Data: 3.02MB + Index: 1.38MB + Engine InnoDB
    TE_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_actionscheduler_logs: Data: 2.02MB + Index: 1.53MB + Engine InnoDB
    TE_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_comments: Data: 1.25MB + Index: 0.67MB + Engine InnoDB
    TE_ewd_uwpm_email_links_clicked_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_ewd_uwpm_email_only_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_ewd_uwpm_email_open_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_ewd_uwpm_email_send_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_options: Data: 2.02MB + Index: 0.14MB + Engine InnoDB
    TE_postmeta: Data: 14.52MB + Index: 12.86MB + Engine InnoDB
    TE_posts: Data: 5.48MB + Index: 1.03MB + Engine InnoDB
    TE_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_term_relationships: Data: 0.14MB + Index: 0.11MB + Engine InnoDB
    TE_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_usermeta: Data: 2.50MB + Index: 3.91MB + Engine InnoDB
    TE_users: Data: 0.20MB + Index: 0.23MB + Engine InnoDB
    TE_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_wc_customer_lookup: Data: 0.27MB + Index: 0.22MB + Engine InnoDB
    TE_wc_download_log: Data: 0.30MB + Index: 0.27MB + Engine InnoDB
    TE_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_wc_order_product_lookup: Data: 0.33MB + Index: 0.38MB + Engine InnoDB
    TE_wc_order_stats: Data: 0.30MB + Index: 0.31MB + Engine InnoDB
    TE_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    TE_wc_product_meta_lookup: Data: 0.14MB + Index: 0.33MB + Engine InnoDB
    TE_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    TE_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    TE_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 1305
    page: 8
    post: 1
    product: 1222
    revision: 21
    shop_order: 2796
    shop_order_refund: 8
    uwpm_mail_template: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (5) ###
    
    Exclude Pages From Menu: by Vinod Dalvi – 2.0
    Google Ads for WooCommerce: by Kliken – 1.0.4 – Installed version not tested with active version of WooCommerce 4.2.2
    Really Simple SSL: by Really Simple Plugins – 3.3.5
    Increase Maximum Upload File Size: by Imagify – 2.0.4
    WooCommerce: by Automattic – 4.2.2 (update to version 4.6.2 is available)
    
    ### Inactive Plugins (3) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.6
    Hello Dolly: by Matt Mullenweg – 1.7.2
    Ultimate WP Mail: by Etoile Web Design – 0.23
    
    ### Must Use Plugins (1) ###
    
    SSO: by Garth Mortensen
    Mike Hansen – 0.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)
    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: #7 - /
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: #10 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Storefront
    Version: 2.7.0 (update to version 2.8.0 is available)
    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: –
    
    ### Action Scheduler ###
    
    Complete: 6,249
    Oldest: 2020-10-09 12:06:55 +0000
    Newest: 2020-11-09 11:34:00 +0000
    
    

    The order status is automatically completed and still the emails that contain the download link are not sent.
    Even when I change the status to “Processing” or “Completed” there is no message sent.
    “Processing Order” and “Order Completed” emails are enabled.

    Please help.
    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • AJ a11n

    (@amandasjackson)

    Hi @mohamednabil2

    If the completed order email does not contain the download link, there may be an issue with your site’s database.

    We have a guide for fixing that available here:

    https://docs.woocommerce.com/document/completed-order-email-doesnt-contain-download-links/

    If the issue is that completed order emails are not sending, you will want to work through the troubleshooting guide here:

    https://docs.woocommerce.com/document/email-faq/#section-4

    Thread Starter mohamednabil2

    (@mohamednabil2)

    Unfortunately none of this is the cause of the problem I tried to send normal emails and it be sent just fine but any email that contain download link or any kind of link the message not sent. So please what is the problem if only emails that contains link not be sent.
    I used
    WP Mail Logging plugin and tried to resend and it doesn’t work.
    Easy WP SMTP all normal emails be sent fine but email with link not arrive.
    Thank you.

    AJ a11n

    (@amandasjackson)

    Hi @mohamednabil2

    If the email was not sent (not showing in WP Mail Logging), this could indicate a plugin conflict blocking the send by, for example, erring before they are generated. To find out what is causing this, you can either rule out conflicts by disabling plugins/themes other than WooCommerce itself, or you can use the WP debug log to view errors. If there are ‘fatal errors,’ this may be the problem.

    Thread Starter mohamednabil2

    (@mohamednabil2)

    All emails are showing in WP Mail Logging. but the email with link isn’t arrived despite the fact it showing in WP Mail as “sent”. I tried to resend the email using WP Mail Logging and the email still not arrived.

    I get this error when I enabled wordpress debug:

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/cart is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/cart/items is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/cart/items is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/cart/items is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/cart/items/(?P[\w-]{32}) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/cart/items/(?P[\w-]{32}) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/cart/items/(?P[\w-]{32}) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/products is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/products/(?P[\d]+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/products/collection-data is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/products/attributes is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/products/attributes/(?P[\d]+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/store/products/attributes/(?P[\d]+)/terms is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home3/te/public_html/wp-includes/functions.php on line 5229

    AJ a11n

    (@amandasjackson)

    Hi @mohamednabil2

    I took another look at the site’s System Status Report and I see that there is a mismatch between the version of WooCommerce and the database

    WC Version: 4.2.2
    WC Database Version: 4.6.2

    Are you able to make a full backup of your site (database and files), run updates for everything that’s out of date, and then let me know if the problem still persists? Often times, current issues can be resolved simply because your website’s software is outdated.

    AJ a11n

    (@amandasjackson)

    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.

    Thread Starter mohamednabil2

    (@mohamednabil2)

    The problem solved it wasn’t WooCommerce problem it was web hosting problem with Office365 I cancelled it and everything worked fine.
    Thanks for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Download link doesn’t sent’ is closed to new replies.