magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

in static folder front end & adminhtml directories are missing

Open sivajik34 opened this issue 12 years ago • 4 comments

front end and admin theme missing.I mean in static folder front end & adminhtml directories are not there.From starting onwards these directories are not there.even after pull also.can you help any one?

sivajik34 avatar Nov 22 '14 16:11 sivajik34

You should use script {{deploy.php}} to generate new files

php -f ./dev/tools/Magento/Tools/View/deploy.php

Sanuch avatar Nov 22 '14 16:11 Sanuch

Thank you @Sanuch.can you describe php -f means.

sivajik34 avatar Nov 22 '14 16:11 sivajik34

~~I dont see dev/tools/Magento/Tools/View/deploy.php there. am on master branch.~~ Run: ./bin/magento setup:static-content:deploy

RabeaWahab avatar Oct 02 '15 16:10 RabeaWahab

I install magneto 2. it is working good, but on home page and all other pages including admin panel a JavaScript error occurred

the error is :

NetworkError: 404 Not Found - http://localhost:8080/pub/static/frontend/Magento/luma/en_US/js-translation.json"
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
$.mage.translate.add(JSON.parse(string));

then I explore location /pub/static/frontend/Magento/luma/en_US/ and found that the file is there when open the file it is contain just two square bracket [].

i dont know why magento show that file is not found, because it is already there

I already delete folders in pub/static directory and then re-run the deploy command from cmd

php bin/magento setup:static-content:deploy but it is not work for me.

RohitSavaliya avatar Feb 16 '16 15:02 RohitSavaliya