Magento 2.3.0-交易电子邮件>徽标图片上传不起作用
在php 7.2上运行magento 2.3.0
我正在尝试上传图片:交易订单电子邮箱logo
Content > Design: Configuration > Transactional emails > Logo Image
并得到以下错误。
服务器的技术问题导致错误。再试一次以继续您的操作。如果问题仍然存在,请稍后再试。
A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.
这是由magento 2.3.0中的错误引起的,该错误将在2.3.1版本中修复。您显然不能等到那时,并且您绝对不想编辑核心文件。
解决办法:
vendor/magento/module-email/view/adminhtml/ui_component/design_config_form.xml
<collapsible>true</collapsible>
<label translate="true">Transactional Emails</label>
</settings>
- <field name="email_logo" formElement="fileUploader">
+ <field name="email_logo" formElement="imageUploader">
<settings>
<notice translate="true">To optimize logo for high-resolution displays, upload an image that is 3x normal size and then specify 1x dimensions in the width/height fields below.</notice>
<label translate="true">Logo Image</label>
将fileUploader修改为imageUploader
最后:
保存部署静态内容,并完成了重新索引和缓存清除
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush