I decided to try Magento 2 so I tried to download the open-source version. After a lot of effort, I made it and I install Magento 2 on my localhost. The problem is when I go to the homepage I see this(1) and when I try to login I see this(2). I tried some possible solutions from the Magento forum and I changed some lines in the di.xml file and Validator.php. The change in the Validator file works in some parts (appear the login form but there is another problem I can not log in with the username and password, which I am sure are correct). Does anyone else have the same problem?
My PHP version 7.4.11.
I use xampp for localhost.
Solved! Go to Solution.
Hello @apostolis_dimit
Please follow the method at https://meetanshi.com/blog/solved-magento-2-2-7-and-2-3-admin-page-blank-issue/ for admin blank page issue.
Run the below commands:
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
I hope it helps.
Hello @apostolis_dimit
Please follow the method at https://meetanshi.com/blog/solved-magento-2-2-7-and-2-3-admin-page-blank-issue/ for admin blank page issue.
Run the below commands:
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
I hope it helps.
<< Snipped >>
You need to replace
$realPath = $this->fileDriver->getRealPath($path);
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
C:\xampp\htdocs\magento\lib\internal\Magento\Framework\View\Element\Template\File\Validator.php