0

I have installed Magento 2.4.1 via composer install, then I tried to log in to the admin it asks for two-factor authentication, I have disabled the two-factor authentication using the command (bin/magento module:disable Magento_TwoFactorAuth) and flushed the cache using (bin/magento cache:flush), after doing these when I try to access my site it gives a blank page(attached screenshot). m2 site not loading

2
  • check var/log/ for any exception Commented Dec 14, 2020 at 13:47
  • probably bin/magento setup:upgrade will help (in developer mode) or bin/magento setup:upgrade && bin/magento s:d:c && bin/magento s:s:d (in production mode) Commented Dec 14, 2020 at 15:27

1 Answer 1

0

I found the answer with the help of my senior, running the below command will fix the issue and makes the site to appear.

cmd: php bin/magento setup:di:compile

in 2.4.1 after enabling a module we need to do compile.

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.