New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dnadle opened this Issue Mar 14, 2016 · 25 comments

Comments

Projects
@dnadle

dnadle commented Mar 14, 2016

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.

@zanilee

This comment has been minimized.

Show comment
Hide comment
@zanilee

zanilee Apr 20, 2016

Contributor

Hi, @dnadle!

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

Contributor

zanilee commented Apr 20, 2016

Hi, @dnadle!

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

@MomotenkoNatalia MomotenkoNatalia added PS and removed CS labels Apr 28, 2016

@MomotenkoNatalia MomotenkoNatalia removed their assignment Apr 28, 2016

@piotrekkaminski

This comment has been minimized.

Show comment
Hide comment
@piotrekkaminski

piotrekkaminski Jun 14, 2016

Contributor

The issue is currently in progress.

Contributor

piotrekkaminski commented Jun 14, 2016

The issue is currently in progress.

@Krapulat

This comment has been minimized.

Show comment
Hide comment
@Krapulat

Krapulat Jun 28, 2016

Same problem in Magento 2.1.

Krapulat commented Jun 28, 2016

Same problem in Magento 2.1.

@tarnagas

This comment has been minimized.

Show comment
Hide comment
@tarnagas

tarnagas Jun 28, 2016

Same problem in Magento 2.0.7

tarnagas commented Jun 28, 2016

Same problem in Magento 2.0.7

okorshenko pushed a commit that referenced this issue Jul 6, 2016

MAGETWO-52102: [Github] Custom theme static content won't deploy with…
…out overriding at least one static content file #3754

@vkorotun vkorotun removed the PS label Aug 4, 2016

@wert2all

This comment has been minimized.

Show comment
Hide comment
@wert2all

wert2all Aug 16, 2016

Contributor

Fixed

Contributor

wert2all commented Aug 16, 2016

Fixed

@wert2all wert2all closed this Aug 16, 2016

@pinkdigital

This comment has been minimized.

Show comment
Hide comment
@pinkdigital

pinkdigital Sep 1, 2016

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

pinkdigital commented Sep 1, 2016

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

@keyurshah

This comment has been minimized.

Show comment
Hide comment
@keyurshah

keyurshah Sep 7, 2016

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

keyurshah commented Sep 7, 2016

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

@LTC-fperrin

This comment has been minimized.

Show comment
Hide comment
@LTC-fperrin

LTC-fperrin Sep 14, 2016

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

LTC-fperrin commented Sep 14, 2016

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

@fxdegroot

This comment has been minimized.

Show comment
Hide comment
@fxdegroot

fxdegroot Sep 30, 2016

Collaborator

Why is this closed ? Still an issue in CE 2.1.1

Collaborator

fxdegroot commented Sep 30, 2016

Why is this closed ? Still an issue in CE 2.1.1

@MarekKarmelski

This comment has been minimized.

Show comment
Hide comment
@MarekKarmelski

MarekKarmelski Oct 26, 2016

Confirm! Still bug in CE 2.1.2

MarekKarmelski commented Oct 26, 2016

Confirm! Still bug in CE 2.1.2

@shahankitb997

This comment has been minimized.

Show comment
Hide comment
@shahankitb997

shahankitb997 Dec 2, 2016

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

shahankitb997 commented Dec 2, 2016

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

@mrkhoa99

This comment has been minimized.

Show comment
Hide comment
@mrkhoa99

mrkhoa99 Dec 2, 2016

Contributor

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.

Contributor

mrkhoa99 commented Dec 2, 2016

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.

@jurgisl

This comment has been minimized.

Show comment
Hide comment
@jurgisl

jurgisl Jan 6, 2017

Still a bug in CE 2.1.3.

jurgisl commented Jan 6, 2017

Still a bug in CE 2.1.3.

@Nguyen-Cong-Anh

This comment has been minimized.

Show comment
Hide comment
@Nguyen-Cong-Anh

Nguyen-Cong-Anh Mar 2, 2017

still a bug CE 2.1.4

Nguyen-Cong-Anh commented Mar 2, 2017

still a bug CE 2.1.4

@dersam

This comment has been minimized.

Show comment
Hide comment
@dersam

dersam Mar 9, 2017

This issue still exists in 2.1.5.

dersam commented Mar 9, 2017

This issue still exists in 2.1.5.

@lfolco

This comment has been minimized.

Show comment
Hide comment
@lfolco

lfolco Mar 28, 2017

Collaborator

Please reopen this!

Collaborator

lfolco commented Mar 28, 2017

Please reopen this!

@pguedesbr

This comment has been minimized.

Show comment
Hide comment
@pguedesbr

pguedesbr Apr 11, 2017

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 commented Apr 11, 2017

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

@DnD-Merlin

This comment has been minimized.

Show comment
Hide comment
@DnD-Merlin

DnD-Merlin May 24, 2017

Still exist in 2.1.6

DnD-Merlin commented May 24, 2017

Still exist in 2.1.6

@JoJuhasz

This comment has been minimized.

Show comment
Hide comment
@JoJuhasz

JoJuhasz May 25, 2017

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

JoJuhasz commented May 25, 2017

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

@charmeleon

This comment has been minimized.

Show comment
Hide comment
@charmeleon

charmeleon Jun 2, 2017

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

charmeleon commented Jun 2, 2017

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

@erfanimani

This comment has been minimized.

Show comment
Hide comment
@erfanimani

erfanimani Jun 14, 2017

Yeah, same issue on 2.1.7..

erfanimani commented Jun 14, 2017

Yeah, same issue on 2.1.7..

@roura356a

This comment has been minimized.

Show comment
Hide comment
@roura356a

roura356a Jul 11, 2017

Please reopen this, is still an existing issue.

roura356a commented Jul 11, 2017

Please reopen this, is still an existing issue.

@Igloczek

This comment has been minimized.

Show comment
Hide comment
@Igloczek

Igloczek Jul 19, 2017

Collaborator

It will be released with 2.2.0 unless someone will create a backport for 2.1.x.

Collaborator

Igloczek commented Jul 19, 2017

It will be released with 2.2.0 unless someone will create a backport for 2.1.x.

@Anshu-Mishra

This comment has been minimized.

Show comment
Hide comment
@Anshu-Mishra

Anshu-Mishra Aug 19, 2017

I have experienced this issue in 2.1.8 as well.

Anshu-Mishra commented Aug 19, 2017

I have experienced this issue in 2.1.8 as well.

hostep added a commit to hostep/magento2 that referenced this issue Sep 2, 2017

Backport of MAGETWO-52102 for Magento 2.1: [Github] Custom theme stat…
…ic content won't deploy without overriding at least one static content file #3754

(cherry picked from commit 6a9744d)
@magento-team

This comment has been minimized.

Show comment
Hide comment
@magento-team

magento-team Sep 6, 2017

Contributor

Internal ticket to track issue progress: MAGETWO-72253

Contributor

magento-team commented Sep 6, 2017

Internal ticket to track issue progress: MAGETWO-72253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment