Closed
Description
Summary (*)
I have two themes, company_base and company_fresh. I am only using company_fresh and company_base is just laying around atm.
If I execute php bin/magento setup:static-content:deploy
then I often get errors from my inactive corrupted experimental theme company_base
for example:
Compilation from source: /home/company/company.de/app/design/frontend/company/base/web/css/source/lib/extend/catalog/product/view.less
variable @dunkelgrau is undefined in file /home/company/company.de/var/view_preprocessed/pub/static/frontend/company/base/de_DE/css/source/lib/extend/catalog/product/view.less in view.less on line 6, column 16
4| .h {
5| font-family: os-semi-bold;
6| color: @dunkelgrau;
7| margin-bottom: 20px;
8| }
9| /* Mixins End ------------------------------ */
Why does magento even try to compile it?
Examples (*)
Create a second theme beside your active one and make a mistake in a LESS file in it, on purpose, so that it will thrown an error.
Then call php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy
.
You should see an error during the compilation.
Proposed solution
Ignore inactive themes.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users with no workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.