After upgrading Magento 2 to the latest version, I started getting the error below each time I try to access the website:

"An error has happened during application run. See exception log for details."

Any suggestion would be much appreciated. Thanks!

  • See the log under ‘var’ folder. Nov 25, 2017 at 1:29
  • please check var/log/system.log or var/log/exception.log file.
    – Meetanshi
    Nov 25, 2017 at 5:34

3 Answers 3


Please run the this command to show the error:

php bin/magento deploy:mode:set developer

Please check in var/log/system or exception.log or run command php bin/magento cache:flush

  • Thank you all for the support! I tried flushing the cache with the command "php bin/magento cache:flush" via SSH but I'm getting the following error message: "bin/magento must be run as a CLI applicationroot@server
    – P. Paul
    Nov 27, 2017 at 1:50

can you check your php version using php -v ?

  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
    – Jarnail S
    Jun 17, 2020 at 10:36
  • mage2.pro/t/topic/2318 - check this Jun 17, 2020 at 10:53
  • Thanks all for your suggestions. I haven't logged for a while. :) But the issue was resolved a longtime ago. :)
    – P. Paul
    Aug 9, 2020 at 6:38

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.