1

I've installed a Luma theme on my local and it is ok but when I open product page the images not showing.

The console gives errors like this:

GET http://localhost/m-2/pub/media/catalog/product//cache/f073062f50e48eb0f0998593e568d857/m/j/mj12-orange_main.jpg 404 (Not Found)
0

Run these commands on the root of your installation:

alias mage="php -d memory_limit=-1 -f bin/magento"

chmod -R 775 pub/static/ var/ pub/media/ &&
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ ;
mage deploy:mode:set developer;
mage cache:flush &
mage indexer:reindex &
mage setup:static-content:deploy;
mage setup:upgrade &&
mage setup:db-data:upgrade &&
mage dev:source-theme:deploy &&
chmod -R 775 pub/static/ pub/media/ var/
  • How can I use this commands for windows? – Kareem Sultan May 31 '17 at 14:21

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.