6

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. below is image that show error

20

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;
    }
}
|improve this answer|||||
  • Thank you so much this is really works for me – Nima Patel Dec 1 '18 at 11:15
  • You are welcome. v2.2.6 is probably a better choice for now. – manoj pal Dec 1 '18 at 12:12
  • hi @manojpal its working fine, but frontend not getting home page prntscr.com/lpssgn and at admin page prntscr.com/lpst7h windows please advise – Nagaraju K Dec 2 '18 at 20:04
  • Hi, @NagarajuKasa please apply all command. – manoj pal Dec 3 '18 at 6:15
  • @manojpal it was just freshly installed in windows thats it whether it is required? – Nagaraju K Dec 3 '18 at 6:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.