magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Must override at least one static content file or custom theme static content won't deploy

Open dnadle opened this issue 10 years ago • 25 comments

Steps to reproduce

  1. I created a custom theme with Magento/blank as parent, to override a template.
  2. I did not override any static content. (nothing in the theme's web folder).
  3. I ran bin/magento setup:static-content:deploy

Expected result

The static content requests would fall back to load from the Magento/blank theme.

Actual result

All of the static content links in pub/static/theme 404'd.

Workaround

I added a logo file to theme/web/images and reran setup:static-content:deploy. This time all the files were generated in pub/static.

dnadle avatar Mar 14 '16 02:03 dnadle

Hi, @dnadle!

Thank you for reporting this issue. Internal ticket MAGETWO-52102

zanilee avatar Apr 20 '16 08:04 zanilee

The issue is currently in progress.

piotrekkaminski avatar Jun 14 '16 10:06 piotrekkaminski

Same problem in Magento 2.1.

Krapulat avatar Jun 28 '16 11:06 Krapulat

Same problem in Magento 2.0.7

tarnagas avatar Jun 28 '16 12:06 tarnagas

Fixed

wert2all avatar Aug 16 '16 13:08 wert2all

This is still an issue in 2.1. Without an image in theme/web/image it ignores the theme.

pinkdigital avatar Sep 01 '16 20:09 pinkdigital

had this same issue in 2.1. took a while to figure out until I saw the workaround.

keyurshah avatar Sep 07 '16 22:09 keyurshah

Still an issue in 2.0.9. I had to create an empty test.js file in app/design/adminhtml/[Package]/[Theme]/web for the theme to deploy

OLTC-fperrin avatar Sep 14 '16 08:09 OLTC-fperrin

Why is this closed ? Still an issue in CE 2.1.1

fxdegroot avatar Sep 30 '16 20:09 fxdegroot

Confirm! Still bug in CE 2.1.2

MarekKarmelski avatar Oct 26 '16 20:10 MarekKarmelski

Yes. I face same issue in Magento 2 CE Version 2.1.2. What is solution?

shahankitb997 avatar Dec 02 '16 08:12 shahankitb997

When creating a new custom theme, if we don't have any assets files under web folder, your theme may be ignored when executing deploy command.

mrkhoa99 avatar Dec 02 '16 09:12 mrkhoa99

Still a bug in CE 2.1.3.

jurgisl avatar Jan 06 '17 10:01 jurgisl

still a bug CE 2.1.4

Nguyen-Cong-Anh avatar Mar 02 '17 20:03 Nguyen-Cong-Anh

This issue still exists in 2.1.5.

dersam avatar Mar 09 '17 21:03 dersam

Please reopen this!

lfolco avatar Mar 28 '17 18:03 lfolco

Issue still exists. I've had to create a dummy static file (dummy.js) so the child theme wouldn't be ignored by setup:static-content:deploy command

pguedesbr avatar Apr 11 '17 13:04 pguedesbr

Still exist in 2.1.6

DnDDeployer avatar May 24 '17 12:05 DnDDeployer

I confirm still present in 2.1.6. Ok workaround is quite simple, but still an issue :)

JoJuhasz avatar May 25 '17 11:05 JoJuhasz

Still an issue in 2.1.7... that's two days of my life I won't get back :(

charmeleon-zz avatar Jun 02 '17 16:06 charmeleon-zz