NO CSS Magento 2.0.4
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?
Try bin/magento setup:static-content:deploy
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
Yes.
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 did you check your file permissions?
@mazhalai Checked and all seem correct - any specifics I need to be checking?
@chloeefr any error on browser console?
@mazhalai
"Uncaught ReferenceError: Unable to process binding "text: function (){return element.label }" Message: element is not defined" .. knockout.js
Have attached system.log
@chloeefr that means js files are not loading. Please verify that you have a user as specified here and permissions are as specified here.
@chloeefr closing due to non-responsiveness.
Same issue on a fresh install, @mazhalai I have tried everything mentioned including setup:static-content:deploy
@jupiter01, most likely it is related to permission. We have documentation on devdocs how to install Magento 2.
@maksek you are correct, had to fix permissions again after executing setup:static-content:deploy
@jupiter01 You should run the command setup:static-content:deploy from the user were your websever can execute the files.