After installing Magento 2.3, When I am trying to open the admin panel login screen is blank and my console contains an error as shown in the image. if anyone has a solution then please let me know.

Asked
Active
Viewed 1.3k times
6
Purushotam Sharma
- 1,657
- 2
- 26
- 59
Nima Patel
- 63
- 1
- 1
- 3
1 Answers
22
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;
}
}
Abhishek Panchal
- 4,948
- 3
- 21
- 38
Manoj Pal
- 1,047
- 8
- 18
-
Thank you so much this is really works for me – Nima Patel Dec 01 '18 at 11:15
-
You are welcome. v2.2.6 is probably a better choice for now. – Manoj Pal Dec 01 '18 at 12:12
-
hi @manojpal its working fine, but frontend not getting home page http://prntscr.com/lpssgn and at admin page http://prntscr.com/lpst7h windows please advise – Nagaraju Kasa Dec 02 '18 at 20:04
-
Hi, @NagarajuKasa please apply all command. – Manoj Pal Dec 03 '18 at 06:15
-
@manojpal it was just freshly installed in windows thats it whether it is required? – Nagaraju Kasa Dec 03 '18 at 06:19
-
I am also install in windows 10 , it's working fine https://prnt.sc/lpxsvi and admin page https://prnt.sc/lpxt3r – Manoj Pal Dec 03 '18 at 06:24
-
thank you so much for this one. I've spent 2days debugging because of this issue. – Jannomeister Dec 18 '18 at 08:33
-
@manojpal I am also facing the same issues as Nagarjuna. After applying your fix, able to login to admin page but now status is same as Nagarjuna What do you mean by applying all commands? – Mukesh Suthar Apr 06 '20 at 17:52
-
Apply upgrade and static deploy command – Manoj Pal Apr 07 '20 at 05:54