Error after Magento 2 upgrade command

After firing this command from your terminal¬† “php bin/magento setup:upgrade" If you get blank screen or your website crash and you get error in your log file, then just follow below steps to solve the issue.

Here the simple steps are

  1. Delete the “di” folder located in var directory via cpanel or FTP
  2. Log into your terminal via ssh access and go to your magento root directory
  3. Run this command to change directory command: “cd bin”
  4. Then run this command “sudo ./magento setup:di:compile”
  5. Go back to your magento root directory
  6. Finally give file/directory permissions through command.
  7. Clear the cache and check your website is working now.



Leave a Reply

Your email address will not be published. Required fields are marked *