magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

NO CSS Magento 2.0.4

Open Lreeseg opened this issue 10 years ago • 14 comments

Just updated to Magento 2.0.4.... My CSS is not loading in either my webpages OR the magento backend. Everything is only shown html.

How do I fix this?

Lreeseg avatar Apr 01 '16 15:04 Lreeseg

Try bin/magento setup:static-content:deploy

mazhalai avatar Apr 01 '16 16:04 mazhalai

This is going to sound stupid. Is this supposed to be done in a terminal?

On Apr 1, 2016, at 12:17 PM, mazhalai <[email protected]mailto:[email protected]> wrote:

Try bin/magento setup:static-content:deploy

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/magento/magento2/issues/3970#issuecomment-204456712

Lreeseg avatar Apr 01 '16 16:04 Lreeseg

Yes.

mazhalai avatar Apr 01 '16 16:04 mazhalai

This command runs fine for me but doesn't change the output on the frontend.

This is how I updated via Composer:

rm -rf vendor/* Edit composer.js file to "version": "2.0.4" , and also under "require". composer update php bin/magento setup:upgrade php bin/magento setup:static-content:deploy

No errors in terminal output after this ran, but same on Frontend with no CSS showing.

chloeefr avatar Apr 01 '16 16:04 chloeefr

@chloeefr did you check your file permissions?

mazhalai avatar Apr 01 '16 16:04 mazhalai

@mazhalai Checked and all seem correct - any specifics I need to be checking?

chloeefr avatar Apr 01 '16 16:04 chloeefr

@chloeefr any error on browser console?

mazhalai avatar Apr 01 '16 16:04 mazhalai

@mazhalai

"Uncaught ReferenceError: Unable to process binding "text: function (){return element.label }" Message: element is not defined" .. knockout.js

Have attached system.log

system-log.txt

chloeefr avatar Apr 01 '16 17:04 chloeefr

@chloeefr that means js files are not loading. Please verify that you have a user as specified here and permissions are as specified here.

mazhalai avatar Apr 11 '16 14:04 mazhalai

@chloeefr closing due to non-responsiveness.

mazhalai avatar May 09 '16 19:05 mazhalai

Same issue on a fresh install, @mazhalai I have tried everything mentioned including setup:static-content:deploy

ghost avatar May 11 '16 23:05 ghost

@jupiter01, most likely it is related to permission. We have documentation on devdocs how to install Magento 2.

maksek avatar May 12 '16 02:05 maksek

@maksek you are correct, had to fix permissions again after executing setup:static-content:deploy

ghost avatar May 12 '16 03:05 ghost

@jupiter01 You should run the command setup:static-content:deploy from the user were your websever can execute the files.

lijithmg avatar May 12 '16 05:05 lijithmg