enter image description heremagento 2.1.7 php 70

After changing magento to dev mode, website is crashing and getting php error and can't understand what is that error about.

How can I solve this problem ?

  • Just remove var folder content and check again. Commented Nov 9, 2017 at 4:53
  • Remove var folder files and give proper permission to that var folder and try. Still you are facing this issue then try to disable all you third party module and run setup upgrade command and check.
    – Nits
    Commented Nov 9, 2017 at 5:09

1 Answer 1


Please use the production command

php bin/magento deploy:mode:set production

and try again

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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