Bug – Magento 2 Transaction Emails Logo Image

This issue affects the Magento 2.1.2 Transactional Emails (Email templates) such as the New order confirmation email, Forgotten password link and so forth.

If you stumbled here to find out how to create Email Templates, follow this Magento guide: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/templates/template-email.html#customize-email-admin

What is it

When you try to update the email logo for transactional emails (Admin > Content > Design > Configuration) – Magento will report the setting was saved but when you look at the thumbnail to check, it shows your web browsers missing image icon.

Before save:

Magento 2 Transactional Email Logo Bug

 

After save:

Magento 2 Transactional Email Logo Bug

If you then view the location of the missing image (i.e. inspect with your web browser’s development tool), you can see the url of the image Magento is trying to fetch:

http://www.example.com/pub/media/email/logo/default/logo_1.png

If you then browse to that directory on your server via FTP or SSH, the folder pub/media/email/ does not exist:

Magento is actually uploading the file to pub/media/logo/

Who does it affect

Store owners using Magento 2.1.2 CE (and probably EE).

Temporary fix

You can create the folder yourself via FTP pub/media/email/logo/ and then upload the same image to that folder using FTP. Bear in mind, if you copy from

pub/media/logo/default/logo_1.png

the destination directory structure should look like

pub/media/email/logo/default/logo_1.png

Long term fix

There is a fix but it has not been released to the stable release of Magento 2 yet:

https://github.com/magento/magento2/commit/23103c03c527fe1ed3e1a3be691436818b7963fe#diff-6b96f29ad945c7cea90267bd4f533218L12

 

Leave a Reply

Your email address will not be published. Required fields are marked *