Fresh Magento 2.3 installed in windows, after resource check and completed everything successfully installed, then if i open my website i am getting error like,
Asked
Active
Viewed 368 times
1 Answers
2
Check this link: After installing magento 2.3 admin login page cant open properly
Find : /vendor/magento/framework/View/Element/Template/File/Validator.php:139
find :
foreach ($directories as $directory) {
if (0 === strpos($realPath, $directory)) {
return true;
}
}
Replace with:
foreach ($directories as $directory) {
$realDirectory = $this->fileDriver->getRealPath($directory);
// and replace `$directory` with `$realDirectory`
if (0 === strpos($realPath, $realDirectory)) {
return true;
}
}
It's working
Manoj Pal
- 1,047
- 8
- 18
-
Still getting same error, Is there anything else shall i need to do? – zus Dec 08 '18 at 11:08
-
after that apply all command. – Manoj Pal Dec 09 '18 at 17:03
-
Yes, I replaced by your code still not working. – zus Dec 10 '18 at 03:00
-
check this link , https://magento.stackexchange.com/questions/251926/magento-2-3-its-not-working-properly-in-localhost?rq=1 – Manoj Pal Dec 10 '18 at 06:25

