Could not assign child-theme
In Shopware from 6.6.4 versions, a Shopware bug in the child themes may cause an error when assigning the sales channel.
Error message
Unable to load file "custom/plugins/zenitPlatform{THEME}Set{NUMMER}/src/Resources/app/storefront/dist/storefront/js/zenit-platform-horizon-set1/zenit-platform-{theme}-set{nummer}.js". Did you forget to build the theme? Try running ./bin/build-storefront.sh"). with these parameters: ...
Cause
The cause of the error goes back to a so-called breaking change in the major update to Shopware 6.6, in which the path to the storefront JavaScript was changed.
Shopware had planned that existing themes that still reference the old JavaScript path would not throw an error and would continue to be compatible. However, due to a change in Shopware 6.6.4, child themes that reference the old JavaScript structure now generate an error and can no longer be assigned.
The reason for this error message is a current malfunction starting with Shopware 6.6.3, where the theme.json is searched for the new JavaScript path, even if it has not been referenced. Child themes whose JavaScript path has not been adapted to the new Shopware 6.6 structure can no longer be assigned in these versions.
Shopware already has a fix, but it has not yet made it into the Shopware Core (as of 6.6.5.1):
Examples
Proposed solution
Update the child theme via the download on our website as described in the Child Theme Update article or wait for Shopware to fix the problem in one of the future Shopware versions.
All of our child themes from version 4.x onwards were made compatible and made available with the release of the major release 6.6 of Shopware. We created the new folder structure and retained the old one - so the child themes are compatible for all versions.
Please note that you have to copy your individual Javascript programming into the Javascript structure so that it will be executed from Shopware 6.6 onwards.
Last updated