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

Magento2 + Magento/blank + Magento/luma + broken styles #1525

Closed
klierik opened this issue Jul 21, 2015 · 5 comments
Closed

Magento2 + Magento/blank + Magento/luma + broken styles #1525

klierik opened this issue Jul 21, 2015 · 5 comments

Comments

@klierik
Copy link

klierik commented Jul 21, 2015

Good day.

  1. Install Magento2
  2. Install Sample Data via command line
  3. Build LESS->CSS for Magento/blank and Magento/luma
vagrant@magento2-vagrant:/vagrant/httpdocs/bin$ php magento dev:css:deploy less css/styles-l --locale="en_US" --area="frontend" --theme="Magento/blank"
Gathering css/styles-l.less sources.
Successfully processed LESS and/or SASS files
vagrant@magento2-vagrant:/vagrant/httpdocs/bin$ php magento dev:css:deploy less css/styles-l --locale="en_US" --area="frontend" --theme="Magento/luma"
Gathering css/styles-l.less sources.
Successfully processed LESS and/or SASS files
  1. Refresh caches in Admin panel
  • Flush Magento Cache
  • Flush JavaScript/CSS Cache
  • Select all cache types and Refresh it

Then reboot server (vagrant) just in case but i have problem with styles:
Magento 2 Sample data broken styles example

Full step-by-step you can find here: https://github.com/klierik/magento2-vagrant

May be i make something wrong?

@gotbahn
Copy link

gotbahn commented Jul 21, 2015

Hello @klierik,

Looks like styles-m.css not processed. I can suggest delete pub/static and recompile styles. If it wouldn't help, please take a look to exceptions log and provide more info.

@klierik
Copy link
Author

klierik commented Jul 21, 2015

vagrant@magento2-vagrant:/vagrant/httpdocs$ ls -la pub/static
total 4
drwxrwxr-x 1 vagrant www-data  204 Jul 20 16:51 .
drwxrwxr-x 1 vagrant www-data  374 Jul 20 15:02 ..
-rw-rw-r-- 1 vagrant www-data 3247 Jul 20 15:02 .htaccess
drwxrwxr-x 1 vagrant www-data  136 Jul 20 16:50 _requirejs
drwxrwxr-x 1 vagrant www-data  102 Jul 20 16:50 adminhtml
drwxrwxr-x 1 vagrant www-data  102 Jul 20 16:51 frontend
vagrant@magento2-vagrant:/vagrant/httpdocs$ rm -rf pub/static/*
vagrant@magento2-vagrant:/vagrant/httpdocs$ cd bin/
vagrant@magento2-vagrant:/vagrant/httpdocs/bin$ php magento dev:css:deploy less css/styles-l --locale="en_US" --area="frontend" --theme="Magento/blank"
Gathering css/styles-l.less sources.
Successfully processed LESS and/or SASS files
vagrant@magento2-vagrant:/vagrant/httpdocs/bin$ php magento dev:css:deploy less css/styles-l --locale="en_US" --area="frontend" --theme="Magento/luma"
Gathering css/styles-l.less sources.
Successfully processed LESS and/or SASS files
vagrant@magento2-vagrant:/vagrant/httpdocs/bin$ ls -la ../pub/static
total 4
drwxrwxr-x 1 vagrant www-data  136 Jul 21 13:23 .
drwxrwxr-x 1 vagrant www-data  374 Jul 20 15:02 ..
-rw-rw-r-- 1 vagrant www-data 3247 Jul 20 15:02 .htaccess
drwxrwxr-x 1 vagrant www-data  102 Jul 21 13:23 frontend

then re-build cache:

vagrant@magento2-vagrant:/vagrant/httpdocs/bin$ ls -la ../pub/static
total 4
drwxrwxr-x 1 vagrant www-data  204 Jul 21 13:25 .
drwxrwxr-x 1 vagrant www-data  374 Jul 20 15:02 ..
-rw-rw-r-- 1 vagrant www-data 3247 Jul 20 15:02 .htaccess
drwxrwxr-x 1 vagrant www-data  102 Jul 21 13:24 _requirejs
drwxrwxr-x 1 vagrant www-data  102 Jul 21 13:25 adminhtml
drwxrwxr-x 1 vagrant www-data  102 Jul 21 13:23 frontend

now it is much better: http://take.ms/kvFtk

But, can u tell me please, why i need remove folders pub/static/* manually?

@gotbahn
Copy link

gotbahn commented Jul 22, 2015

But, can u tell me please, why i need remove folders pub/static/* manually?

@klierik good question, in my opinion you shouldn't, but for the moment there is no such functionality.
You can create feature request for that and it may appear soon if there is no cons from architects side.

@alankent
Copy link

It's a good area for review. We have been working towards separating what a developer should be doing vs a merchant in the admin panel. Some files are not "cache" - they are generated. There may be a few rough edges to work through still. Thanks for the feedback.

@daim2k5 daim2k5 closed this as completed Nov 10, 2015
magento-team pushed a commit that referenced this issue Sep 27, 2017
@ghost
Copy link

ghost commented Jul 19, 2018

He tried to access luma by logging in as a client and the page only refreshes and sends me to the same place, nor does it register clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants