0

I added a module by these command

php bin/magento module:status
php bin/magento module:enable module

Everything was fine then 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/xyz/public_html/var/generation/Composer
/home/xyz/public_html/var/generation/Magento
/home/xyz/public_html/var/generation/Symfony
The directory '/home/xyz/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 ??

7ochem
7,61516 gold badges54 silver badges82 bronze badges
asked Jan 25, 2017 at 21:13

2 Answers 2

2

Enable the developer mode. By running the below commend.

php bin/magento deploy:mode:set developer

after that you can see the errors trace in frontend.

answered Jan 26, 2017 at 3:17
0

For the unexpected 500 error, we should enable error reporting on the bootstrap. Should enable error reporting with -1 value. That will report all PHP errors.

app/bootstrap.php

ini_set('display_errors', -1) // Should enable error reporting with -1 value.
answered Jan 25, 2017 at 23:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.