Skip to content
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

@dnadle
Copy link

@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.

Copy link
Contributor

@zanilee 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.

Copy link
Contributor

@piotrekkaminski piotrekkaminski commented Jun 14, 2016

The issue is currently in progress.

@Krapulat

This comment has been minimized.

Copy link

@Krapulat Krapulat commented Jun 28, 2016

Same problem in Magento 2.1.

@tarnagas

This comment has been minimized.

Copy link

@tarnagas tarnagas commented Jun 28, 2016

Same problem in Magento 2.0.7

okorshenko pushed a commit that referenced this issue Jul 6, 2016
…out overriding at least one static content file #3754
@vkorotun vkorotun removed the PS label Aug 4, 2016
@wert2all

This comment has been minimized.

Copy link
Contributor

@wert2all wert2all commented Aug 16, 2016

Fixed

@wert2all wert2all closed this Aug 16, 2016
@pinkdigital

This comment has been minimized.

Copy link

@pinkdigital 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.

Copy link

@keyurshah 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.

Copy link

@LTC-fperrin 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.

Copy link

@fxdegroot fxdegroot commented Sep 30, 2016

Why is this closed ? Still an issue in CE 2.1.1

@MarekKarmelski

This comment has been minimized.

Copy link

@MarekKarmelski MarekKarmelski commented Oct 26, 2016

Confirm! Still bug in CE 2.1.2

@shahankitb997

This comment has been minimized.

Copy link

@shahankitb997 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.

Copy link
Contributor

@mrkhoa99 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.

Copy link

@jurgisl jurgisl commented Jan 6, 2017

Still a bug in CE 2.1.3.

@Nguyen-Cong-Anh

This comment has been minimized.

Copy link

@Nguyen-Cong-Anh Nguyen-Cong-Anh commented Mar 2, 2017

still a bug CE 2.1.4

@dersam

This comment has been minimized.

Copy link

@dersam dersam commented Mar 9, 2017

This issue still exists in 2.1.5.

@lfolco

This comment has been minimized.

Copy link
Contributor

@lfolco lfolco commented Mar 28, 2017

Please reopen this!

@pguedesbr

This comment has been minimized.

Copy link

@pguedesbr 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

@DnDDeployer

This comment has been minimized.

Copy link

@DnDDeployer DnDDeployer commented May 24, 2017

Still exist in 2.1.6

@JoJuhasz

This comment has been minimized.

Copy link

@JoJuhasz 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.

Copy link

@charmeleon 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.

Copy link
Contributor

@erfanimani erfanimani commented Jun 14, 2017

Yeah, same issue on 2.1.7..

@roura356a

This comment has been minimized.

Copy link

@roura356a roura356a commented Jul 11, 2017

Please reopen this, is still an existing issue.

@Igloczek

This comment has been minimized.

Copy link
Contributor

@Igloczek 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.

Copy link

@Anshu-Mishra 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
…ic content won't deploy without overriding at least one static content file magento#3754

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

This comment has been minimized.

Copy link
Contributor

@magento-team magento-team commented Sep 6, 2017

Internal ticket to track issue progress: MAGETWO-72253

magento-engcom-team pushed a commit that referenced this issue Feb 14, 2019
[pangolin] Remove composer.json from dev/tests/acceptance (2.2-develop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.