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


Find: /vendor/magento/framework/View/Element/Template/File/Validator.php:139


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;
  • 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 – NIPPU 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? – NIPPU Dec 3 '18 at 6:19

protected by Community Aug 26 at 10:23

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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