0

It all started when i was not able to install modules on my site due to cron job not running. But due to permission errors and all, and after following some steps shown in devdocs magento. My site and backend crashed. I suspect it is due to changing deploy mode to production. Now im not able to change my mode( not permitted) and my back and frontend look like this

enter image description here

enter image description here

Unable to install Modules Magento 2.2 ( Readiness Check Error)

my follow up post

Tanish
  • 55
  • 2
  • 10
  • This will be happen when css and js are not calling properly. Please check once the js and css structure – Teja Bhagavan Kollepara Jun 14 '18 at 11:36
  • Regenerate your CSS and JS - this should get your site looking like it did beforehand. Run the bin/magento setup:static-content:deploy command. – ProcessEight Jun 14 '18 at 11:41
  • [Magento\Framework\Exception\FileSystemException] Directory "/home/carefdgi/public_html/var/view_preprocessed/pub/static" can not be created Warning!mkdir(): Permission denied -- getting this error – Tanish Jun 14 '18 at 11:42
  • @Tanish Make sure you follow the instructions in the Dev Docs and run those (or indeed any bin/magento) commands as the web server user, otherwise you will run into these permissions errors: https://devdocs.magento.com/guides/v2.2/install-gde/prereq/zip_install.html#install-update-depend-user-switch – ProcessEight Jun 14 '18 at 11:44

3 Answers3

2

you can try following commands it may help you; Run all the commands. I have faced this issue frequently.

bin/magento setup:upgrade

bin/magento setup:static-content:deploy

bin/magento indexer:reindex
Abhishek Tripathi
  • 2,885
  • 2
  • 18
  • 37
1990rk4
  • 593
  • 1
  • 7
  • 19
  • oh. it worked. Thanks a lot @rk1990. Been spending almost 2 hours on stupid commands and the fix was the easiest – Tanish Jun 14 '18 at 12:34
  • then please vote for the ans :) ... it will help to rank the ans and may be useful for others ... cheers – 1990rk4 Jun 14 '18 at 12:36
  • oh i already did but isnt publically shown due to my reputation score – Tanish Jun 14 '18 at 12:39
0
 - bin/magento deploy:mode:set developer 
 - sudo chmod -R 777 .
 - sudo rm -rf pub/* 
 - sudo rm -rf generation/ 
 - sudo rm -rf var/cache/ 
 - bin/magento setup:static-content:deploy -f 
 - bin/magento s:d:c
Eugene Kapelko
  • 2,364
  • 1
  • 13
  • 29
0

you can try following commands it may help you

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:clear