0

After installing Magento 2.1.7, When I am trying to open the admin panel login screen is blank and my console contains an error.if anyone has a solution then please let me know. I check in this file -

/vendor/magento/framework/View/Element/Template/File/Validator.php

in line number there is a code like :-:138

foreach($directories as $directory)
   {
     if(0===strpos($this->fileDriver->getRealPath($path),$directory))
     { 
      return true;
     }
  }

enter image description here

Magento_Bhurio
  • 940
  • 5
  • 14
Gagan
  • 557
  • 13
  • 24

1 Answers1

0

You can edit this line like this:

foreach($directories as $directory)
   {
     if(0===str_replace('\\', '/',$this->fileDriver->getRealPath($path),$directory))
     { 
      return true;
     }
  }  
fmsthird
  • 4,592
  • 4
  • 17
  • 41