cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 error 500 after adding a module

Magento 2 error 500 after adding a module

I added a module by these command php bin/magento module:status php bin/magento module:enable modulea

SO far everything was fine than I run this php bin/magento setup:upgrade

After this everything messed up, The output of this command is 

# php bin/magento setup:upgrade Cache cleared successfully File system cleanup: /home/public_html/var/generation/Composer /home/public_html/var/generation/Magento /home/public_html/var/generation/Symfony The directory '/home/public_html/var/di/' doesn't exist - skipping cleanup Updating modules: Schema creation/updates:

And after the execution of this command My site returning HTTP ERROR 500.

Any Idea how to solve this ??

1 REPLY 1

Re: Magento 2 error 500 after adding a module

Hi @SUMIT619,



Could you please try the following command?

php bin/magento setup:di:compile

 

 

Best regards.
Gabriel

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.