-
Notifications
You must be signed in to change notification settings - Fork 9.4k
"Template file 'header.html' is not found" error while trying to save Design Configuration. #13530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@hostep, thank you for your report. |
#MageTitansMX |
For reference for other contributors. git bisect bad
5e93220a56bd741d3ec27b8a0fffd2f539e4e473 is the first bad commit
commit 5e93220a56bd741d3ec27b8a0fffd2f539e4e473
Author: RomanKis
Date: Wed Dec 6 15:53:14 2017 +0200
8437:Silent error when an email template is not found
:040000 040000 5bc453a9c3de0a0d4cadafaa791acfc8892d918f 825a6a59695858e125097f2f5b859afeed6a883b M app |
5e93220#diff-36cd96b3be4f49a6c44df680cedf1008R249 So it return false there. |
We should check then if and how we can solve the root cause and merge this with #15137 as I am not sure if these 2 issues are directly connected. |
Hi @hostep. Thank you for your report.
The fix will be available with the upcoming 2.2.5 release. |
Still able to reproduce on a clean install of Magento2.2.4 while adding favicon from the backend |
|
Hi @DanielRuf 0ae1230 I have added these commits manually still won't work |
Can you try with only this commit: 7019a0a (is a combination of the 4 before, maybe you made a mistake somewhere when trying to apply those 4) |
Hi @hostep I have verified and tested above modified files and let others to test in my team. It worked for changing the theme (switching) before it wasn't working. but not while updating favicon. Please try to update favicon |
Was there an error message in this case? |
@syedsaleem086: I'm unable to reproduce your problem, either with or without the fix from @DanielRuf I tested it on all levels, Global, Website and Storeview, and it all works as expected. If you have exact steps to reproduce, please let us know. |
@hostep I reproduce the error when I create another website and I want to change the theme of the new one. And I've already patch the core with DanielRuf's fix. |
Sorry guys, I still fail to reproduce your issue. It would be highly appreciated if someone could put down all the steps it takes to reproduce this on a clean installation, for example:
Something like this. Also an exact error message would be appreciated. If you are able to reproduce, it might also make sense to open a new issue with all those steps to reproduce, as it might be unrelated to this one, but feel free to link back to this one if you believe it is related. Thanks! |
The issue still exists on Magento 2.2.5. How long this will take to merge with master? |
@anish-cubet my patch will be in 2.2.6. |
@DanielRuf Can I get the patch file please ? |
I did the fix but still got error, i debugged and found my solution:
i edited:
|
@gundamkid this is not the right file. |
@DanielRuf |
@gundamkid try 7019a0a and clear all caches. |
@DanielRuf my version is 2.2.5 |
Do not create a plugin, use composer-patches and there is a patch from Magento. |
Hello everyone, I am also encountering the bug which is described on the first post(Something went wrong while saving this configuration: Template file 'header.html' is not found.) We are running a M2 EE 2.2.4. I was able to fix it with the following modifications:
I have checked the reason for that change, and found out that the Dotdigitalgroup_Email Extension has a Plugin for the Magento Magento\Email\Model\Template Class. This class inherits from Magento\Email\Model\AbstractTemplate. After its being initialized by the plugin-system, the area code becomes inaccessible. So the Code from @gundamkid dont work. With the change #2, it will start working again. |
This is fixed in Magento 2.2.6+. Please see the previous comments. |
This is an API change and not allowed in 2.2. |
At least it is changed in the current dev branches. |
Hi, I have this problem with 2.3.0 when I tried to upload favicon or logo to the Global level but not on website level. Is there anyone facing the same problem? |
@DanielRuf the issue can still be reproduced on 2.2.9 so before closing an existing issue you need to make sure it is not happening again. |
@mertgokceimam please check if your instance has the mentioned patch Afaik there was no regression. |
@DanielRuf : there's no need for a patch on Magento 2.2.9 since the fix was included with Magento 2.2.5 and onwards 😉 @mertgokceimam: just to be sure, I've set up a clean Magento 2.2.9 installation and tried executing the steps to reproduce again:
But I can't reproduce the problem. If you can reproduce it, can you please list exact steps to reproduce this problem (preferably on a vanilla Magento 2.2.9 installation). Thanks! |
I know as I confirmed it and worked on the PR. Just wanted to point to the changeset / diff so he can check that. |
If you can reproduce it please open a new issue and reference this one. |
@DanielRuf @hostep this could be reproduce easily by sending an area adminhtml email while doing a frontend action. |
@tuyennn shouldn't this already have been resolved for some years now? Or does it happen in Magento 2.4.4? If so please open a new issue with all relevant details. Thank you. |
Still reproducible in 2.4.3: Admin Site -> Account Setting (right top corner with Admin user name) -> Set New Password -> Save Account. The email that is being sent is: User Notification It must have: {{template config_path="design/email/header_template"}} in the top of the file. You can create a custom template and then assign it to: Stores->Configuration->Advanced->Admin->User Notification Template. The preview of the template looks correctly, but when the email is sent, the error is shown. |
|
Preconditions
2.2-develop
branch, current commit: f18377bSteps to reproduce
2.2-develop
using commit f18377bExpected result
Actual result
Something went wrong while saving this configuration: Template file 'header.html' is not found.
Discussion
Curiously enough, this only happens on the Global and Website scope, when trying the same on the Storeview scope, it works and we don't see this error.
The text was updated successfully, but these errors were encountered: