0

My backend won't load properly. How can I get it to do this?

Magento 2.0.7 on local MAMP install. Have cleared pub/static and the di/* Using Grunt to compile my LESS commands by 'Grunt watch'

Previously did, "grunt clean", "grunt exec", "grunt less" and then "grunt watch". Compiled all of the LESS files

Running "less:blank" (less) task
File pub/static/frontend/Magento/blank/en_US/css/styles-m.css created: 278.18 kB → 480.04 kB
File pub/static/frontend/Magento/blank/en_US/css/styles-l.css created: 72.4 kB → 125.05 kB
File pub/static/frontend/Magento/blank/en_US/css/email.css created: 6.87 kB → 12.92 kB
File pub/static/frontend/Magento/blank/en_US/css/email-inline.css created: 9.98 kB → 18.52 kB

Running "less:luma" (less) task
File pub/static/frontend/Magento/luma/en_US/css/styles-m.css created: 327.89 kB → 563.37 kB
File pub/static/frontend/Magento/luma/en_US/css/styles-l.css created: 97.12 kB → 165.89 kB

Running "less:backend" (less) task
File pub/static/adminhtml/Magento/backend/en_US/css/styles-old.css created: 175.36 kB → 286.23 kB
File pub/static/adminhtml/Magento/backend/en_US/css/styles.css created: 333.99 kB → 549.53 kB

Running "less:setup" (less) task
>> Destination setup/pub/styles/setup.css not written because no source files were found.

Running "less:updater" (less) task
>> Destination ../magento2-updater/pub/css/updater.css not written because no source files were found.

Running "less:documentation" (less) task
File lib/web/css/docs/docs.css created: 200.39 kB → 341.99 kB

enter image description here

Console errors

  • 2
    deploy static content and check again. – Suresh Chikani Oct 5 '16 at 18:04
  • when I run the php bin/magento it does not find it from the magento root. Any thoughts on how to fix? – camdixon Oct 5 '16 at 18:06
  • which php version and os system are used ? – Suresh Chikani Oct 5 '16 at 18:07
  • MAMP is set for me on 5.6 PHP version. The bin/magento file is there (so it's a weird error) OSX version is El Capitan and MAMP is 4.0.4 – camdixon Oct 5 '16 at 18:09
  • You have to set environment variable for windows. – Suresh Chikani Oct 5 '16 at 18:10
3

Delete pub/static/*

Deploy static content by below command.

php bin/mangeot setup:static-content:deploy

Then You have to compile with Grunt!

Now you will see without any issue in admin.

  • Then I can compile with Grunt! – camdixon Oct 5 '16 at 18:47
  • see my edited answer, is it right steps for the solution ? – Suresh Chikani Oct 5 '16 at 18:50
0

Replace

Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink 

to

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

This worked for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.