I try to change the theme for a product to the default Magento Blank theme. But I get this error:
Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Company_Base::header/mobile/icons/search.phtml' in module: '' block's name: 'mobile-search'
The file Company_Base::header/mobile/icons/search.phtml is from my custom theme. It is defined here app/design/frontend/company/fresh/Magento_Theme/layout/default.xml
.
Why does it even try to load a template from my custom theme if I want to load the Magento Blank theme?
Why do I get this error?
I already tried to recompile everything and clear cache, does not help.
Tested in Magento 2.4.2
If I change the theme globally to Magento Blank then I also get errors. But they dissapear after I disable all third party modules and enable them one by one compiling at each step.