"Template file 'header.html' is not found" error while trying to save Design Configuration.
Preconditions
- Magento
2.2-developbranch, current commit: f18377b9e59 - PHP 7.0.27
Steps to reproduce
- Setup a clean Magento from the
2.2-developusing commit f18377b9e59 - Go into the backend to Content => Design => Configuration
- Open either the Global or Website scoped configuration
- Click 'Save and Continue'
Expected result
- Configuration should be saved without errors
Actual result
- We are getting the error:
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.
@hostep, thank you for your report. We've acknowledged the issue and added to our backlog.
#MageTitansMX
@AngelBS thank you for joining. Please accept team invitation here and self-assign the issue.
For future reference, this problem was introduced in https://github.com/magento/magento2/commit/5e93220a56bd741d3ec27b8a0fffd2f539e4e473 which was a fix for https://github.com/magento/magento2/issues/8437, yet I think the commit which introduced this looks fine and only revealed a deeper problem (but not entirely sure).
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
https://github.com/magento/magento2/commit/5e93220a56bd741d3ec27b8a0fffd2f539e4e473#diff-36cd96b3be4f49a6c44df680cedf1008R249
So it return false there.
We should check then if and how we can solve the root cause and merge this with https://github.com/magento/magento2/pull/15137 as I am not sure if these 2 issues are directly connected.
Hi @hostep. Thank you for your report. The issue has been fixed in magento/magento2#15137 by @DanielRuf in 2.2-develop branch Related commit(s):
- 0ae1230c4bbe985f66929ed234835137e64664c9
- 3df51d4c294dda946d78ba25b9aef693cb813a0a
- 0dec988872e175e568c2bf4bb29548ab7a4698e5
- d92b679e48da825813bfaff51e631236a2bbc73a
The fix will be available with the upcoming 2.2.5 release.
Hi @magento-engcom-team
Still able to reproduce on a clean install of Magento2.2.4 while adding favicon from the backend
@syedsaleem086
The fix will be available with the upcoming 2.2.5 release.
Hi @DanielRuf
0ae1230c4bbe985f66929ed234835137e64664c9 3df51d4c294dda946d78ba25b9aef693cb813a0a 0dec988872e175e568c2bf4bb29548ab7a4698e5 d92b679e48da825813bfaff51e631236a2bbc73a
I have added these commits manually still won't work
Can you try with only this commit: https://github.com/magento/magento2/commit/7019a0a1392095185505ff3ca7b97dd3e9cb4ef2 (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
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. On Storeview it doesn't work in a clean Magento 2.2.4 installation because of https://github.com/magento/magento2/issues/14968, but when applying the fix from @DanielRuf it works again.
If you have exact steps to reproduce, please let us know.
@hostep Create a custom theme and try to load the favicon. thanks
@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:
- Setup a clean Magento 2.2.4
- Apply patch https://github.com/magento/magento2/commit/7019a0a1392095185505ff3ca7b97dd3e9cb4ef2
- In backend: configure this and that
- In backend: execute this, and run into problem
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.