magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

"Template file 'header.html' is not found" error while trying to save Design Configuration.

Open hostep opened this issue 8 years ago • 42 comments

Preconditions

  1. Magento 2.2-develop branch, current commit: f18377b9e59
  2. PHP 7.0.27

Steps to reproduce

  1. Setup a clean Magento from the 2.2-develop using commit f18377b9e59
  2. Go into the backend to Content => Design => Configuration
  3. Open either the Global or Website scoped configuration
  4. Click 'Save and Continue'

Expected result

  1. Configuration should be saved without errors

Actual result

  1. 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 avatar Feb 07 '18 08:02 hostep

@hostep, thank you for your report. We've acknowledged the issue and added to our backlog.

magento-engcom-team avatar Feb 07 '18 11:02 magento-engcom-team

#MageTitansMX

AngelBS avatar Mar 02 '18 17:03 AngelBS

@AngelBS thank you for joining. Please accept team invitation here and self-assign the issue.

magento-engcom-team avatar Mar 02 '18 17:03 magento-engcom-team

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).

hostep avatar May 10 '18 18:05 hostep

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

DanielRuf avatar May 10 '18 18:05 DanielRuf

https://github.com/magento/magento2/commit/5e93220a56bd741d3ec27b8a0fffd2f539e4e473#diff-36cd96b3be4f49a6c44df680cedf1008R249

So it return false there.

DanielRuf avatar May 10 '18 18:05 DanielRuf

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.

DanielRuf avatar May 10 '18 18:05 DanielRuf

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):

The fix will be available with the upcoming 2.2.5 release.

magento-engcom-team avatar May 16 '18 20:05 magento-engcom-team

Hi @magento-engcom-team

Still able to reproduce on a clean install of Magento2.2.4 while adding favicon from the backend

syedsaleem086 avatar Jun 13 '18 02:06 syedsaleem086

@syedsaleem086

The fix will be available with the upcoming 2.2.5 release.

DanielRuf avatar Jun 13 '18 05:06 DanielRuf

Hi @DanielRuf

0ae1230c4bbe985f66929ed234835137e64664c9 3df51d4c294dda946d78ba25b9aef693cb813a0a 0dec988872e175e568c2bf4bb29548ab7a4698e5 d92b679e48da825813bfaff51e631236a2bbc73a

I have added these commits manually still won't work

syedsaleem086 avatar Jun 13 '18 07:06 syedsaleem086

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)

hostep avatar Jun 13 '18 07:06 hostep

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

syedsaleem086 avatar Jun 13 '18 08:06 syedsaleem086

Please try to update favicon

Was there an error message in this case?

DanielRuf avatar Jun 13 '18 10:06 DanielRuf

@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 avatar Jun 13 '18 18:06 hostep

@hostep Create a custom theme and try to load the favicon. thanks

syedsaleem086 avatar Jun 13 '18 23:06 syedsaleem086

@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.

legweilo avatar Jun 14 '18 09:06 legweilo

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:

  1. Setup a clean Magento 2.2.4
  2. Apply patch https://github.com/magento/magento2/commit/7019a0a1392095185505ff3ca7b97dd3e9cb4ef2
  3. In backend: configure this and that
  4. 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!

hostep avatar Jun 14 '18 17:06 hostep

The issue still exists on Magento 2.2.5. How long this will take to merge with master?

anish-cubet avatar Jul 09 '18 04:07 anish-cubet

@anish-cubet my patch will be in 2.2.6.

DanielRuf avatar Jul 09 '18 04:07 DanielRuf