Due to some changes in the way that the WordPress Core handles PHP mailer in version 4.6 Cart66 Pro and other plugins may generate errors and appear not to be functioning. Cart66 Cloud is free of this defect as the plugin was rebuilt from the ground up to meet important needs that were previously not possible to achieve with a WordPress plugin alone and runs on the Reality66 servers.
Is your Cart66 store being impacted by this WordPress form mailer bug?
Symptoms of the class-phpmailer.php:946 error:
When a customer places an order they see an error message (example below) even though the transaction is actually completed!
The invoice is generated and the payment is processed; the customer just doesn’t know it because of the error message:
Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: ‘ in /home/website/public_html/wp-includes/class-phpmailer.php:946 Stack trace: #0 /home/website/public_html/wp-includes/pluggable.php(352): PHPMailer->setFrom(”, ‘WordPress’) #1 /home/website/public_html/wp-content/plugins/cart66/models/Cart66Notifications.php(16): wp_mail(‘firstname.lastname@example.org…’, false, ‘ \n————-…’, ‘From: <>\r\n\\’) #2 /home/website/public_html/wp-content/plugins/cart66/models/Cart66Notifications.php(39): Cart66Notifications::mail(‘email@example.com…’, false, ‘ \n————-…’, ‘From: <>\r\n\\’) #3 /home/website/public_html/wp-content/plugins/cart66/models/Cart66Admin.php(65): Cart66Notifications->sendEmailReceipts() #4 [internal function]: Cart66Admin::ordersPage(”) #5 /home/website/public_html/wp-includes/plugin.php(524): call_user_func_array(Array, Array) #6 /home/website/public_html/wp-admin/admin.php(222): do_action(‘toplevel_page_c…’) #7 /home/website/public_html/wp-admin/index.php(10): require_on in /home/website/public_html/wp-includes/class-phpmailer.php on line 946
Here’s how to fix this so that your customers can check out with Cart66
Time for some good news bad news; there is a way to fix this issue but it’s not ideal – you will need to revert to WordPress 4.5.4 (available in the WordPress release archives). This post will be updated when a permanent solution is released; if you have resolved this issue without using an outdated version of WordPress free to comment with the solution.
Update: Configure your receipt notifications in cart66 Pro.
Go to Cart66 → Settings → Notifications and fill in the receipt email fields:
- From Name
- From Email
- From Subject
That’s it all fixed! The error message wasn’t visible in older versions of WordPress due to how the mail hander worked, so you wouldn’t ever see the warning message. Updating to 4.6 with the new php mailer made the error visible, which is why transaction processed even though an error was returned.