Woocommerce Error that seems to be preventing emails
-
Hi,
My site was sending Woocommerce new order emails (etc.) yesterday, but it is not today.
Today, I did update three files that Woocommerce was telling me were out of date (older, out of date versions were in my child theme folder): email-header.php, customer-invoice.php, and customer-completed-order.php. These three files are now all up to date with Woocommerce (9.6.2).
I installed the WP Mail Logging plugin and when I created a test order, it shows the new order was complete and sent to both the customer and me (site admin). However neither was received as I have access to both emails.
I have tested that the email providers are not down. (I can send and receive emails from them).
In the Woocommerce logs, I did receive a “fatal error”:
2025-02-18T05:22:11+00:00 Critical Uncaught Error: Object of class WC_Product_Attribute could not be converted to string in /home/bmaesma/public_html/wp-includes/formatting.php:1096
Additional context
{
"error": {
"type": 1,
"file": "/home/bmaesma/public_html/wp-includes/formatting.php",
"line": 1096
},
"remote-logging": true,
"backtrace": [
"",
"#0 /home/bmaesma/public_html/wp-includes/formatting.php(4655): wp_check_invalid_utf8()",
"#1 /home/bmaesma/public_html/wp-content/plugins/botiga-pro/inc/modules/add-to-cart-notifications/add-to-cart-notifications.php(232): esc_html()",
"#2 /home/bmaesma/public_html/wp-content/plugins/botiga-pro/inc/modules/add-to-cart-notifications/add-to-cart-notifications.php(293): Botiga_Add_To_Cart_Notifications->notification_output()",
"#3 /home/bmaesma/public_html/wp-includes/class-wp-hook.php(324): Botiga_Add_To_Cart_Notifications->extend_add_to_cart_fragments()",
"#4 /home/bmaesma/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()",
"#5 /home/bmaesma/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(229): apply_filters()",
"#6 /home/bmaesma/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(484): WC_AJAX::get_refreshed_fragments()",
"#7 /home/bmaesma/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::add_to_cart()",
"#8 /home/bmaesma/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
"#9 /home/bmaesma/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()",
"#10 /home/bmaesma/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()",
"#11 /home/bmaesma/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()",
"#12 /home/bmaesma/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
"#13 /home/bmaesma/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()",
"#14 /home/bmaesma/public_html/wp-includes/template-loader.php(13): do_action()",
"#15 /home/bmaesma/public_html/wp-blog-header.php(19): require_once('/home/bmaesma/p...')",
"#16 /home/bmaesma/public_html/index.php(17): require('/home/bmaesma/p...')",
"#17 {main}",
"thrown"
]
}I don’t know what to look for in the error above. I don’t know for sure if the error is blocking the sending of the emails, but I read that errors can do that.
I use Forward Email as my IMAP/SMTP mail provider (my web hosting does not offer email hosting: Rocket.net). I am not using a dedicated SMTP plugin – as I said, yesterday my site was sending the correct emails without one.
Can you please help me fix the error code (which I hope may fix the emails)?
- You must be logged in to reply to this topic.