WC Emails Not Firing With PayPal Payments
-
Running WC 6.5.1 and WP 6. When customers make a payment via PayPal, the order is received but WC is not sending new order notification emails to us or the customer. This was happening prior to the WP 6 update. Any ideas what may be going on? The server error log noted the following on the last PayPal order, which references a PayPal IP:
2022-05-26 17:58:38 UTC [apache][:warn] [pid 3965] [client 173.0.81.140:32102] Timeout waiting for output from CGI script /home/u888-hjcegfgoeccz/www/domain.com/public_html/index.php
WP Mail Logging is installed, but does not show any events for these PayPal orders.
-
Update:
This is also happening on credit card payments as well. WP SMTP reports the following error:
/home/customer/www/domain.com/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php (line: 655)
The test email sent via the WP SMTP plugin works fine. I’m unable to use WC to manually send invoice (new order) notifications to customers who just placed an order. It’s timing out and generating the same error as above, though WP Mail Logging notes the email has been sent.
Hello,
As a first step, to get a better idea of your site setup, please provide the following:
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”.?
Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if any other error is being displayed).
Please let us know.
Thank you for your response. A single unrelated fatal error log for WordFence was generated 18 days ago for being unable to connect to their scanning servers. Below is our system status with the domain changed.
### WordPress Environment ### WordPress address (URL): https://domain.com Site address (URL): https://domain.com WC Version: 6.5.1 REST API Version: ? 6.5.1 WC Blocks Version: ? 7.4.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: ? ### Server Environment ### Server Info: Apache PHP Version: 7.4.29 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1n-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.5.1 WC Database Prefix: wp_ieqx_ Total Database Size: 192.54MB Database Data Size: 157.15MB Database Index Size: 35.39MB wp_ieqx_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_order_items: Data: 1.55MB + Index: 0.73MB + Engine MyISAM wp_ieqx_woocommerce_order_itemmeta: Data: 10.63MB + Index: 6.47MB + Engine MyISAM wp_ieqx_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_ieqx_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_ieqx_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_ieqx_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB statistics_exclusions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM statistics_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM statistics_useronline: Data: 0.00MB + Index: 0.00MB + Engine MyISAM statistics_visit: Data: 0.00MB + Index: 0.00MB + Engine MyISAM statistics_visitor: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_actionscheduler_actions: Data: 0.19MB + Index: 0.19MB + Engine InnoDB wp_ieqx_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_actionscheduler_logs: Data: 0.16MB + Index: 0.13MB + Engine InnoDB wp_ieqx_commentmeta: Data: 0.04MB + Index: 0.03MB + Engine MyISAM wp_ieqx_comments: Data: 9.26MB + Index: 3.53MB + Engine MyISAM wp_ieqx_dynamic_widgets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_options: Data: 0.48MB + Index: 0.05MB + Engine MyISAM wp_ieqx_postmeta: Data: 34.32MB + Index: 17.82MB + Engine MyISAM wp_ieqx_posts: Data: 2.93MB + Index: 0.84MB + Engine MyISAM wp_ieqx_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_ieqx_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_ieqx_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_ieqx_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_ieqx_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ieqx_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_usermeta: Data: 2.04MB + Index: 1.12MB + Engine MyISAM wp_ieqx_users: Data: 0.12MB + Index: 0.09MB + Engine MyISAM wp_ieqx_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wc_customer_lookup: Data: 1.52MB + Index: 0.50MB + Engine InnoDB wp_ieqx_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ieqx_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ieqx_wc_order_product_lookup: Data: 2.52MB + Index: 1.22MB + Engine InnoDB wp_ieqx_wc_order_stats: Data: 1.52MB + Index: 0.77MB + Engine InnoDB wp_ieqx_wc_order_tax_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_ieqx_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_ieqx_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wfBlockedIPLog: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_ieqx_wfBlocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_ieqx_wfConfig: Data: 0.52MB + Index: 0.01MB + Engine MyISAM wp_ieqx_wfCrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_wfFileChanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wfFileMods: Data: 4.35MB + Index: 0.35MB + Engine MyISAM wp_ieqx_wfHits: Data: 0.49MB + Index: 0.11MB + Engine MyISAM wp_ieqx_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_wfIssues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_ieqx_wfKnownFileList: Data: 3.19MB + Index: 0.15MB + Engine MyISAM wp_ieqx_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wfLocs: Data: 0.03MB + Index: 0.01MB + Engine MyISAM wp_ieqx_wfLogins: Data: 0.29MB + Index: 0.06MB + Engine MyISAM wp_ieqx_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wfNotifications: Data: 0.04MB + Index: 0.00MB + Engine MyISAM wp_ieqx_wfPendingIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_ieqx_wfReverseCache: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_ieqx_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ieqx_wfStatus: Data: 0.10MB + Index: 0.04MB + Engine MyISAM wp_ieqx_wfTrafficRates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wpmailsmtp_tasks_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_ieqx_wpml_mails: Data: 79.52MB + Index: 0.00MB + Engine InnoDB wp_ieqx_yoast_indexable: Data: 0.44MB + Index: 0.33MB + Engine InnoDB wp_ieqx_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_ieqx_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ieqx_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ieqx_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_ieqx_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 137 blocked_user: 2 custom_css: 1 jetpack_migration: 2 nav_menu_item: 8 oembed_cache: 5 page: 41 product: 24 product_variation: 5 shop_coupon: 1 shop_order: 10473 shop_order_refund: 555 wp_global_styles: 1 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (28) ### WooCommerce Fraud Prevention Plugin Premium: by theDotstore – 2.1.0 Akismet Anti-Spam: by Automattic – 4.2.4 Autoptimize: by Frank Goossens (futtta) – 3.0.4 Contact Form 7: by Takayuki Miyoshi – 5.5.6.1 Disable Cart Fragments: by LittleBizzy – 1.3.0 Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.4 Dynamic Widgets: by Qurl – 1.5.16 Google XML Sitemaps: by Auctollo – 4.1.1 Head, Footer and Post Injections: by Stefano Lissa – 3.2.3 Max Mega Menu - Pro Addon: by megamenu.com – 2.2.4 Max Mega Menu: by megamenu.com – 2.9.6 Really Simple CAPTCHA: by Takayuki Miyoshi – 2.1 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 SiteGround Optimizer: by SiteGround – 7.1.1 WooCommerce Colors: by WooThemes – 1.0.7 WooCommerce Stripe Gateway: by WooCommerce – 5.5.0 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.9 Multi-Carrier Shipping Plugin for WooCommerce: by PluginHive – 2.1.2 WooCommerce Print Invoices/Packing Lists: by SkyVerge – 3.11.4 WooCommerce Shipment Tracking: by WooCommerce – 1.7.0 WooCommerce - ShipStation Integration: by WooCommerce – 4.1.48 WooCommerce Waitlist: by Neil Pie – 2.3.2 WooCommerce: by Automattic – 6.5.1 Wordfence Security: by Wordfence – 7.5.10 Yoast SEO: by Team Yoast – 18.9 WP Mail Logging: by Wysija – 1.10.4 WP Mail SMTP: by WPForms – 3.4.0 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.2.3 ### Inactive Plugins (0) ### ### Dropin Plugins (2) ### install.php: install.php object-cache.php: Memcached ### Must Use Plugins (1) ### SSO: by Garth Mortensen Mike Hansen – 0.1 ### 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: ? 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: #44 - /terms/ ### Theme ### Name: Version: (update to version 0 is available) Author URL: 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 ### Archive Template: Your theme has a woocommerce.php file you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
Hello,
Can you please check if emails are enabled in WooCommerce > Settings > Emails? If they are, have you tried placing a test order with a default payment method such as Check payments or Bank transfer to see if emails get sent out?
If emails are not sent with default payment methods, the issue is likely caused by a conflict with your theme or with another plugin. To determine what’s causing the issue, please temporarily switch your theme back to Storefront and disable all plugins except for WooCommerce. If that resolves the issue, then re-enable plugins one-by-one until you find the one that’s causing the conflict.
You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Emails are enabled.
If emails are not sent with default payment methods, the issue is likely caused by a conflict with your theme or with another plugin.
This website is hosted with SiteGround. I suspect the issue is being caused by the SG Optimizer plugin. Clearing the SG Optimizer plugin cache, and also the dynamic and memcached cache on SG’s backend, restored email functionality. This will require additional investigation on my part, though I now believe SiteGround’s cache is responsible for the problem. Thanks for your replies and I will mark this issue as resolved.
Hello @captaincrank!
Thanks for your replies and I will mark this issue as resolved.
Glad to hear it and thanks for letting us know!
If you want to run a full conflict test, I recommend that you go through the documentation here.
Cheers!
- The topic ‘WC Emails Not Firing With PayPal Payments’ is closed to new replies.