0

I ran below Command:

bin/magento setup:di:compile

I have tried to upgrade my module with:

$ php bin/magento setup:upgrade

The end result was:

Please re-run Magento compile command

After doing this magento site is not working.

1
  • Hi and welcome to Magento SE, feel free to check out this post on how to ask a question: magento.stackexchange.com/help/how-to-ask . Please provide more information such as the error you're facing. What do you mean by "site is not working" ? Do you get an error ? A white page ? Commented Oct 4, 2016 at 9:19

2 Answers 2

2

Please go to app\bootstrap.php

Do comment below line

error_reporting(E_ALL);
#ini_set('display_errors', 1);

& check for error in browser or check log files under var/log or var/report folders

Try to run below commands as well

php bin/magento cache:clean
php bin/magento cache:flush
2
  • Good to hear that :)
    – Jackson
    Commented Oct 4, 2016 at 9:51
  • after running the compile command, the page is blank, I clear & flush the cache after running the compile command but still, it's blank, if I run the setup: upgrade & content-deploy then only the page is loading well.
    – senthil
    Commented Oct 26, 2018 at 7:53
2

Try to Run the Below Commands which will clear the Cache :

php bin/magento cache:flush
php bin/magento cache:clean

Still Error there then paste exact error here

cd <your magento root>
rm -Rf var/generation 
5
  • after running these command when i hit my page(localhost/magento2) i got "An error has happened during application run. See exception log for details". Commented Oct 4, 2016 at 9:38
  • please check your exception log file & paste error
    – Brad Hodge
    Commented Oct 4, 2016 at 9:38
  • where to find the exception log Commented Oct 4, 2016 at 9:39
  • you can find under : var/log
    – Brad Hodge
    Commented Oct 4, 2016 at 9:42
  • i updated my answer please try last command
    – Brad Hodge
    Commented Oct 4, 2016 at 9:46

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.