• Resolved swapot

    (@swapot)


    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)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @swapot,

    I understand your WooCommerce site is no longer sending you new order emails. Let me see what’s going on here.

    Can you share with us who is hosting your emails then? Are you using Gmail, Yahoo, etc?

    Have you tried downgrading the WooCommerce version where the email notifications are working fine? Does it fix the problem by using old versions?

    You may download older versions here: https://www.ads-software.com/plugins/woocommerce/advanced/

    Looking forward to your response,
    Alje

    Thread Starter swapot

    (@swapot)

    Hi @adminalje ,

    Can you share with us who is hosting your emails then? Are you using Gmail, Yahoo, etc?

    As mentioned is initial post, Forward Email is hosting my emails for the domain.

    Have you tried downgrading the WooCommerce version where the email notifications are working fine? Does it fix the problem by using old versions?”Have you tried downgrading the WooCommerce version where the email notifications are working fine? Does it fix the problem by using old versions?

    The Woocommerce version (9.6.2) hasn’t changed when the emails were working and then when they stopped working. Today I replaced the three email template files (email-header.php, customer-invoice.php, and customer-completed-order.php) with the older ones and retested an order. The emails were not received.

    Is there anything that stands out from the fatal error message?

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thanks for reaching out!

    From your description, it sounds like the emails are being generated and logged by the WP Mail Logging plugin but are not being received. This suggests that WooCommerce is successfully sending the emails, but they may be blocked or filtered by the email provider. Here are a few troubleshooting steps you can try:

    1. Check Spam/Junk Folders

    Sometimes emails may be marked as spam by the recipient’s email provider. Make sure to check both your inbox and spam folders.

    2. Contact Your Email Provider

    Since the emails are logged but not received, your email provider may be blocking them. Reach out to them and ask:

    • If emails from your website’s domain are being filtered or blocked.
    • If you need to set up SPF, DKIM, or DMARC records to improve email deliverability.

    The error message points to a potential issue with the Botiga Pro theme/plugin:

    Uncaught Error: Object of class WC_Product_Attribute could not be converted to string

    This suggests that the Botiga Pro add-to-cart notifications module might be conflicting with WooCommerce. To test:

    • Temporarily disable the Botiga Pro plugin and see if the issue persists.
    • Check if Botiga Pro has an update available.
    • Reach out to the Botiga Pro support team for assistance.

    If the issue continues after these steps, please let us know!

    Thread Starter swapot

    (@swapot)

    Hi @shahzeenfarooq

    Thanks for the reply and explanation of the fatal error in the logs. I’ll contact my theme developer about that.

    I installed WP Mail SMTP plugin and configured it to the SMTP server at Forward Email and that solved the email problem.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.