• Resolved chinaman123

    (@chinaman123)


    Hi,
    WooCommerce HTML emails sent to notify of new orders and such are broken. Background colors not showing, part of tags like ‘<tr’ are showing. No logo showing in header. Table is broken and not showing properly, no emoji showing and so on.

    It broke since updating to WooCommerce 4.0. Before that it worked fine last month.

    Things I did to try resolve the problem:

    – Deactivated all the plugins except WooCommerce.
    – Deactivated and then activated WooCommerce plugin.
    – Changed theme to the twenty nineteen or so.
    – Reinstalled WordPress update in Dashboard > Update
    – Simplified my function.php down to the bare minimum needed to link the theme to the Parent theme.
    – Changed the Charset and Collation in database to utf8_uni, and going to wp_config.php and changing that to utf8 instead of utf8mb4, and alternating between all these.
    – Checked WooCommerce Email template php file and see no changes between it and the update.
    – Called my hosting company and asked the tech guy if he knew anything about this, and if it’s their hosting side that is the problem causing the broken HTML emails. He didn’t know anything about WooCommerce or WordPress emails. So he was useless.
    – Changed the email format from HTML to the other options and only Plain Text worked properly. The other option showed the same broken html email.
    – Checked email HTML and can see spaces are also added between certain text.
    – Checked WooCommerce status and everything is fine.
    – Everything including theme are up-to-date.

    So I don’t know what the problem is. I think the update to WooCommerce 4.0 messed the email up.

    Much help appreciated.

    Thanks.

Viewing 15 replies - 16 through 30 (of 69 total)
  • @chinaman123 I signed up with Hostgator

    I can confirm that moving hosting fixes this issue for me… I’ve been meaning to move anyway as my server responses were getting very slow and the dashboard was a pain. I moved to a basic namecheap/easywp starter package ($1 for the first month!), migrated using All in One Migration tool and the emails are sending perfectly in HTML now. Issue with PHP version with certain hosting providers perhaps?

    “Change hosting” is not a solution.

    Although when we updated WooCommerce we also updated PHP (to 7.3.15).
    Maybe related?

    Your’re right of course – but in my case it was the kick I needed to change hosting anyway. I was using PHP implementation 7.3.11 and I changed to 7.1.32 and it had no effect. I didn’t try any other versions.

    Thread Starter chinaman123

    (@chinaman123)

    PHP version setting was already at 7.3. I tried the website on PHP verion 7.2, 7.1 and then 7.3 again and still same problem.

    I deactivated and deleted WooCommerce and reinstalled it and uploaded the product list again – still failed.

    I went to WooCommerce Settings > Tools and Reset the WooCommerce Database (at bottom of page there) – still not work.

    Exported the website’s database and created a new database location for website and uploaded the database there and changed the wp-config.php to link the website to the new database location. Still not work.

    Add the a value to the empty ‘charset’ section of wp-config.php. No change.

    Asked my web hosting company and the tech guy said he knows absolutely nothing about how wordpress email works or anything about wordpress itself. So.. He can’t help and he don’t think it has anything to do with them.

    All settings on my side are up to date: wordpress version, woocommerce and theme I use, and php version.

    Whatever Woocommerce changed they should have some sort of clue about this problem.

    Is WooCommerce taking note of this COMMON PROBLEM?

    I don’t want to move to another host because the one I’m using is pretty good and I have a lot setup with them already. And there’s no guarantee that the new host will fix the problem.

    • This reply was modified 4 years, 8 months ago by chinaman123.
    • This reply was modified 4 years, 8 months ago by chinaman123.

    I understand the fear or cbf factor of not wanting to change hosts. But it seems to have been the fix for two of us. I did the same as Cormac1982, and used All in one migration. It took me hours to double back up and transfer, but the relief now is well worth it.

    So I guess, what you could do is simply sign up to another host and test it? You have 2 that are tested and working. Most hosts give like a 30 day money back guarantee. See if that is actually the fix.

    There are so many variables here it seems but the priority is my customer experience ??

    Or you could wait for a woocommece response, which it seems they are not sure either right now.

    Same, previously it was working fine, but now my customers are receiving blank emails.

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    @cormac1982 and @rogruz, I see that you have now moved to Namecheap and Hostgator respectively, and the issue has been resolved, but which hosting were you on before where you were having the issue?

    Also, @gjanezic, @chinaman123, @lilimarleen, @danibanani88, and @kingjulien which hosting are you currently on where you are having the issue?

    I see @gjanezic has also opened an issue here for tracking, however we have been unable to reproduce this on our side so far:
    https://github.com/woocommerce/woocommerce/issues/26015

    If we can find some common pattern, that will help in narrowing down what is causing this. So far, the only thing we know is that changing hosting has fixed it for two users here.

    Thank you!

    I have just tried rollbacking to WooCommerce 3.9 from 4.0. HTML email is working again.

    Hi @kellymetal, I’m using KLHost (Malaysia).

    @kellymetal I’m using Blacknight, shared linux.

    @kellymetal thanks for your reply. I use world4you (Austrian provider).

    We’re self-hosting (bare-metal).

    We also have multisite enabled – maybe related?

    Thread Starter chinaman123

    (@chinaman123)

    I called my hosting company just now and they said they’ve just received messages to look into the problem like 2 hours ago. They are taking note of the problem now and know that it’s affecting with certain hosting company. Hopefully they’ll figure out what the problem is.

    Will update you guys.

    Thread Starter chinaman123

    (@chinaman123)

    @kellymetal
    Blacknight

Viewing 15 replies - 16 through 30 (of 69 total)
  • The topic ‘WooCommerce Emails HTML Broken’ is closed to new replies.