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

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.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 42 (28 by maintainers)

Commits related to this issue

Most upvoted comments

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.

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

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

@pmonosolo

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.

@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

I know as I confirmed it and worked on the PR.

Just wanted to point to the changeset / diff so he can check that.

@syedsaleem086

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